Commit 37d78971 authored by Clayton Shotwell's avatar Clayton Shotwell Committed by Thomas Petazzoni
Browse files

checkpolicy: new package



[Thomas:
 - Indicate in the Config.in help text that this policy compiler is
   SELinux related.
 - Rewrap Config.in help text and remove trailing white space.
 - Add a comment in the .mk file to indicate why we're passing
   DESTDIR= at build time.]

Signed-off-by: default avatarMatthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: default avatarClayton Shotwell <clshotwe@rockwellcollins.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 611523d8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
menu "Host utilities"

	source "package/checkpolicy/Config.in.host"
	source "package/cramfs/Config.in.host"
	source "package/dfu-util/Config.in.host"
	source "package/dos2unix/Config.in.host"
+10 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_HOST_CHECKPOLICY
	bool "host checkpolicy"
	help
	  checkpolicy is the SELinux policy compiler. It uses libsepol
	  to generate the binary policy. checkpolicy uses the static
	  libsepol since it deals with low level details of the policy
	  that have not been encapsulated/abstracted by a proper
	  shared library interface.

	  http://selinuxproject.org/page/Main_Page
+2 −0
Original line number Diff line number Diff line
# https://github.com/SELinuxProject/selinux/wiki/Releases
sha256 e6a0ac539b74859b4262b317eb90d9914deb15e7aa509659f47724d50fe2ecc6  checkpolicy-2.1.12.tar.gz
+27 −0
Original line number Diff line number Diff line
################################################################################
#
# checkpolicy
#
################################################################################

CHECKPOLICY_VERSION = 2.1.12
CHECKPOLICY_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20130423
CHECKPOLICY_LICENSE = GPLv2
CHECKPOLICY_LICENSE_FILES = COPYING

HOST_CHECKPOLICY_DEPENDENCIES = host-libselinux host-flex host-bison

HOST_CHECKPOLICY_MAKE_OPTS = $(HOST_CONFIGURE_OPTS) \
	LEX="$(HOST_DIR)/usr/bin/flex" \
	YACC="$(HOST_DIR)/usr/bin/bison -y"

# DESTDIR is used at build time to find host-libselinux
define HOST_CHECKPOLICY_BUILD_CMDS
	$(MAKE) -C $(@D) $(HOST_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(HOST_DIR)
endef

define HOST_CHECKPOLICY_INSTALL_CMDS
	$(MAKE) -C $(@D) $(HOST_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(HOST_DIR) install
endef

$(eval $(host-generic-package))