1 |
blueness 11/08/03 10:18:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: policycoreutils-2.1.0.ebuild |
5 |
Log: |
6 |
Bump to 20110727 SELinux userspace release |
7 |
|
8 |
(Portage version: 2.1.10.3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.88 sys-apps/policycoreutils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.88&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.88&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?r1=1.87&r2=1.88 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v |
20 |
retrieving revision 1.87 |
21 |
retrieving revision 1.88 |
22 |
diff -u -r1.87 -r1.88 |
23 |
--- ChangeLog 15 Jul 2011 23:29:30 -0000 1.87 |
24 |
+++ ChangeLog 3 Aug 2011 10:18:27 -0000 1.88 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for sys-apps/policycoreutils |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.87 2011/07/15 23:29:30 blueness Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.88 2011/08/03 10:18:27 blueness Exp $ |
30 |
+ |
31 |
+*policycoreutils-2.1.0 (03 Aug 2011) |
32 |
+ |
33 |
+ 03 Aug 2011; Anthony G. Basile <blueness@g.o> |
34 |
+ +policycoreutils-2.1.0.ebuild: |
35 |
+ Bump to 20110727 SELinux userspace release |
36 |
|
37 |
*policycoreutils-2.0.85 (15 Jul 2011) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-apps/policycoreutils/policycoreutils-2.1.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.1.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.1.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: policycoreutils-2.1.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 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.1.0.ebuild,v 1.1 2011/08/03 10:18:27 blueness Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
PYTHON_DEPEND="*" |
55 |
PYTHON_USE_WITH="xml" |
56 |
SUPPORT_PYTHON_ABIS="1" |
57 |
RESTRICT_PYTHON_ABIS="*-jython" |
58 |
|
59 |
inherit multilib python toolchain-funcs eutils |
60 |
|
61 |
EXTRAS_VER="1.21" |
62 |
SEMNG_VER="2.1.0" |
63 |
SELNX_VER="2.1.0" |
64 |
SEPOL_VER="2.1.0" |
65 |
|
66 |
IUSE="" |
67 |
|
68 |
DESCRIPTION="SELinux core utilities" |
69 |
HOMEPAGE="http://userspace.selinuxproject.org" |
70 |
SRC_URI="http://userspace.selinuxproject.org/releases/20110727/devel/${P}.tar.gz |
71 |
mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2 |
72 |
mirror://gentoo/policycoreutils-2.0.85-python3.tar.gz" |
73 |
|
74 |
LICENSE="GPL-2" |
75 |
SLOT="0" |
76 |
KEYWORDS="~amd64 ~x86" |
77 |
|
78 |
COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}[python] |
79 |
>=sys-libs/glibc-2.4 |
80 |
>=sys-process/audit-1.5.1 |
81 |
>=sys-libs/libcap-1.10-r10 |
82 |
sys-libs/pam |
83 |
>=sys-libs/libsemanage-${SEMNG_VER}[python] |
84 |
sys-libs/libcap-ng |
85 |
>=sys-libs/libsepol-${SEPOL_VER} |
86 |
sys-devel/gettext" |
87 |
|
88 |
# pax-utils for scanelf used by rlpkg |
89 |
RDEPEND="${COMMON_DEPS} |
90 |
dev-python/sepolgen |
91 |
app-misc/pax-utils" |
92 |
|
93 |
DEPEND="${COMMON_DEPS}" |
94 |
|
95 |
S2=${WORKDIR}/policycoreutils-extra |
96 |
|
97 |
src_prepare() { |
98 |
# rlpkg is more useful than fixfiles |
99 |
sed -i -e '/^all/s/fixfiles//' "${S}/scripts/Makefile" \ |
100 |
|| die "fixfiles sed 1 failed" |
101 |
sed -i -e '/fixfiles/d' "${S}/scripts/Makefile" \ |
102 |
|| die "fixfiles sed 2 failed" |
103 |
# We currently do not support MCS, so the sandbox code in policycoreutils |
104 |
# is not usable yet. However, work for MCS is on the way and a reported |
105 |
# vulnerability (bug #374897) might go by unnoticed if we ignore it now. |
106 |
# As such, we will |
107 |
# - prepare support for switching name from "sandbox" to "sesandbox" |
108 |
epatch "${FILESDIR}/policycoreutils-2.0.85-sesandbox.patch.gz" |
109 |
# - patch the sandbox and seunshare code to fix the vulnerability |
110 |
# (uses, with permission, extract from |
111 |
# http://pkgs.fedoraproject.org/gitweb/?p=policycoreutils.git;a=blob_plain;f=policycoreutils-rhat.patch;hb=HEAD) |
112 |
epatch "${FILESDIR}/policycoreutils-2.0.85-fix-seunshare-vuln.patch.gz" |
113 |
# But for now, disable building sandbox code |
114 |
sed -i -e 's/sandbox //' "${S}/Makefile" || die "failed removing sandbox" |
115 |
# Overwrite gl.po, id.po and et.po with valid PO file |
116 |
cp "${S}/po/sq.po" "${S}/po/gl.po" || die "failed to copy ${S}/po/sq.po to gl.po" |
117 |
cp "${S}/po/sq.po" "${S}/po/id.po" || die "failed to copy ${S}/po/sq.po to id.po" |
118 |
cp "${S}/po/sq.po" "${S}/po/et.po" || die "failed to copy ${S}/po/sq.po to et.po" |
119 |
# Fixed scripts for Python 3 support |
120 |
cp "${WORKDIR}/seobject.py" "${S}/semanage/seobject.py" || die "failed to copy seobject.py" |
121 |
cp "${WORKDIR}/semanage" "${S}/semanage/semanage" || die "failed to copy semanage" |
122 |
cp "${WORKDIR}/chcat" "${S}/scripts/chcat" || die "failed to copy chcat" |
123 |
cp "${WORKDIR}/audit2allow" "${S}/audit2allow/audit2allow" || die "failed to copy audit2allow" |
124 |
} |
125 |
|
126 |
src_compile() { |
127 |
python_copy_sources semanage sandbox |
128 |
building() { |
129 |
einfo "Compiling policycoreutils" |
130 |
emake -C "${S}" AUDIT_LOG_PRIVS="y" CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" || die |
131 |
einfo "Compiling policycoreutils-extra" |
132 |
emake -C "${S2}" AUDIT_LOG_PRIVS="y" CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" || die |
133 |
} |
134 |
python_execute_function -s --source-dir semanage building |
135 |
} |
136 |
|
137 |
src_install() { |
138 |
# Python scripts are present in many places. There are no extension modules. |
139 |
installation() { |
140 |
einfo "Installing policycoreutils" |
141 |
emake -C "${S}" DESTDIR="${T}/images/${PYTHON_ABI}" AUDIT_LOG_PRIV="y" PYLIBVER="python$(python_get_version)" install || return 1 |
142 |
|
143 |
einfo "Installing policycoreutils-extra" |
144 |
emake -C "${S2}" DESTDIR="${T}/images/${PYTHON_ABI}" SHLIBDIR="${D}$(get_libdir)/rc" install || return 1 |
145 |
} |
146 |
python_execute_function installation |
147 |
python_merge_intermediate_installation_images "${T}/images" |
148 |
|
149 |
# remove redhat-style init script |
150 |
rm -fR "${D}/etc/rc.d" |
151 |
|
152 |
# compatibility symlinks |
153 |
dosym /sbin/setfiles /usr/sbin/setfiles |
154 |
dosym /$(get_libdir)/rc/runscript_selinux.so /$(get_libdir)/rcscripts/runscript_selinux.so |
155 |
} |
156 |
|
157 |
pkg_postinst() { |
158 |
python_mod_optimize seobject.py |
159 |
} |
160 |
|
161 |
pkg_postrm() { |
162 |
python_mod_cleanup seobject.py |
163 |
} |