Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sec-policy/apparmor-profiles/
Date: Thu, 04 Apr 2019 10:43:24
Message-Id: 1554374586.c580d328f115e44658f07454e92d127ecf0ba676.kensington@gentoo
1 commit: c580d328f115e44658f07454e92d127ecf0ba676
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 4 10:41:44 2019 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 4 10:43:06 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c580d328
7
8 sec-policy/apparmor-profiles: add live ebuild
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org>
12
13 .../apparmor-profiles-9999.ebuild | 37 ++++++++++++++++++++++
14 1 file changed, 37 insertions(+)
15
16 diff --git a/sec-policy/apparmor-profiles/apparmor-profiles-9999.ebuild b/sec-policy/apparmor-profiles/apparmor-profiles-9999.ebuild
17 new file mode 100644
18 index 00000000000..7c3930d3847
19 --- /dev/null
20 +++ b/sec-policy/apparmor-profiles/apparmor-profiles-9999.ebuild
21 @@ -0,0 +1,37 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +inherit git-r3
28 +
29 +DESCRIPTION="A collection of profiles for the AppArmor application security system"
30 +HOMEPAGE="https://gitlab.com/apparmor/apparmor/wikis/home"
31 +
32 +LICENSE="GPL-2"
33 +SLOT="0"
34 +KEYWORDS=""
35 +IUSE="minimal vanilla"
36 +
37 +RESTRICT="test"
38 +
39 +S=${WORKDIR}/${P}/profiles
40 +
41 +pkg_setup() {
42 + if use vanilla; then
43 + EGIT_REPO_URI="https://gitlab.com/apparmor/apparmor.git"
44 + EGIT_BRANCH="master"
45 + else
46 + EGIT_REPO_URI="https://github.com/kensington/apparmor.git"
47 + EGIT_BRANCH="gentoo"
48 + fi
49 +}
50 +
51 +src_install() {
52 + if use minimal ; then
53 + insinto /etc/apparmor.d
54 + doins -r apparmor.d/{abstractions,tunables}
55 + else
56 + default
57 + fi
58 +}