summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2013-12-03 17:34:06 +0000
committerMichael Palimaka <kensington@gentoo.org>2013-12-03 17:34:06 +0000
commita139fe5b9cccc5f9da409e6a5a50813dcc6d0cee (patch)
treed3baacb6e1702651a1b636e67d500ac1e402b12d /sys-apps
parentNew package wrt bug #118779. (diff)
downloadgentoo-2-a139fe5b9cccc5f9da409e6a5a50813dcc6d0cee.tar.gz
gentoo-2-a139fe5b9cccc5f9da409e6a5a50813dcc6d0cee.tar.bz2
gentoo-2-a139fe5b9cccc5f9da409e6a5a50813dcc6d0cee.zip
New package wrt bug #118779.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 675D0D2C)
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/apparmor/ChangeLog9
-rw-r--r--sys-apps/apparmor/Manifest5
-rw-r--r--sys-apps/apparmor/apparmor-2.8.2.ebuild46
-rw-r--r--sys-apps/apparmor/files/apparmor-2.8.2-makefile.patch34
-rwxr-xr-xsys-apps/apparmor/files/apparmor-init92
-rw-r--r--sys-apps/apparmor/metadata.xml10
6 files changed, 196 insertions, 0 deletions
diff --git a/sys-apps/apparmor/ChangeLog b/sys-apps/apparmor/ChangeLog
new file mode 100644
index 000000000000..dfa03ffd6631
--- /dev/null
+++ b/sys-apps/apparmor/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sys-apps/apparmor
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/apparmor/ChangeLog,v 1.1 2013/12/03 17:34:06 kensington Exp $
+
+*apparmor-2.8.2 (03 Dec 2013)
+
+ 03 Dec 2013; Michael Palimaka <kensington@gentoo.org> +apparmor-2.8.2.ebuild,
+ +files/apparmor-2.8.2-makefile.patch, +files/apparmor-init, +metadata.xml:
+ New package wrt bug #118779.
diff --git a/sys-apps/apparmor/Manifest b/sys-apps/apparmor/Manifest
new file mode 100644
index 000000000000..562168364eeb
--- /dev/null
+++ b/sys-apps/apparmor/Manifest
@@ -0,0 +1,5 @@
+AUX apparmor-2.8.2-makefile.patch 1202 SHA256 55d5acaad3721c7012e281a6712ad8598b692c161efa48d0321001559b8225b8 SHA512 45a7a40b4460e530669904d406b6eb1d6481704f7a7bc5df8e90e37fd04e5131119244228c379b9ebe578e24a9360e05d661f6efac1ea8e52fd34dc0e3bfc926 WHIRLPOOL acde4be4e427a9edac7a5e3a452143ab1fbb68a1b59bd4377e6628b6a9c2429c83967a37721979b7d2aefaf051e97034f28d9af89a779f4e11d4771eefa89c19
+AUX apparmor-init 1296 SHA256 5038d669c267998b22280a387c58d2b8a307b6915386a097dfcff237c42130aa SHA512 439198604d4ca50e89c2134a5f2a9d730be8efca7b843af2c6987741ba493029987a1b042e02e2f94af6625eee3d9e40099abd95feb55a06814e7bac741d6a18 WHIRLPOOL be39b6093f7ff58c92396005f3484ba7b72e6df7ba89f9e2e2d50b07f037ed9caf62605c83da6b471f1102c45fa46dbbd5796f7b0034444722d43d2711d8e07d
+DIST apparmor-2.8.2.tar.gz 1507411 SHA256 742f3f776c5e1bf303fe2c4bca7607241593189a8c985f9f3acc01baa7dbd2bb SHA512 f3684a7a894d0330ade5b14525ab0f16d62410b39ae046c0239e8d322a6f1240ee3079d67a78afa455964dd84fe55aaa29857cef5e935be7ea92133e59e01e09 WHIRLPOOL 8b1c0870c9a32405acb19a7f00495d393febe700125f760aae45c0cdc9c2b5e256b2b89e00a8c83ff44c2194c9461fcd69a36f1029d56283a418ff0b478e4287
+EBUILD apparmor-2.8.2.ebuild 1020 SHA256 2013ca8fd226109576a98a026c71776458d3c9783f45405ff2b5a3a1dcd05c97 SHA512 4c07333d8a4db3c5167dac9ce20ca799783055a94bb381f74b55bd94e099ee65dd7b4a48350024cf7c17ce4c5909a2ddff8858e16b01e7a632d6954cf24483a1 WHIRLPOOL af1802bfcbd81f9e455ac5d82d7e8ec6a812d8bd4fe6f23a7af6f4cf1ea9033999f010c1410845d2adf16ddbb2aa15f17abd468566c6e0f5a13c2190420e7d2d
+MISC metadata.xml 283 SHA256 8181aa734479838ccf5fda17b726d5b98073078f272307e7745cb4fbf7d88bf3 SHA512 eb93496c7300aced5fcf864af2ab08e7367439f0932f015060530963ecde7d6d8da2902aa26248902a4acc2ca48ccff5aaf210302109c3effad10dca61b30df3 WHIRLPOOL ebcb3e58e0b534547dcd189ca796288b2b99d3c4c213d76fc603cbdea633d11aba86f4fad991a4579d80f18d6498b6e20bc09dd9c756c73d8982b2391cab39dd
diff --git a/sys-apps/apparmor/apparmor-2.8.2.ebuild b/sys-apps/apparmor/apparmor-2.8.2.ebuild
new file mode 100644
index 000000000000..9d6b8591d71a
--- /dev/null
+++ b/sys-apps/apparmor/apparmor-2.8.2.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/apparmor/apparmor-2.8.2.ebuild,v 1.1 2013/12/03 17:34:06 kensington Exp $
+
+EAPI=5
+
+inherit eutils toolchain-funcs versionator
+
+DESCRIPTION="Userspace utils and init scripts for the AppArmor application security system"
+HOMEPAGE="http://apparmor.net/"
+SRC_URI="http://launchpad.net/${PN}/$(get_version_component_range 1-2)/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+DEPEND="dev-lang/perl
+ sys-devel/bison
+ sys-devel/flex
+ doc? ( dev-tex/latex2html )"
+
+S=${WORKDIR}/apparmor-${PV}/parser
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-makefile.patch
+
+ # remove warning about missing file that controls features
+ # we don't currently support
+ sed -e "/installation problem/ctrue" -i rc.apparmor.functions || die
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" arch manpages
+ use doc && emake pdf
+}
+
+src_install() {
+ default
+
+ dodir /etc/apparmor.d
+
+ newinitd "${FILESDIR}"/${PN}-init ${PN}
+
+ use doc && dodoc techdoc.pdf
+}
diff --git a/sys-apps/apparmor/files/apparmor-2.8.2-makefile.patch b/sys-apps/apparmor/files/apparmor-2.8.2-makefile.patch
new file mode 100644
index 000000000000..0888c15d9121
--- /dev/null
+++ b/sys-apps/apparmor/files/apparmor-2.8.2-makefile.patch
@@ -0,0 +1,34 @@
+--- Makefile
++++ Makefile
+@@ -31,7 +31,7 @@
+ CONFDIR=/etc/apparmor
+ INSTALL_CONFDIR=${DESTDIR}${CONFDIR}
+ LOCALEDIR=/usr/share/locale
+-MANPAGES=apparmor.d.5 apparmor.7 apparmor_parser.8 subdomain.conf.5 apparmor.vim.5
++MANPAGES=apparmor.d.5 apparmor.7 apparmor_parser.8
+
+ YACC := /usr/bin/bison
+ YFLAGS := -d
+@@ -153,7 +153,7 @@
+ ln -s `$(CXX) -print-file-name=libstdc++.a`
+
+ apparmor_parser: $(OBJECTS) $(AAREOBJECTS)
+- $(CXX) $(EXTRA_CFLAGS) -o $@ $(OBJECTS) $(LIBS) \
++ $(CXX) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ $(OBJECTS) $(LIBS) \
+ ${LEXLIB} $(AAREOBJECTS) $(AARE_LDFLAGS)
+
+ parser_yacc.c parser_yacc.h: parser_yacc.y parser.h
+@@ -284,11 +284,9 @@
+ .PHONY: install-indep
+ install-indep:
+ install -m 755 -d $(INSTALL_CONFDIR)
+- install -m 644 subdomain.conf $(INSTALL_CONFDIR)
++ install -m 755 -d ${DESTDIR}/usr/libexec
+ install -m 644 parser.conf $(INSTALL_CONFDIR)
+- install -m 755 -d ${DESTDIR}/var/lib/apparmor
+- install -m 755 -d $(APPARMOR_BIN_PREFIX)
+- install -m 755 rc.apparmor.functions $(APPARMOR_BIN_PREFIX)
++ install -m 755 rc.apparmor.functions ${DESTDIR}/usr/libexec
+ $(MAKE) -C po install NAME=${NAME} DESTDIR=${DESTDIR}
+ $(MAKE) install_manpages DESTDIR=${DESTDIR}
+
diff --git a/sys-apps/apparmor/files/apparmor-init b/sys-apps/apparmor/files/apparmor-init
new file mode 100755
index 000000000000..7a5ce81ef1bc
--- /dev/null
+++ b/sys-apps/apparmor/files/apparmor-init
@@ -0,0 +1,92 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/apparmor/files/apparmor-init,v 1.1 2013/12/03 17:34:06 kensington Exp $
+
+description="Load all configured profiles for the AppArmor security module."
+description_reload="Reload all profiles"
+
+extra_started_commands="reload"
+
+aa_action() {
+ local arg=$1
+ local return
+
+ shift
+ $*
+ return=$?
+
+ if [ ${return} -eq 0 ]; then
+ aa_log_success_msg $arg
+ else
+ aa_log_failure_msg arg
+ fi
+
+ return $return
+}
+
+aa_log_action_start() {
+ ebegin $1
+}
+
+aa_log_action_end() {
+ eend $1
+}
+
+aa_log_success_msg() {
+ einfo $1
+}
+
+aa_log_warning_msg() {
+ ewarn $1
+}
+
+aa_log_failure_msg() {
+ eerror $1
+}
+
+aa_log_skipped_msg() {
+ einfo $1
+}
+
+aa_log_daemon_msg() {
+ einfo $1
+}
+
+aa_log_end_msg() {
+ eend $1
+}
+
+. /usr/libexec/rc.apparmor.functions
+
+start() {
+ ebegin "Starting AppArmor"
+ eindent
+
+ if ! is_apparmor_loaded ; then
+ load_module
+ if [ $? -ne 0 ]; then
+ eerror "AppArmor kernel support is not present"
+ eend 1
+ return 1
+ fi
+ fi
+
+ parse_profiles load
+
+ eoutdent
+}
+
+stop() {
+ ebegin "Stopping AppArmor"
+ eindent
+ apparmor_stop
+ eoutdent
+}
+
+reload() {
+ # todo: split out clean_profiles into its own function upstream
+ # so we can do parse_profiles reload && clean_profiles
+ # and do a proper reload instead of restart
+ apparmor_restart
+}
diff --git a/sys-apps/apparmor/metadata.xml b/sys-apps/apparmor/metadata.xml
new file mode 100644
index 000000000000..14820df3f094
--- /dev/null
+++ b/sys-apps/apparmor/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>kensington@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="launchpad">apparmor</remote-id>
+ </upstream>
+</pkgmetadata>