mirror of
https://github.com/openwrt/packages.git
synced 2025-12-22 14:44:36 +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>
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
#
|
|
# Copyright (C) 2015 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:=sysstat
|
|
PKG_VERSION:=12.4.5
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
PKG_SOURCE_URL:=http://pagesperso-orange.fr/sebastien.godard/
|
|
PKG_HASH:=ef445acea301bbb996e410842f6290a8d049e884d4868cfef7e85dc04b7eee5b
|
|
|
|
PKG_MAINTAINER:=Marko Ratkaj <markoratkaj@gmail.com>
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_CPE_ID:=cpe:/a:sysstat_project:sysstat
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_INSTALL:=1
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include $(INCLUDE_DIR)/nls.mk
|
|
|
|
define Package/sysstat
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=Sysstat performance monitoring tools
|
|
URL:=http://pagesperso-orange.fr/sebastien.godard/index.html
|
|
DEPENDS:=$(INTL_DEPENDS)
|
|
endef
|
|
|
|
define Package/sysstat/description
|
|
The sysstat utilities are a collection of performance monitoring tools for
|
|
Linux. These include sar, sadf, mpstat, iostat, pidstat and sa tools.
|
|
endef
|
|
|
|
define Package/sysstat/conffiles
|
|
/etc/config/sysstat
|
|
/etc/sysstat/sysstat.ioconf
|
|
/etc/sysstat/sysstat
|
|
endef
|
|
|
|
CONFIGURE_VARS+= \
|
|
sa_lib_dir="/usr/lib/sysstat" \
|
|
conf_dir="/etc/sysstat"
|
|
|
|
CONFIGURE_ARGS+= \
|
|
--disable-documentation \
|
|
--disable-sensors
|
|
|
|
define Package/sysstat/install
|
|
$(INSTALL_DIR) $(1)/usr/lib/sysstat
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/sysstat/{sadc,sa1,sa2} $(1)/usr/lib/sysstat/
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{sar,sadf,iostat,mpstat,pidstat} $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/etc/sysstat
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/sysstat/sysstat.ioconf $(1)/etc/sysstat/
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_CONF) ./files/sysstat.config $(1)/etc/config/sysstat
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/sysstat.init $(1)/etc/init.d/sysstat
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,sysstat))
|