aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOskari Rauta <oskari.rauta@gmail.com>2022-03-03 04:57:08 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-03-05 21:05:45 +0100
commitef4bf8b403205062ddb38ebe7b8c4951be346368 (patch)
tree3ade5d3be8af88ca5b6f4942405673d2b25c5b75
parent0f432fa3a926bf07f2c6c70ee9a64cbaa95e5d16 (diff)
downloadupstream-ef4bf8b403205062ddb38ebe7b8c4951be346368.tar.gz
upstream-ef4bf8b403205062ddb38ebe7b8c4951be346368.tar.bz2
upstream-ef4bf8b403205062ddb38ebe7b8c4951be346368.zip
util-linux: add lsns
lsns lists system namespaces Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
-rw-r--r--package/utils/util-linux/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/package/utils/util-linux/Makefile b/package/utils/util-linux/Makefile
index ce3cd171e0..6d44e92f00 100644
--- a/package/utils/util-linux/Makefile
+++ b/package/utils/util-linux/Makefile
@@ -339,6 +339,16 @@ define Package/lslocks/description
lslocks lists information about all the currently held file locks in a Linux system
endef
+define Package/lsns
+$(call Package/util-linux/Default)
+ TITLE:=list system namespaces
+ DEPENDS:= +libblkid +libmount +libsmartcols
+endef
+
+define Package/lsns/description
+ lsns lists information about all namespaces and their processes
+endef
+
define Package/more
$(call Package/util-linux/Default)
TITLE:=filter for paging through text one screenful at a time
@@ -737,6 +747,11 @@ define Package/lslocks/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lslocks $(1)/usr/bin/
endef
+define Package/lsns/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsns $(1)/usr/bin/
+endef
+
define Package/more/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/more $(1)/usr/bin/
@@ -866,6 +881,7 @@ $(eval $(call BuildPackage,losetup))
$(eval $(call BuildPackage,lsblk))
$(eval $(call BuildPackage,lscpu))
$(eval $(call BuildPackage,lslocks))
+$(eval $(call BuildPackage,lsns))
$(eval $(call BuildPackage,more))
$(eval $(call BuildPackage,mcookie))
$(eval $(call BuildPackage,mount-utils))