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