2015-05-13 23:39:14 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# sepolgen
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-01-30 18:00:14 +01:00
|
|
|
SEPOLGEN_VERSION = 2.6
|
|
|
|
SEPOLGEN_SITE = https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20161014
|
2017-03-30 15:43:32 +02:00
|
|
|
SEPOLGEN_LICENSE = GPL-2.0
|
2015-05-13 23:39:14 +02:00
|
|
|
SEPOLGEN_LICENSE_FILES = COPYING
|
|
|
|
|
2017-02-02 23:45:02 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
|
|
SEPOLGEN_DEPENDENCIES = python3
|
|
|
|
SEPOLGEN_MAKE_CMDS = $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
PYTHONLIBDIR=/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages
|
|
|
|
else
|
|
|
|
SEPOLGEN_DEPENDENCIES = python
|
|
|
|
SEPOLGEN_MAKE_CMDS = $(TARGET_CONFIGURE_OPTS) \
|
|
|
|
PYTHONLIBDIR=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
|
|
|
|
endif
|
|
|
|
|
|
|
|
define SEPOLGEN_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_SEPOLGEN_MAKE_CMDS) DESTDIR=$(TARGET_DIR)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define SEPOLGEN_INSTALL_TARGET_CMDS
|
|
|
|
$(MAKE_ENV) $(MAKE) -C $(@D) $(SEPOLGEN_MAKE_CMDS) DESTDIR=$(TARGET_DIR) install
|
|
|
|
endef
|
|
|
|
|
2015-05-13 23:39:14 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
|
|
HOST_SEPOLGEN_DEPENDENCIES = host-python3
|
|
|
|
HOST_SEPOLGEN_MAKE_CMDS = $(HOST_CONFIGURE_OPTS) \
|
2017-07-05 13:14:48 +02:00
|
|
|
PYTHONLIBDIR=lib/python$(PYTHON3_VERSION_MAJOR)/site-packages
|
2015-05-13 23:39:14 +02:00
|
|
|
else
|
|
|
|
HOST_SEPOLGEN_DEPENDENCIES = host-python
|
|
|
|
HOST_SEPOLGEN_MAKE_CMDS = $(HOST_CONFIGURE_OPTS) \
|
2017-07-05 13:14:48 +02:00
|
|
|
PYTHONLIBDIR=lib/python$(PYTHON_VERSION_MAJOR)/site-packages
|
2015-05-13 23:39:14 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
define HOST_SEPOLGEN_BUILD_CMDS
|
2016-10-17 18:07:12 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_SEPOLGEN_MAKE_CMDS) DESTDIR=$(HOST_DIR)
|
2015-05-13 23:39:14 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_SEPOLGEN_INSTALL_CMDS
|
2016-10-17 18:07:12 +02:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_SEPOLGEN_MAKE_CMDS) DESTDIR=$(HOST_DIR) install
|
2015-05-13 23:39:14 +02:00
|
|
|
endef
|
|
|
|
|
2017-02-02 23:45:02 +01:00
|
|
|
$(eval $(generic-package))
|
2015-05-13 23:39:14 +02:00
|
|
|
$(eval $(host-generic-package))
|