mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 08:30:47 -09:00
Updating also the companion libapparmor library and removing upstreamed patch. Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> [Julien: - add "{,lib}" in commit log title - reorder LIBAPPARMOR_DEPENDENCIES alphabetically ] Signed-off-by: Julien Olivain <ju.o@free.fr>
50 lines
1.7 KiB
Makefile
50 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# libapparmor
|
|
#
|
|
################################################################################
|
|
|
|
# When updating the version here, please also update the apparmor package
|
|
LIBAPPARMOR_VERSION_MAJOR = 4.1
|
|
LIBAPPARMOR_VERSION = $(LIBAPPARMOR_VERSION_MAJOR).1
|
|
LIBAPPARMOR_SOURCE = apparmor-v$(LIBAPPARMOR_VERSION).tar.gz
|
|
LIBAPPARMOR_SITE = https://gitlab.com/apparmor/apparmor/-/archive/v$(LIBAPPARMOR_VERSION)
|
|
LIBAPPARMOR_LICENSE = LGPL-2.1
|
|
LIBAPPARMOR_LICENSE_FILES = LICENSE libraries/libapparmor/COPYING.LGPL
|
|
|
|
LIBAPPARMOR_DEPENDENCIES = host-autoconf-archive host-bison host-flex host-pkgconf
|
|
LIBAPPARMOR_SUBDIR = libraries/libapparmor
|
|
LIBAPPARMOR_INSTALL_STAGING = YES
|
|
|
|
# no configure in tarball
|
|
LIBAPPARMOR_AUTORECONF = YES
|
|
LIBAPPARMOR_AUTORECONF_OPTS = --include=$(HOST_DIR)/share/autoconf-archive
|
|
|
|
# Most AppArmor tools will want to link to the static lib.
|
|
# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
|
|
# provided by autoconf relies on wchar_t.
|
|
LIBAPPARMOR_CONF_OPTS = \
|
|
ac_cv_prog_cc_c99=-std=gnu99 \
|
|
--enable-static \
|
|
--disable-man-pages
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
LIBAPPARMOR_DEPENDENCIES += host-python3 host-python-setuptools host-swig python3
|
|
LIBAPPARMOR_CONF_OPTS += \
|
|
--with-python \
|
|
PYTHON=$(HOST_DIR)/bin/python3 \
|
|
PYTHON_CONFIG=$(STAGING_DIR)/usr/bin/python3-config \
|
|
SWIG=$(SWIG)
|
|
else
|
|
LIBAPPARMOR_CONF_OPTS += --without-python
|
|
endif
|
|
|
|
define LIBAPPARMOR_LINUX_CONFIG_FIXUPS
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_AUDIT)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_SECURITY_APPARMOR)
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_DEFAULT_SECURITY_APPARMOR)
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|