2015-01-07 18:10:36 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# checkpolicy
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-01-09 17:15:19 +01:00
|
|
|
CHECKPOLICY_VERSION = 2.6
|
|
|
|
CHECKPOLICY_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014
|
2015-01-07 18:10:36 +01:00
|
|
|
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
|
2016-10-17 18:06:35 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(HOST_DIR)
|
2015-01-07 18:10:36 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_CHECKPOLICY_INSTALL_CMDS
|
2016-10-17 18:06:35 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CHECKPOLICY_MAKE_OPTS) DESTDIR=$(HOST_DIR) install
|
2015-01-07 18:10:36 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(host-generic-package))
|