1 |
commit: 6a69d397ea7458814aa27a7164d1dfeba3c888e3 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 10 09:41:23 2020 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 10 09:44:03 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a69d397 |
7 |
|
8 |
sys-apps/apparmor-utils: version bump 3.0.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Michael Palimaka <kensington <AT> gentoo.org> |
12 |
|
13 |
sys-apps/apparmor-utils/Manifest | 1 + |
14 |
.../apparmor-utils/apparmor-utils-3.0.0.ebuild | 86 ++++++++++++++++++++++ |
15 |
2 files changed, 87 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/apparmor-utils/Manifest b/sys-apps/apparmor-utils/Manifest |
18 |
index 6a8b5e50bbe..89bb054ab20 100644 |
19 |
--- a/sys-apps/apparmor-utils/Manifest |
20 |
+++ b/sys-apps/apparmor-utils/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST apparmor-2.13.4.tar.gz 7390179 BLAKE2B 49818a010d5e5757dd43710f2af925fbb62a9f8f9be74556ff31a9a8834bebac010762fc6bef3da8d295e487b65d0e0135f4be25bcb01a834846c5e5d65d92a4 SHA512 d42748bf36ae66849f79653a62d499e9d17a97c4d680fb653eb1c379d0593aaa09f7ddfc6f2fa0d2fb468bce05fb25444976f60a5ec24778fdd7ec20d1c13651 |
23 |
+DIST apparmor-3.0.0.tar.gz 7780686 BLAKE2B a9d9edb4fd2cb32b3db322a3f145aac7cea40fac3401b82947b2c5183598cc326d70859466823e3ac0a2227483c7ed7ba0b2f727e9fb7fbf532468716ef8d18f SHA512 2465a8bc400e24e548b0589b7b022fb8325c53858429b9c54204f989d5589d7bd99c9507bde88a48f9965a55edcbac98efeeb6b93aeefe6a27afa0b7e851aea6 |
24 |
|
25 |
diff --git a/sys-apps/apparmor-utils/apparmor-utils-3.0.0.ebuild b/sys-apps/apparmor-utils/apparmor-utils-3.0.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..fb89112dc69 |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/apparmor-utils/apparmor-utils-3.0.0.ebuild |
30 |
@@ -0,0 +1,86 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python{3_6,3_7} ) |
37 |
+inherit eapi7-ver perl-module python-r1 toolchain-funcs |
38 |
+ |
39 |
+MY_PV="$(ver_cut 1-2)" |
40 |
+ |
41 |
+DESCRIPTION="Additional userspace utils to assist with AppArmor profile management" |
42 |
+HOMEPAGE="https://gitlab.com/apparmor/apparmor/wikis/home" |
43 |
+SRC_URI="https://launchpad.net/apparmor/${MY_PV}/${MY_PV}/+download/apparmor-${PV}.tar.gz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64" |
48 |
+IUSE="" |
49 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
50 |
+ |
51 |
+RESTRICT="test" |
52 |
+ |
53 |
+COMMON_DEPEND=" |
54 |
+ dev-lang/perl |
55 |
+ ~sys-libs/libapparmor-${PV} |
56 |
+ ${PYTHON_DEPS}" |
57 |
+DEPEND="${COMMON_DEPEND} |
58 |
+ sys-devel/gettext |
59 |
+" |
60 |
+RDEPEND="${COMMON_DEPEND} |
61 |
+ ~sys-libs/libapparmor-${PV}[perl,python,${PYTHON_USEDEP}] |
62 |
+ ~sys-apps/apparmor-${PV} |
63 |
+ dev-perl/Locale-gettext |
64 |
+ dev-perl/RPC-XML |
65 |
+ dev-perl/TermReadKey |
66 |
+ virtual/perl-Data-Dumper |
67 |
+ virtual/perl-Getopt-Long" |
68 |
+ |
69 |
+S=${WORKDIR}/apparmor-${PV} |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ |
74 |
+ sed -i binutils/Makefile \ |
75 |
+ -e 's/Bstatic/Bdynamic/g' || die |
76 |
+ |
77 |
+ sed -i utils/aa-remove-unknown \ |
78 |
+ -e 's#^\(APPARMOR_FUNCTIONS=\).*#\1/usr/libexec/rc.apparmor.functions#' || die |
79 |
+} |
80 |
+ |
81 |
+src_compile() { |
82 |
+ python_setup |
83 |
+ |
84 |
+ pushd utils > /dev/null || die |
85 |
+ # launches non-make subprocesses causing "make jobserver unavailable" |
86 |
+ # error messages to appear in generated code |
87 |
+ emake -j1 |
88 |
+ popd > /dev/null || die |
89 |
+ |
90 |
+ pushd binutils > /dev/null || die |
91 |
+ export EXTRA_CFLAGS="${CFLAGS}" |
92 |
+ emake CC="$(tc-getCC)" USE_SYSTEM=1 |
93 |
+ popd > /dev/null || die |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ pushd utils > /dev/null || die |
98 |
+ perl_set_version |
99 |
+ emake DESTDIR="${D}" PERLDIR="${D}/${VENDOR_LIB}/Immunix" \ |
100 |
+ VIM_INSTALL_PATH="${D}/usr/share/vim/vimfiles/syntax" install |
101 |
+ |
102 |
+ install_python() { |
103 |
+ local -x PYTHONDONTWRITEBYTECODE= |
104 |
+ "${PYTHON}" "${S}"/utils/python-tools-setup.py install --prefix=/usr \ |
105 |
+ --root="${D}" --optimize 2 |
106 |
+ } |
107 |
+ |
108 |
+ python_foreach_impl install_python |
109 |
+ python_replicate_script "${D}"/usr/bin/aa-easyprof \ |
110 |
+ "${D}"/usr/sbin/aa-{audit,autodep,cleanprof,complain,disable,enforce,genprof,logprof,mergeprof,unconfined} |
111 |
+ popd > /dev/null || die |
112 |
+ |
113 |
+ pushd binutils > /dev/null || die |
114 |
+ emake install DESTDIR="${D}" USE_SYSTEM=1 |
115 |
+ popd > /dev/null || die |
116 |
+} |