diff options
author | Michael Palimaka <kensington@gentoo.org> | 2013-12-03 17:30:19 +0000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2013-12-03 17:30:19 +0000 |
commit | d2b96300921302f16937f62fc0996b00f8647b40 (patch) | |
tree | 425b7f34698bacd83a725fad022715ab49478f1b /sys-libs/libapparmor | |
parent | Initial commit, thanks to 0xd34df00d (diff) | |
download | gentoo-2-d2b96300921302f16937f62fc0996b00f8647b40.tar.gz gentoo-2-d2b96300921302f16937f62fc0996b00f8647b40.tar.bz2 gentoo-2-d2b96300921302f16937f62fc0996b00f8647b40.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-libs/libapparmor')
-rw-r--r-- | sys-libs/libapparmor/ChangeLog | 9 | ||||
-rw-r--r-- | sys-libs/libapparmor/Manifest | 3 | ||||
-rw-r--r-- | sys-libs/libapparmor/libapparmor-2.8.2.ebuild | 84 | ||||
-rw-r--r-- | sys-libs/libapparmor/metadata.xml | 10 |
4 files changed, 106 insertions, 0 deletions
diff --git a/sys-libs/libapparmor/ChangeLog b/sys-libs/libapparmor/ChangeLog new file mode 100644 index 000000000000..0770d0b85cbd --- /dev/null +++ b/sys-libs/libapparmor/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sys-libs/libapparmor +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libapparmor/ChangeLog,v 1.1 2013/12/03 17:30:19 kensington Exp $ + +*libapparmor-2.8.2 (03 Dec 2013) + + 03 Dec 2013; Michael Palimaka <kensington@gentoo.org> + +libapparmor-2.8.2.ebuild, +metadata.xml: + New package wrt bug #118779. diff --git a/sys-libs/libapparmor/Manifest b/sys-libs/libapparmor/Manifest new file mode 100644 index 000000000000..d16a295c599d --- /dev/null +++ b/sys-libs/libapparmor/Manifest @@ -0,0 +1,3 @@ +DIST apparmor-2.8.2.tar.gz 1507411 SHA256 742f3f776c5e1bf303fe2c4bca7607241593189a8c985f9f3acc01baa7dbd2bb SHA512 f3684a7a894d0330ade5b14525ab0f16d62410b39ae046c0239e8d322a6f1240ee3079d67a78afa455964dd84fe55aaa29857cef5e935be7ea92133e59e01e09 WHIRLPOOL 8b1c0870c9a32405acb19a7f00495d393febe700125f760aae45c0cdc9c2b5e256b2b89e00a8c83ff44c2194c9461fcd69a36f1029d56283a418ff0b478e4287 +EBUILD libapparmor-2.8.2.ebuild 1839 SHA256 4cd41ddc2dc8062a136c64f817678c28edb43b8d94f20b690c086c0fd673c153 SHA512 5ba5358beab361014adeafeb1b9de61ed0b17466948cb7a31dd70d8613134f0eeb0e826b9fa52ce8a0e8de7de015cbf69bd87c44b5bb59088ae47d623d55bc56 WHIRLPOOL b73c61e931329fb1e2649c23a1658397b64cc0d1f82b7403e754446169e5918df2b67283ec5c1cf644f10df05101f7ba191197e757561823c24240595224de77 +MISC metadata.xml 283 SHA256 8181aa734479838ccf5fda17b726d5b98073078f272307e7745cb4fbf7d88bf3 SHA512 eb93496c7300aced5fcf864af2ab08e7367439f0932f015060530963ecde7d6d8da2902aa26248902a4acc2ca48ccff5aaf210302109c3effad10dca61b30df3 WHIRLPOOL ebcb3e58e0b534547dcd189ca796288b2b99d3c4c213d76fc603cbdea633d11aba86f4fad991a4579d80f18d6498b6e20bc09dd9c756c73d8982b2391cab39dd diff --git a/sys-libs/libapparmor/libapparmor-2.8.2.ebuild b/sys-libs/libapparmor/libapparmor-2.8.2.ebuild new file mode 100644 index 000000000000..bfacd9c14a1b --- /dev/null +++ b/sys-libs/libapparmor/libapparmor-2.8.2.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libapparmor/libapparmor-2.8.2.ebuild,v 1.1 2013/12/03 17:30:19 kensington Exp $ + +EAPI=5 + +AUTOTOOLS_AUTORECONF=1 +DISTUTILS_OPTIONAL=1 +PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} ) +GENTOO_DEPEND_ON_PERL="no" + +inherit autotools-utils distutils-r1 perl-module versionator + +DESCRIPTION="Library to support AppArmor userspace utilities" +HOMEPAGE="http://apparmor.net/" +SRC_URI="http://launchpad.net/apparmor/$(get_version_component_range 1-2)/${PV}/+download/apparmor-${PV}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc +perl python static-libs" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="perl? ( dev-lang/perl ) + python? ( ${PYTHON_DEPS} )" + +DEPEND="${RDEPEND} + sys-devel/autoconf-archive + sys-devel/bison + sys-devel/flex + doc? ( dev-lang/perl ) + perl? ( dev-lang/swig ) + python? ( dev-lang/swig )" + +S=${WORKDIR}/apparmor-${PV}/libraries/${PN} + +src_prepare() { + rm -r m4 || die "failed to remove bundled macros" + + autotools-utils_src_prepare + use python && distutils-r1_src_prepare +} + +src_configure() { + local myeconfargs=( + $(use_with perl) \ + $(use_with python) + ) + + autotools-utils_src_configure +} + +src_compile() { + autotools-utils_src_compile -C src + + use doc && autotools-utils_src_compile -C doc + use perl && autotools-utils_src_compile -C swig/perl + + if use python ; then + pushd "${BUILD_DIR}"/swig/python > /dev/null + emake libapparmor_wrap.c + distutils-r1_src_compile + popd > /dev/null + fi +} + +src_install() { + autotools-utils_src_install -C src + use doc && autotools-utils_src_install -C doc + + if use perl ; then + autotools-utils_src_install -C swig/perl + perlinfo + insinto "${VENDOR_ARCH}" + doins "${BUILD_DIR}"/swig/perl/LibAppArmor.pm + fi + + if use python ; then + pushd "${BUILD_DIR}"/swig/python > /dev/null + distutils-r1_src_install + popd > /dev/null + fi +} diff --git a/sys-libs/libapparmor/metadata.xml b/sys-libs/libapparmor/metadata.xml new file mode 100644 index 000000000000..14820df3f094 --- /dev/null +++ b/sys-libs/libapparmor/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> |