depend upon or use any of the other SELinux components.
endef
+define Package/chkcon
+ SECTION:=utils
+ CATEGORY:=Utilities
+ DEPENDS:=+libsepol
+ TITLE:=libsepol chkcon security context validation tool
+ URL:=http://selinuxproject.org/page/Main_Page
+endef
+
+define Package/chkcon/description
+ chkcon - determine if a security context is valid for a given binary policy
+endef
+
HOST_MAKE_FLAGS += \
PREFIX=$(STAGING_DIR_HOSTPKG) \
SHLIBDIR=$(STAGING_DIR_HOSTPKG)/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsepol.so.* $(1)/usr/lib/
endef
+define Package/chkcon/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/chkcon $(1)/usr/bin/
+endef
+
$(eval $(call HostBuild))
$(eval $(call BuildPackage,libsepol))
+$(eval $(call BuildPackage,chkcon))