1 |
blueness 11/06/30 10:35:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: policycoreutils-2.0.82-r1.ebuild |
5 |
Log: |
6 |
Overwrite invalid .po files with valid ones, fixes bug #372807 |
7 |
|
8 |
(Portage version: 2.1.9.42/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.85 sys-apps/policycoreutils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.85&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.85&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?r1=1.84&r2=1.85 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v |
20 |
retrieving revision 1.84 |
21 |
retrieving revision 1.85 |
22 |
diff -u -r1.84 -r1.85 |
23 |
--- ChangeLog 16 Jun 2011 01:36:00 -0000 1.84 |
24 |
+++ ChangeLog 30 Jun 2011 10:35:35 -0000 1.85 |
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.84 2011/06/16 01:36:00 blueness Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.85 2011/06/30 10:35:35 blueness Exp $ |
30 |
+ |
31 |
+*policycoreutils-2.0.82-r1 (30 Jun 2011) |
32 |
+ |
33 |
+ 30 Jun 2011; Anthony G. Basile <blueness@g.o> |
34 |
+ +policycoreutils-2.0.82-r1.ebuild: |
35 |
+ Overwrite invalid .po files with valid ones, fixes bug #372807 |
36 |
|
37 |
16 Jun 2011; Anthony G. Basile <blueness@g.o> |
38 |
policycoreutils-2.0.82.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-apps/policycoreutils/policycoreutils-2.0.82-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.82-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.82-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: policycoreutils-2.0.82-r1.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.0.82-r1.ebuild,v 1.1 2011/06/30 10:35:35 blueness Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
PYTHON_DEPEND="2" |
55 |
PYTHON_USE_WITH="xml" |
56 |
SUPPORT_PYTHON_ABIS="1" |
57 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
58 |
|
59 |
inherit multilib python toolchain-funcs |
60 |
|
61 |
EXTRAS_VER="1.20" |
62 |
SEMNG_VER="2.0.45" |
63 |
SELNX_VER="2.0.94" |
64 |
SEPOL_VER="2.0.41" |
65 |
|
66 |
IUSE="" |
67 |
|
68 |
DESCRIPTION="SELinux core utilities" |
69 |
HOMEPAGE="http://userspace.selinuxproject.org" |
70 |
SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${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 |
COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}[python] |
78 |
>=sys-libs/glibc-2.4 |
79 |
>=sys-process/audit-1.5.1 |
80 |
>=sys-libs/libcap-1.10-r10 |
81 |
sys-libs/pam |
82 |
>=sys-libs/libsemanage-${SEMNG_VER}[python] |
83 |
sys-libs/libcap-ng |
84 |
>=sys-libs/libsepol-${SEPOL_VER} |
85 |
sys-devel/gettext" |
86 |
|
87 |
# pax-utils for scanelf used by rlpkg |
88 |
RDEPEND="${COMMON_DEPS} |
89 |
dev-python/sepolgen |
90 |
app-misc/pax-utils" |
91 |
|
92 |
DEPEND="${COMMON_DEPS}" |
93 |
|
94 |
S2=${WORKDIR}/policycoreutils-extra |
95 |
|
96 |
src_prepare() { |
97 |
# rlpkg is more useful than fixfiles |
98 |
sed -i -e '/^all/s/fixfiles//' "${S}/scripts/Makefile" \ |
99 |
|| die "fixfiles sed 1 failed" |
100 |
sed -i -e '/fixfiles/d' "${S}/scripts/Makefile" \ |
101 |
|| die "fixfiles sed 2 failed" |
102 |
# removing sandbox for the time being, need to |
103 |
# rename in future to sesandbox? |
104 |
sed -i -e 's/sandbox //' "${S}/Makefile" \ |
105 |
|| die "failed removing sandbox" |
106 |
# Overwrite gl.po, id.po and et.po with valid PO file |
107 |
cp "${S}/po/sq.po" "${S}/po/gl.po" || die "failed to copy ${S}/po/sq.po to gl.po" |
108 |
cp "${S}/po/sq.po" "${S}/po/id.po" || die "failed to copy ${S}/po/sq.po to id.po" |
109 |
cp "${S}/po/sq.po" "${S}/po/et.po" || die "failed to copy ${S}/po/sq.po to et.po" |
110 |
} |
111 |
|
112 |
src_compile() { |
113 |
einfo "Compiling policycoreutils" |
114 |
emake -C "${S}" AUDIT_LOG_PRIV="y" CC="$(tc-getCC)" || die |
115 |
einfo "Compiling policycoreutils-extra" |
116 |
emake -C "${S2}" CC="$(tc-getCC)" || die |
117 |
} |
118 |
|
119 |
src_install() { |
120 |
# Python scripts are present in many places. There are no extension modules. |
121 |
installation() { |
122 |
einfo "Installing policycoreutils" |
123 |
emake -C "${S}" DESTDIR="${T}/images/${PYTHON_ABI}" AUDIT_LOG_PRIV="y" PYLIBVER="python$(python_get_version)" install || return 1 |
124 |
|
125 |
einfo "Installing policycoreutils-extra" |
126 |
emake -C "${S2}" DESTDIR="${T}/images/${PYTHON_ABI}" SHLIBDIR="${D}$(get_libdir)/rc" install || return 1 |
127 |
} |
128 |
python_execute_function installation |
129 |
python_merge_intermediate_installation_images "${T}/images" |
130 |
|
131 |
# remove redhat-style init script |
132 |
rm -fR "${D}/etc/rc.d" |
133 |
|
134 |
# compatibility symlinks |
135 |
dosym /sbin/setfiles /usr/sbin/setfiles |
136 |
dosym /$(get_libdir)/rc/runscript_selinux.so /$(get_libdir)/rcscripts/runscript_selinux.so |
137 |
} |
138 |
|
139 |
pkg_postinst() { |
140 |
python_mod_optimize seobject.py |
141 |
} |
142 |
|
143 |
pkg_postrm() { |
144 |
python_mod_cleanup seobject.py |
145 |
} |