Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/apparmor-utils/, sys-apps/apparmor-utils/files/
Date: Sat, 03 Jun 2017 12:53:44
Message-Id: 1496494407.99bd8e36839e36b37717a5c1ba411940010dc85f.kensington@gentoo
1 commit: 99bd8e36839e36b37717a5c1ba411940010dc85f
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 3 12:51:56 2017 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 3 12:53:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=99bd8e36
7
8 sys-apps/apparmor-utils: remove 2.10.1 and 2.11.0-r0
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 sys-apps/apparmor-utils/Manifest | 1 -
13 .../apparmor-utils/apparmor-utils-2.10.1.ebuild | 57 ---------------------
14 .../apparmor-utils/apparmor-utils-2.11.0.ebuild | 59 ----------------------
15 .../files/apparmor-utils-2.10-shebang.patch | 16 ------
16 4 files changed, 133 deletions(-)
17
18 diff --git a/sys-apps/apparmor-utils/Manifest b/sys-apps/apparmor-utils/Manifest
19 index c564ea3a69c..b3f6af57495 100644
20 --- a/sys-apps/apparmor-utils/Manifest
21 +++ b/sys-apps/apparmor-utils/Manifest
22 @@ -1,2 +1 @@
23 -DIST apparmor-2.10.1.tar.gz 4494037 SHA256 07a76f338304baadc4ad69d025fe000b1ab4779a251ae8f338afdc13ef1e0f24 SHA512 93992c25f77bb46389160df8324c811b4c2f0fad4b425902b30ce31d6e1f3a0efe6b359c6f8348ef646f8b527584e1f19eb4f46b27fb1ba742489ad09d171278 WHIRLPOOL d59d935db520d3c59bd0398727a1151b3280c2bf56e8f978c3595f50ff06cb70aaddc0313a7d16705b8eadeb2018aeef7ce585423c3a6ed7c34dfd4e06df9c25
24 DIST apparmor-2.11.0.tar.gz 5013297 SHA256 b1c489ea11e7771b8e6b181532cafbf9ebe6603e3cb00e2558f21b7a5bdd739a SHA512 86b33c1cbbd256028dd5fdfaddc764c225845acd19c833223fce5cdd6164f997fe010d7b642791f834a3417b4ea847d77175fdfd89ea99ab2111933790d42b55 WHIRLPOOL 2a3ca9a943694fba0f225cffc2bac3782545c0970b490189585a87cccf18047128eaab754e53003e03d535a5851a3198b0738a89c6547e88d081f6ad31f066d5
25
26 diff --git a/sys-apps/apparmor-utils/apparmor-utils-2.10.1.ebuild b/sys-apps/apparmor-utils/apparmor-utils-2.10.1.ebuild
27 deleted file mode 100644
28 index 626d63b7121..00000000000
29 --- a/sys-apps/apparmor-utils/apparmor-utils-2.10.1.ebuild
30 +++ /dev/null
31 @@ -1,57 +0,0 @@
32 -# Copyright 1999-2017 Gentoo Foundation
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -PYTHON_COMPAT=( python{2_7,3_4} )
38 -inherit perl-module python-r1 versionator
39 -
40 -DESCRIPTION="Additional userspace utils to assist with AppArmor profile management"
41 -HOMEPAGE="http://apparmor.net/"
42 -SRC_URI="https://launchpad.net/apparmor/$(get_version_component_range 1-2)/${PV}/+download/apparmor-${PV}.tar.gz"
43 -
44 -LICENSE="GPL-2"
45 -SLOT="0"
46 -KEYWORDS="~amd64"
47 -IUSE=""
48 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 -
50 -DEPEND="dev-lang/perl
51 - ${PYTHON_DEPS}"
52 -RDEPEND="${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}/utils
62 -
63 -PATCHES=(
64 - "${FILESDIR}/${PN}-2.10-shebang.patch"
65 -)
66 -
67 -src_compile() {
68 - python_setup
69 -
70 - # launches non-make subprocesses causing "make jobserver unavailable"
71 - # error messages to appear in generated code
72 - emake -j1
73 -}
74 -
75 -src_install() {
76 - perl_set_version
77 - emake DESTDIR="${D}" PERLDIR="${D}/${VENDOR_LIB}/Immunix" \
78 - VIM_INSTALL_PATH="${D}/usr/share/vim/vimfiles/syntax" install
79 -
80 - install_python() {
81 - "${PYTHON}" "${S}"/python-tools-setup.py install --prefix=/usr \
82 - --root="${D}" --version="${PV}"
83 - }
84 -
85 - python_foreach_impl install_python
86 - python_replicate_script "${D}"/usr/bin/aa-easyprof "${D}"/usr/sbin/apparmor_status \
87 - "${D}"/usr/sbin/aa-{audit,autodep,cleanprof,complain,disable,enforce,genprof,logprof,mergeprof,status,unconfined}
88 -}
89
90 diff --git a/sys-apps/apparmor-utils/apparmor-utils-2.11.0.ebuild b/sys-apps/apparmor-utils/apparmor-utils-2.11.0.ebuild
91 deleted file mode 100644
92 index fbd4daeaa6e..00000000000
93 --- a/sys-apps/apparmor-utils/apparmor-utils-2.11.0.ebuild
94 +++ /dev/null
95 @@ -1,59 +0,0 @@
96 -# Copyright 1999-2017 Gentoo Foundation
97 -# Distributed under the terms of the GNU General Public License v2
98 -
99 -EAPI=6
100 -
101 -PYTHON_COMPAT=( python3_4 )
102 -inherit perl-module python-r1 versionator
103 -
104 -MY_PV="$(get_version_component_range 1-2)"
105 -
106 -DESCRIPTION="Additional userspace utils to assist with AppArmor profile management"
107 -HOMEPAGE="http://apparmor.net/"
108 -SRC_URI="https://launchpad.net/apparmor/${MY_PV}/${MY_PV}/+download/apparmor-${PV}.tar.gz"
109 -
110 -LICENSE="GPL-2"
111 -SLOT="0"
112 -KEYWORDS="~amd64"
113 -IUSE=""
114 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
115 -
116 -DEPEND="dev-lang/perl
117 - ${PYTHON_DEPS}"
118 -RDEPEND="${DEPEND}
119 - ~sys-libs/libapparmor-${PV}[perl,python]
120 - ~sys-apps/apparmor-${PV}
121 - dev-perl/Locale-gettext
122 - dev-perl/RPC-XML
123 - dev-perl/TermReadKey
124 - virtual/perl-Data-Dumper
125 - virtual/perl-Getopt-Long"
126 -
127 -S=${WORKDIR}/apparmor-${PV}/utils
128 -
129 -PATCHES=(
130 - "${FILESDIR}/${PN}-2.10-shebang.patch"
131 -)
132 -
133 -src_compile() {
134 - python_setup
135 -
136 - # launches non-make subprocesses causing "make jobserver unavailable"
137 - # error messages to appear in generated code
138 - emake -j1
139 -}
140 -
141 -src_install() {
142 - perl_set_version
143 - emake DESTDIR="${D}" PERLDIR="${D}/${VENDOR_LIB}/Immunix" \
144 - VIM_INSTALL_PATH="${D}/usr/share/vim/vimfiles/syntax" install
145 -
146 - install_python() {
147 - "${PYTHON}" "${S}"/python-tools-setup.py install --prefix=/usr \
148 - --root="${D}" --version="${PV}"
149 - }
150 -
151 - python_foreach_impl install_python
152 - python_replicate_script "${D}"/usr/bin/aa-easyprof "${D}"/usr/sbin/apparmor_status \
153 - "${D}"/usr/sbin/aa-{audit,autodep,cleanprof,complain,disable,enforce,genprof,logprof,mergeprof,status,unconfined}
154 -}
155
156 diff --git a/sys-apps/apparmor-utils/files/apparmor-utils-2.10-shebang.patch b/sys-apps/apparmor-utils/files/apparmor-utils-2.10-shebang.patch
157 deleted file mode 100644
158 index 19b8892ee31..00000000000
159 --- a/sys-apps/apparmor-utils/files/apparmor-utils-2.10-shebang.patch
160 +++ /dev/null
161 @@ -1,16 +0,0 @@
162 -Avoid rewriting the shebang.
163 -
164 -The ebuild will take care of this when replicating the script for each of the
165 -supported python implementations.
166 -
167 ---- a/python-tools-setup.py
168 -+++ b/python-tools-setup.py
169 -@@ -43,7 +43,7 @@
170 - f = prefix + s
171 - # If we have a defined python version, use it instead of the system
172 - # default
173 -- if 'PYTHON' in os.environ:
174 -+ if False:
175 - lines = open(os.path.basename(s)).readlines()
176 - lines[0] = '#! /usr/bin/env %s\n' % os.environ['PYTHON']
177 - open(f, 'w').write("".join(lines))