aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2020-09-04 02:49:23 +0100
committerDaniel Golle <daniel@makrotopia.org>2020-09-04 02:50:20 +0100
commitc2c701e0586a58f317bbb8e4622e85b3b67fc451 (patch)
treef81fdfafb75062b0950152e3831ee83a0dde4b15 /package
parentad0f0df909b55fc228f12004e70bdb143f487ab0 (diff)
downloadupstream-c2c701e0586a58f317bbb8e4622e85b3b67fc451.tar.gz
upstream-c2c701e0586a58f317bbb8e4622e85b3b67fc451.tar.bz2
upstream-c2c701e0586a58f317bbb8e4622e85b3b67fc451.zip
libselinux: package executables into -utils
Add new package libselinux-utils containing the executable utilities included with libselinux. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package')
-rw-r--r--package/libs/libselinux/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/libs/libselinux/Makefile b/package/libs/libselinux/Makefile
index 9270e88a04..450bdfbf3b 100644
--- a/package/libs/libselinux/Makefile
+++ b/package/libs/libselinux/Makefile
@@ -37,6 +37,13 @@ define Package/libselinux/description
older version supported by the kernel) when loading policy.
endef
+define Package/libselinux-utils
+ SECTION:=utils
+ DEPENDS:=+libselinux
+ CATEGORY:=Utilities
+ TITLE:=Runtime SELinux utilities
+ URL:=http://selinuxproject.org/page/Main_Page
+endef
# Needed to link libselinux utilities, which link against
# libselinux.so, which indirectly depends on libpcre.so, installed in
@@ -76,5 +83,11 @@ define Package/libselinux/install
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libselinux.so.* $(1)/usr/lib/
endef
+define Package/libselinux-utils/install
+ $(INSTALL_DIR) $(1)/usr/sbin
+ $(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin
+endef
+
$(eval $(call HostBuild))
$(eval $(call BuildPackage,libselinux))
+$(eval $(call BuildPackage,libselinux-utils))