mirror of
https://github.com/openwrt/packages.git
synced 2026-10-26 20:39:17 +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>
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=btop
|
|
PKG_VERSION:=1.2.13
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL=https://codeload.github.com/aristocratos/btop/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=668dc4782432564c35ad0d32748f972248cc5c5448c9009faeb3445282920e02
|
|
|
|
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
|
|
PKG_LICENSE:=Apache-2.0
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_INSTALL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/btop
|
|
SECTION:=admin
|
|
CATEGORY:=Administration
|
|
TITLE:=A monitor of resources
|
|
URL:=https://github.com/aristocratos/btop
|
|
DEPENDS:=+libstdcpp
|
|
endef
|
|
|
|
define Package/btop/description
|
|
Resource monitor that shows usage and stats for processor, memory,
|
|
disks, network and processes.
|
|
|
|
C++ version and continuation of bashtop and bpytop.
|
|
endef
|
|
|
|
MAKE_FLAGS+= \
|
|
PLATFORM=Linux \
|
|
OPTFLAGS="$(TARGET_CXXFLAGS)" \
|
|
LDCXXFLAGS="$(TARGET_LDFLAGS) -pthread"
|
|
|
|
define Package/btop/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/btop $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/usr/share
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/local/share/btop $(1)/usr/share/
|
|
|
|
$(INSTALL_DIR) $(1)/etc/profile.d
|
|
$(CP) $(CURDIR)/files/btop.sh $(1)/etc/profile.d/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,btop))
|