generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
21
package/semodule-utils/Config.in
Normal file
21
package/semodule-utils/Config.in
Normal file
@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_SEMODULE_UTILS
|
||||
bool "semodule-utils"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libsepol
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # libsepol
|
||||
select BR2_PACKAGE_LIBSEPOL
|
||||
help
|
||||
semodule-utils is a package that contains tools for handling
|
||||
selinux modules.
|
||||
|
||||
The package will install the following utilities:
|
||||
* semodule_deps - Show the dependencies between SELinux
|
||||
policy packages.
|
||||
* semodule_expand - Expand a SELinux policy module package.
|
||||
* semodule_link - Link SELinux policy module packages together
|
||||
* semodule_package - Create a SELinux policy module package.
|
||||
|
||||
https://github.com/SELinuxProject/selinux/wiki/Releases
|
||||
|
||||
comment "semodule-utils needs a toolchain w/ threads, gcc >= 5"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_5
|
||||
5
package/semodule-utils/semodule-utils.hash
Normal file
5
package/semodule-utils/semodule-utils.hash
Normal file
@ -0,0 +1,5 @@
|
||||
# https://github.com/SELinuxProject/selinux/wiki/Releases
|
||||
sha256 3098ec5e5f04a1dbbf4aa569b63a4570750a9fe0d4da14ce45954aa300a17063 semodule-utils-3.3.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 COPYING
|
||||
27
package/semodule-utils/semodule-utils.mk
Normal file
27
package/semodule-utils/semodule-utils.mk
Normal file
@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# semodule-utils
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SEMODULE_UTILS_VERSION = 3.3
|
||||
SEMODULE_UTILS_SITE = https://github.com/SELinuxProject/selinux/releases/download/$(SEMODULE_UTILS_VERSION)
|
||||
SEMODULE_UTILS_LICENSE = GPL-2.0
|
||||
SEMODULE_UTILS_LICENSE_FILES = COPYING
|
||||
SEMODULE_UTILS_DEPENDENCIES = libsepol
|
||||
|
||||
SEMODULE_UTILS_MAKE_OPTS += \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
LIBSEPOLA=$(STAGING_DIR)/usr/lib/libsepol.a
|
||||
|
||||
# We need to pass DESTDIR at build time because it's used by
|
||||
# semodule-utils build system to find headers and libraries.
|
||||
define SEMODULE_UTILS_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) $(SEMODULE_UTILS_MAKE_OPTS) DESTDIR=$(STAGING_DIR) all
|
||||
endef
|
||||
|
||||
define SEMODULE_UTILS_INSTALL_TARGET_CMDS
|
||||
$(MAKE) -C $(@D) $(SEMODULE_UTILS_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user