1 |
swift 14/10/29 17:33:11 |
2 |
|
3 |
Modified: policycoreutils-2.4_rc2.ebuild ChangeLog |
4 |
Added: policycoreutils-2.4_rc5.ebuild |
5 |
Removed: policycoreutils-2.4_rc4.ebuild |
6 |
Log: |
7 |
Bump to 2.4_rc5 |
8 |
|
9 |
(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47) |
10 |
|
11 |
Revision Changes Path |
12 |
1.2 sys-apps/policycoreutils/policycoreutils-2.4_rc2.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc2.ebuild?rev=1.2&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc2.ebuild?rev=1.2&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc2.ebuild?r1=1.1&r2=1.2 |
17 |
|
18 |
Index: policycoreutils-2.4_rc2.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc2.ebuild,v |
21 |
retrieving revision 1.1 |
22 |
retrieving revision 1.2 |
23 |
diff -u -r1.1 -r1.2 |
24 |
--- policycoreutils-2.4_rc2.ebuild 21 Sep 2014 10:22:57 -0000 1.1 |
25 |
+++ policycoreutils-2.4_rc2.ebuild 29 Oct 2014 17:33:11 -0000 1.2 |
26 |
@@ -1,6 +1,6 @@ |
27 |
# Copyright 1999-2014 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc2.ebuild,v 1.1 2014/09/21 10:22:57 swift Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc2.ebuild,v 1.2 2014/10/29 17:33:11 swift Exp $ |
31 |
|
32 |
EAPI="5" |
33 |
PYTHON_COMPAT=( python2_7 ) |
34 |
@@ -34,7 +34,7 @@ |
35 |
sys-libs/libcap-ng |
36 |
>=sys-libs/libsepol-${SEPOL_VER} |
37 |
sys-devel/gettext |
38 |
- dev-python/ipy |
39 |
+ dev-python/ipy[${PYTHON_USEDEP}] |
40 |
dbus? ( |
41 |
sys-apps/dbus |
42 |
dev-libs/dbus-glib |
43 |
|
44 |
|
45 |
|
46 |
1.144 sys-apps/policycoreutils/ChangeLog |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.144&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.144&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?r1=1.143&r2=1.144 |
51 |
|
52 |
Index: ChangeLog |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v |
55 |
retrieving revision 1.143 |
56 |
retrieving revision 1.144 |
57 |
diff -u -r1.143 -r1.144 |
58 |
--- ChangeLog 7 Oct 2014 19:04:20 -0000 1.143 |
59 |
+++ ChangeLog 29 Oct 2014 17:33:11 -0000 1.144 |
60 |
@@ -1,6 +1,13 @@ |
61 |
# ChangeLog for sys-apps/policycoreutils |
62 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.143 2014/10/07 19:04:20 swift Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.144 2014/10/29 17:33:11 swift Exp $ |
65 |
+ |
66 |
+*policycoreutils-2.4_rc5 (29 Oct 2014) |
67 |
+ |
68 |
+ 29 Oct 2014; Sven Vermeulen <swift@g.o> |
69 |
+ +policycoreutils-2.4_rc5.ebuild, -policycoreutils-2.4_rc4.ebuild, |
70 |
+ policycoreutils-2.4_rc2.ebuild: |
71 |
+ Bump to 2.4_rc5 |
72 |
|
73 |
*policycoreutils-2.4_rc4 (07 Oct 2014) |
74 |
|
75 |
|
76 |
|
77 |
|
78 |
1.1 sys-apps/policycoreutils/policycoreutils-2.4_rc5.ebuild |
79 |
|
80 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc5.ebuild?rev=1.1&view=markup |
81 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc5.ebuild?rev=1.1&content-type=text/plain |
82 |
|
83 |
Index: policycoreutils-2.4_rc5.ebuild |
84 |
=================================================================== |
85 |
# Copyright 1999-2014 Gentoo Foundation |
86 |
# Distributed under the terms of the GNU General Public License v2 |
87 |
# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.4_rc5.ebuild,v 1.1 2014/10/29 17:33:11 swift Exp $ |
88 |
|
89 |
EAPI="5" |
90 |
PYTHON_COMPAT=( python2_7 ) |
91 |
PYTHON_REQ_USE="xml" |
92 |
|
93 |
inherit multilib python-r1 toolchain-funcs eutils |
94 |
|
95 |
MY_P="${P//_/-}" |
96 |
|
97 |
EXTRAS_VER="1.33" |
98 |
SEMNG_VER="2.4_rc4" |
99 |
SELNX_VER="2.4_rc4" |
100 |
SEPOL_VER="2.4_rc4" |
101 |
PATCHBUNDLE="4" |
102 |
|
103 |
IUSE="audit pam dbus" |
104 |
|
105 |
DESCRIPTION="SELinux core utilities" |
106 |
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
107 |
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140826/${MY_P}.tar.gz |
108 |
mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2" |
109 |
|
110 |
LICENSE="GPL-2" |
111 |
SLOT="0" |
112 |
KEYWORDS="~amd64 ~x86" |
113 |
|
114 |
COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}[python] |
115 |
>=sys-libs/glibc-2.4 |
116 |
>=sys-libs/libcap-1.10-r10 |
117 |
>=sys-libs/libsemanage-${SEMNG_VER}[python] |
118 |
sys-libs/libcap-ng |
119 |
>=sys-libs/libsepol-${SEPOL_VER} |
120 |
sys-devel/gettext |
121 |
dev-python/ipy[${PYTHON_USEDEP}] |
122 |
dbus? ( |
123 |
sys-apps/dbus |
124 |
dev-libs/dbus-glib |
125 |
) |
126 |
audit? ( >=sys-process/audit-1.5.1 ) |
127 |
pam? ( sys-libs/pam ) |
128 |
${PYTHON_DEPS}" |
129 |
|
130 |
### libcgroup -> seunshare |
131 |
### dbus -> restorecond |
132 |
|
133 |
# pax-utils for scanelf used by rlpkg |
134 |
RDEPEND="${COMMON_DEPS} |
135 |
dev-python/sepolgen |
136 |
app-misc/pax-utils" |
137 |
|
138 |
DEPEND="${COMMON_DEPS}" |
139 |
|
140 |
S="${WORKDIR}/${MY_P}" |
141 |
S1="${WORKDIR}/${MY_P}" |
142 |
S2="${WORKDIR}/policycoreutils-extra" |
143 |
|
144 |
src_prepare() { |
145 |
epatch "${FILESDIR}/0010-remove-sesandbox-support.patch" |
146 |
epatch "${FILESDIR}/0020-disable-autodetection-of-pam-and-audit.patch" |
147 |
epatch "${FILESDIR}/0030-make-inotify-check-use-flag-triggered.patch" |
148 |
epatch "${FILESDIR}/0040-reverse-access-check-in-run_init.patch" |
149 |
epatch "${FILESDIR}/0070-remove-symlink-attempt-fails-with-gentoo-sandbox-approach.patch" |
150 |
epatch "${FILESDIR}/0110-build-mcstrans-bug-472912.patch" |
151 |
epatch "${FILESDIR}/0120-build-failure-for-mcscolor-for-CONTEXT__CONTAINS.patch" |
152 |
|
153 |
# rlpkg is more useful than fixfiles |
154 |
sed -i -e '/^all/s/fixfiles//' "${S}/scripts/Makefile" \ |
155 |
|| die "fixfiles sed 1 failed" |
156 |
sed -i -e '/fixfiles/d' "${S}/scripts/Makefile" \ |
157 |
|| die "fixfiles sed 2 failed" |
158 |
|
159 |
epatch_user |
160 |
|
161 |
python_copy_sources |
162 |
# Our extra code is outside the regular directory, so set it to the extra |
163 |
# directory. We really should optimize this as it is ugly, but the extra |
164 |
# code is needed for Gentoo at the same time that policycoreutils is present |
165 |
# (so we cannot use an additional package for now). |
166 |
S="${S2}" |
167 |
python_copy_sources |
168 |
} |
169 |
|
170 |
src_compile() { |
171 |
local use_audit="n"; |
172 |
local use_pam="n"; |
173 |
local use_dbus="n"; |
174 |
local use_sesandbox="n"; |
175 |
|
176 |
use audit && use_audit="y"; |
177 |
use pam && use_pam="y"; |
178 |
use dbus && use_dbus="y"; |
179 |
|
180 |
building() { |
181 |
emake -C "${BUILD_DIR}" AUDIT_LOG_PRIVS="y" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" CC="$(tc-getCC)" PYLIBVER="${EPYTHON}" || die |
182 |
} |
183 |
S="${S1}" # Regular policycoreutils |
184 |
python_foreach_impl building |
185 |
S="${S2}" # Extra set |
186 |
python_foreach_impl building |
187 |
} |
188 |
|
189 |
src_install() { |
190 |
local use_audit="n"; |
191 |
local use_pam="n"; |
192 |
local use_dbus="n"; |
193 |
local use_sesandbox="n"; |
194 |
|
195 |
use audit && use_audit="y"; |
196 |
use pam && use_pam="y"; |
197 |
use dbus && use_dbus="y"; |
198 |
|
199 |
# Python scripts are present in many places. There are no extension modules. |
200 |
installation-policycoreutils() { |
201 |
einfo "Installing policycoreutils" |
202 |
emake -C "${BUILD_DIR}" DESTDIR="${D}" AUDITH="${use_audit}" PAMH="${use_pam}" INOTIFYH="${use_dbus}" SESANDBOX="${use_sesandbox}" AUDIT_LOG_PRIV="y" PYLIBVER="${EPYTHON}" install || return 1 |
203 |
} |
204 |
|
205 |
installation-extras() { |
206 |
einfo "Installing policycoreutils-extra" |
207 |
emake -C "${BUILD_DIR}" DESTDIR="${D}" INOTIFYH="${use_dbus}" SHLIBDIR="${D}$(get_libdir)/rc" install || return 1 |
208 |
} |
209 |
|
210 |
S="${S1}" # policycoreutils |
211 |
python_foreach_impl installation-policycoreutils |
212 |
S="${S2}" # extras |
213 |
python_foreach_impl installation-extras |
214 |
S="${S1}" # back for later |
215 |
|
216 |
# remove redhat-style init script |
217 |
rm -fR "${D}/etc/rc.d" |
218 |
|
219 |
# compatibility symlinks |
220 |
dosym /sbin/setfiles /usr/sbin/setfiles |
221 |
dosym /$(get_libdir)/rc/runscript_selinux.so /$(get_libdir)/rcscripts/runscript_selinux.so |
222 |
|
223 |
# location for permissive definitions |
224 |
dodir /var/lib/selinux |
225 |
keepdir /var/lib/selinux |
226 |
|
227 |
# Set version-specific scripts |
228 |
for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do |
229 |
python_replicate_script "${ED}/usr/bin/${pyscript}" |
230 |
done |
231 |
for pyscript in semanage rlpkg; do |
232 |
python_replicate_script "${ED}/usr/sbin/${pyscript}" |
233 |
done |
234 |
|
235 |
dodir /usr/share/doc/${PF}/mcstrans/examples |
236 |
cp -dR "${S1}"/mcstrans/share/examples/* "${D}/usr/share/doc/${PF}/mcstrans/examples" |
237 |
} |
238 |
|
239 |
pkg_postinst() { |
240 |
# The selinux_gentoo init script is no longer needed with recent OpenRC |
241 |
elog "The selinux_gentoo init script will be removed in future versions when OpenRC 0.13.x is stabilized." |
242 |
|
243 |
# Migrate the SELinux semanage configuration store if not done already |
244 |
local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' /etc/selinux/config); |
245 |
if [ -n "${selinuxtype}" ] && [ ! -d /var/lib/selinux/${mcs}/active ] ; then |
246 |
ewarn "Since the 2.4 SELinux userspace, the policy module store is moved" |
247 |
ewarn "from /etc/selinux to /var/lib/selinux. In order to continue with" |
248 |
ewarn "the 2.4 userspace, please migrate the necessary files by executing" |
249 |
ewarn "/usr/libexec/selinux/semanage_migrate_store. Warnings about 'else'" |
250 |
ewarn "blocks can be safely ignored." |
251 |
ewarn "For more information, please see" |
252 |
ewarn "- https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration" |
253 |
fi |
254 |
} |