mirror of
https://github.com/openwrt/packages.git
synced 2026-10-26 09:49:12 +04:00
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>
79 lines
2.1 KiB
Makefile
79 lines
2.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=parted
|
|
PKG_VERSION:=3.4
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/parted/
|
|
PKG_HASH:=e1298022472da5589b7f2be1d5ee3c1b66ec3d96dfbad03dc642afd009da5342
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
|
|
|
|
PKG_CONFIG_DEPENDS:= \
|
|
CONFIG_PARTED_LVM2 \
|
|
CONFIG_PARTED_READLINE
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libparted
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=GNU Parted library
|
|
DEPENDS:=+libblkid +libuuid +PARTED_LVM2:libdevmapper
|
|
endef
|
|
|
|
define Package/libparted/description
|
|
GNU Parted shared library
|
|
endef
|
|
|
|
define Package/parted
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=GNU Parted
|
|
SUBMENU:=Disc
|
|
DEPENDS:=+libparted +PARTED_READLINE:libreadline +PARTED_READLINE:libncurses
|
|
endef
|
|
|
|
define Package/parted/description
|
|
GNU Parted manipulates partition tables. This is useful for
|
|
creating space for new operating systems, reorganizing
|
|
disk usage, copying data on hard disks and disk imaging.
|
|
endef
|
|
|
|
define Package/parted/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
$(if $(CONFIG_PARTED_READLINE),--with-readline,--without-readline) \
|
|
$(if $(CONFIG_PARTED_LVM2),--enable-device-mapper,--disable-device-mapper)
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include/parted $(1)/usr/lib/ $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so** $(1)/usr/lib/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/parted/*.h $(1)/usr/include/parted/
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc $(1)/usr/lib/pkgconfig/
|
|
endef
|
|
|
|
define Package/libparted/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so** $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/parted/install
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/parted $(1)/sbin/
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/partprobe $(1)/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libparted))
|
|
$(eval $(call BuildPackage,parted))
|