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>
110 lines
3.1 KiB
Makefile
110 lines
3.1 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:=sysrepo
|
|
PKG_VERSION:=2.0.53
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/sysrepo/sysrepo/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=fe09da5f40fb53e3fb97268a134cc0ed3003f0018d0d117c73e81e1553a11f30
|
|
|
|
PKG_MAINTAINER:=Jakov Smolic <jakov.smolic@sartura.hr>
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
define Package/libsysrepo
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=YANG-based data store library
|
|
URL:=https://www.sysrepo.org/
|
|
DEPENDS:=+libyang +libatomic +libprotobuf-c +libev +libredblack +librt +libpthread
|
|
endef
|
|
|
|
define Package/sysrepo
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=YANG-based data store daemon and plugin
|
|
URL:=https://www.sysrepo.org/
|
|
DEPENDS:=+libsysrepo
|
|
endef
|
|
|
|
define Package/sysrepoctl
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=sysrepo cli tool
|
|
URL:=https://www.sysrepo.org/
|
|
DEPENDS:=+libsysrepo
|
|
endef
|
|
|
|
define Package/sysrepocfg
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=sysrepo configuration tool
|
|
URL:=https://www.sysrepo.org/
|
|
DEPENDS:=+libsysrepo
|
|
endef
|
|
|
|
define Package/sysrepo/description
|
|
Sysrepo is an YANG-based configuration and operational state data store for Unix/Linux applications.
|
|
endef
|
|
|
|
|
|
CMAKE_OPTIONS += \
|
|
-DFORCE_WSL=TRUE \
|
|
-DENABLE_TESTS:BOOL=FALSE \
|
|
-DBUILD_EXAMPLES:BOOL=FALSE \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE="Package" \
|
|
-DREPOSITORY_LOC:PATH=/etc/sysrepo \
|
|
-DCALL_TARGET_BINS_DIRECTLY=OFF \
|
|
-DGEN_LANGUAGE_BINDINGS:BOOL=TRUE
|
|
|
|
define Package/libsysrepo/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsysrepo.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/sysrepo/yang
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/ietf-netconf-with-defaults.yang $(1)/etc/sysrepo/yang/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/ietf-netconf-notifications.yang $(1)/etc/sysrepo/yang/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/ietf-netconf.yang $(1)/etc/sysrepo/yang/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/ietf-origin.yang $(1)/etc/sysrepo/yang/
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/modules/sysrepo.yang $(1)/etc/sysrepo/yang/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
$(INSTALL_BIN) ./files/libsysrepo.default $(1)/etc/uci-defaults/95_libsysrepo
|
|
endef
|
|
|
|
define Package/sysrepo/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sysrepo-plugind $(1)/usr/bin/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d/
|
|
$(INSTALL_BIN) ./files/sysrepo.init $(1)/etc/init.d/sysrepo
|
|
endef
|
|
|
|
define Package/sysrepoctl/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sysrepoctl $(1)/usr/bin/
|
|
endef
|
|
|
|
define Package/sysrepocfg/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sysrepocfg $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libsysrepo))
|
|
$(eval $(call BuildPackage,sysrepo))
|
|
$(eval $(call BuildPackage,sysrepoctl))
|
|
$(eval $(call BuildPackage,sysrepocfg))
|