Initial Commit
- initial default booting image
This commit is contained in:
21
package/libapparmor/Config.in
Normal file
21
package/libapparmor/Config.in
Normal file
@@ -0,0 +1,21 @@
|
||||
config BR2_PACKAGE_LIBAPPARMOR
|
||||
bool "libapparmor"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
|
||||
help
|
||||
AppArmor is an effective and easy-to-use Linux application
|
||||
security system. AppArmor proactively protects the operating
|
||||
system and applications from external or internal threats,
|
||||
even zero-day attacks, by enforcing good behavior and
|
||||
preventing even unknown application flaws from being
|
||||
exploited.
|
||||
|
||||
This package installs only the library.
|
||||
|
||||
http://wiki.apparmor.net
|
||||
|
||||
comment "libapparmor needs a toolchain w/ headers >= 3.16, threads"
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
|
||||
6
package/libapparmor/libapparmor.hash
Normal file
6
package/libapparmor/libapparmor.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://gitlab.com/apparmor/apparmor/-/releases/v4.1.1
|
||||
sha256 f125aae32964e4e84443fec005f37f37abd5164f30620239c42864655a1b0281 apparmor-v4.1.1.tar.gz
|
||||
|
||||
# locally computed
|
||||
sha256 a7e0cdcbea5c14927cedfc600d46526bdcbb1eb0a4d951e2ea53c2a6de159cb4 LICENSE
|
||||
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 libraries/libapparmor/COPYING.LGPL
|
||||
49
package/libapparmor/libapparmor.mk
Normal file
49
package/libapparmor/libapparmor.mk
Normal file
@@ -0,0 +1,49 @@
|
||||
################################################################################
|
||||
#
|
||||
# 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))
|
||||
Reference in New Issue
Block a user