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