aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Moń <desowin@gmail.com>2018-02-20 17:14:06 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2018-02-24 11:24:20 +0100
commit9a0cc49089e38896391a1003892aba3aa684f868 (patch)
treeffeeef1270448342bd9010e2dfcba1298bbf07f5
parent316eb26a3a8e4cf84074baa6bbe0d6f905c22941 (diff)
downloadupstream-9a0cc49089e38896391a1003892aba3aa684f868.tar.gz
upstream-9a0cc49089e38896391a1003892aba3aa684f868.tar.bz2
upstream-9a0cc49089e38896391a1003892aba3aa684f868.zip
util-linux: add lscpu package
lscpu is used by lxc-debian template. Signed-off-by: Tomasz Moń <desowin@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 9270dd5e1e..fcfc7c7b4e 100644
--- a/package/utils/util-linux/Makefile
+++ b/package/utils/util-linux/Makefile
@@ -278,6 +278,16 @@ define Package/lsblk/description
lsblk lists information about all or the specified block devices
endef
+define Package/lscpu
+$(call Package/util-linux/Default)
+ TITLE:=display information about the CPU architecture
+ DEPENDS:= +libsmartcols
+endef
+
+define Package/lscpu/description
+ lscpu displays information about the CPU architecture
+endef
+
define Package/mcookie
$(call Package/util-linux/Default)
TITLE:=generate magic cookies for xauth
@@ -601,6 +611,11 @@ define Package/lsblk/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsblk $(1)/usr/bin/
endef
+define Package/lscpu/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lscpu $(1)/usr/bin/
+endef
+
define Package/mcookie/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mcookie $(1)/usr/bin/
@@ -703,6 +718,7 @@ $(eval $(call BuildPackage,logger))
$(eval $(call BuildPackage,look))
$(eval $(call BuildPackage,losetup))
$(eval $(call BuildPackage,lsblk))
+$(eval $(call BuildPackage,lscpu))
$(eval $(call BuildPackage,mcookie))
$(eval $(call BuildPackage,mount-utils))
$(eval $(call BuildPackage,namei))