kumquat-buildroot/package/checkpolicy/checkpolicy.mk
Adam Duskett d6b803f846 checkpolicy: bump to version 2.5
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-07-01 11:06:36 +02:00

28 lines
891 B
Makefile

################################################################################
#
# checkpolicy
#
################################################################################
CHECKPOLICY_VERSION = 2.5
CHECKPOLICY_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223
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))