Author: nbd Date: 2015-09-11 18:35:02 +0200 (Fri, 11 Sep 2015) New Revision: 46866
Modified: trunk/package/utils/util-linux/Makefile Log: util-linux: add prlimit command. Signed-off-by: Yousong Zhou <[email protected]> Modified: trunk/package/utils/util-linux/Makefile =================================================================== --- trunk/package/utils/util-linux/Makefile 2015-09-11 16:34:49 UTC (rev 46865) +++ trunk/package/utils/util-linux/Makefile 2015-09-11 16:35:02 UTC (rev 46866) @@ -303,6 +303,17 @@ files, directories, and so forth) endef +define Package/prlimit +$(call Package/util-linux/Default) + TITLE:=get and set process resource limits + DEPENDS:= +libsmartcols +endef + +define Package/prlimit/description + Given a process id and one or more resources, prlimit tries to retrieve + and/or modify the limits. +endef + define Package/rename $(call Package/util-linux/Default) TITLE:=rename files @@ -534,6 +545,11 @@ $(INSTALL_BIN) $(PKG_BUILD_DIR)/namei $(1)/usr/bin/ endef +define Package/prlimit/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/.libs/prlimit $(1)/usr/bin/ +endef + define Package/rename/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/rename $(1)/usr/bin/ @@ -614,6 +630,7 @@ $(eval $(call BuildPackage,mcookie)) $(eval $(call BuildPackage,mount-utils)) $(eval $(call BuildPackage,namei)) +$(eval $(call BuildPackage,prlimit)) $(eval $(call BuildPackage,rename)) $(eval $(call BuildPackage,partx-utils)) $(eval $(call BuildPackage,script-utils)) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
