Skip to content

Commit

Permalink
libselinux: package executables into -utils
Browse files Browse the repository at this point in the history
Add new package libselinux-utils containing the executable
utilities included with libselinux.

Signed-off-by: Daniel Golle <[email protected]>
  • Loading branch information
dangowrt committed Sep 4, 2020
1 parent ad0f0df commit c2c701e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions package/libs/libselinux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))

0 comments on commit c2c701e

Please sign in to comment.