Browse Source

Merge pull request #13125 from ja-pa/procps-ng-sysct

procps-ng: add new applet sysctl
lilik-openwrt-22.03
Rosen Penev 4 years ago
committed by GitHub
parent
commit
4d2c827e9f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      utils/procps-ng/Makefile

+ 8
- 1
utils/procps-ng/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=procps-ng
PKG_VERSION:=3.3.16
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@SF/procps-ng
@ -81,6 +81,7 @@ define GenPlugin
endef
$(foreach a,$(PROCPS_APPLETS),$(eval $(call GenPlugin,procps-ng-$(a),$(a),$(call procps-applets-dir,$(a)))))
$(eval $(call GenPlugin,procps-ng-sysctl,sysctl,/usr/sbin))
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" \
@ -92,6 +93,11 @@ define Package/procps-ng/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libprocps.so* $(1)/usr/lib/
endef
define Package/procps-ng-sysctl/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sysctl $(1)/usr/sbin
endef
define BuildPlugin
define Package/$(1)/install
$(INSTALL_DIR) $$(1)$(3)
@ -102,4 +108,5 @@ define BuildPlugin
endef
$(foreach a,$(PROCPS_APPLETS),$(eval $(call BuildPlugin,procps-ng-$(a),$(a),$(call procps-applets-dir,$(a)))))
$(eval $(call BuildPackage,procps-ng-sysctl))
$(eval $(call BuildPackage,procps-ng))

Loading…
Cancel
Save