mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-13 10:59:13 +02:00
![Paul Fertser](/assets/img/avatar_default.png)
Automatically compute and substitute current values for all $(AUTORELEASE) instances as this feature is deprecated and shouldn't be used. The following temporary change was made to the core: diff --git a/rules.mk b/rules.mk index 57d7995d4fa8..f16367de87a8 100644 --- a/rules.mk +++ b/rules.mk @@ -429,7 +429,7 @@ endef abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1)))) COMMITCOUNT = $(if $(DUMP),0,$(call commitcount)) -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1)) +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) all: FORCE: ; And this command used to fix affected packages: for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \ sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/download done Signed-off-by: Paul Fertser <fercerpav@gmail.com>
61 lines
1.5 KiB
Makefile
61 lines
1.5 KiB
Makefile
#
|
|
# Copyright (C) 2017 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libyang
|
|
PKG_VERSION:=2.0.112
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/CESNET/libyang/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=184dd67c66c1ad968a2ee4d0950fb6b103834917b04b17af9c7bca80967636ee
|
|
|
|
PKG_MAINTAINER:=Jakov Smolic <jakov.smolic@sartura.hr>
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
CMAKE_INSTALL:=1
|
|
CMAKE_BINARY_SUBDIR:=build
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/libyang
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=YANG data modeling language library
|
|
URL:=https://github.com/CESNET/libyang
|
|
DEPENDS:=+libpcre2 +libpthread
|
|
endef
|
|
|
|
define Package/yanglint
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=YANG data modeling language utility
|
|
URL:=https://github.com/CESNET/libyang
|
|
DEPENDS:=+libyang
|
|
endef
|
|
|
|
define Package/libyang/description
|
|
libyang is YANG data modelling language parser and toolkit written (and providing API) in C.
|
|
The library is used e.g. in libnetconf2, Netopeer2 or sysrepo projects.
|
|
endef
|
|
|
|
define Package/libyang/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libyang.so* $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/yanglint/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/yanglint $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libyang))
|
|
$(eval $(call BuildPackage,yanglint))
|