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>
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=tgt
|
|
PKG_VERSION:=1.0.83
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/fujita/tgt/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=a9ddb0ff32d3396416df9639f9f398d14a6051f505b5772d7d196df99df8b8da
|
|
|
|
PKG_MAINTAINER:=Maxim Storchak <m.storchak@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
PKG_CPE_ID:=cpe:/a:zaal:tgt
|
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/tgt
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
URL:=https://github.com/fujita/tgt
|
|
TITLE:=userspace iSCSI target
|
|
DEPENDS:=+libpthread +libaio
|
|
endef
|
|
|
|
define Package/tgt/description
|
|
The Linux target framework (tgt) is a user space SCSI target framework
|
|
that supports the iSCSI and iSER transport protocols and that also
|
|
supports multiple methods for accessing block storage. Tgt consists of
|
|
user-space daemon and tools.
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(call Build/Compile/Default,programs)
|
|
endef
|
|
|
|
define Package/tgt/conffiles
|
|
/etc/config/tgt
|
|
endef
|
|
|
|
define Package/tgt/install
|
|
$(INSTALL_DIR) $(1)/etc/config $(1)/etc/init.d $(1)/usr/sbin
|
|
$(INSTALL_DATA) ./files/tgt.config $(1)/etc/config/tgt
|
|
$(INSTALL_BIN) ./files/tgt.init $(1)/etc/init.d/tgt
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tgt{d,adm} $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,tgt))
|