1 |
swift 14/04/28 19:44:09 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: policycoreutils-2.3_rc1.ebuild |
5 |
Log: |
6 |
2.3-rc1 release |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47) |
9 |
|
10 |
Revision Changes Path |
11 |
1.133 sys-apps/policycoreutils/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.133&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.133&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?r1=1.132&r2=1.133 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v |
20 |
retrieving revision 1.132 |
21 |
retrieving revision 1.133 |
22 |
diff -u -r1.132 -r1.133 |
23 |
--- ChangeLog 19 Apr 2014 18:40:15 -0000 1.132 |
24 |
+++ ChangeLog 28 Apr 2014 19:44:09 -0000 1.133 |
25 |
@@ -1,6 +1,12 @@ |
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.132 2014/04/19 18:40:15 swift Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.133 2014/04/28 19:44:09 swift Exp $ |
30 |
+ |
31 |
+*policycoreutils-2.3_rc1 (28 Apr 2014) |
32 |
+ |
33 |
+ 28 Apr 2014; Sven Vermeulen <swift@g.o> |
34 |
+ +policycoreutils-2.3_rc1.ebuild: |
35 |
+ 2.3-rc1 release |
36 |
|
37 |
*policycoreutils-2.2.5-r3 (19 Apr 2014) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-apps/policycoreutils/policycoreutils-2.3_rc1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.3_rc1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.3_rc1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: policycoreutils-2.3_rc1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 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.3_rc1.ebuild,v 1.1 2014/04/28 19:44:09 swift 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.31" |
62 |
SEMNG_VER="2.3_rc1" |
63 |
SELNX_VER="2.3_rc1" |
64 |
SEPOL_VER="2.3_rc1" |
65 |
|
66 |
IUSE="audit pam dbus sesandbox" |
67 |
|
68 |
DESCRIPTION="SELinux core utilities" |
69 |
HOMEPAGE="http://userspace.selinuxproject.org" |
70 |
SRC_URI="http://userspace.selinuxproject.org/releases/2.3-rc1/${MY_P}.tar.gz |
71 |
http://dev.gentoo.org/~swift/patches/policycoreutils/patchbundle-${P}.tar.gz |
72 |
mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2" |
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-libs/libcap-1.10-r10 |
81 |
>=sys-libs/libsemanage-${SEMNG_VER}[python] |
82 |
sys-libs/libcap-ng |
83 |
>=sys-libs/libsepol-${SEPOL_VER} |
84 |
sys-devel/gettext |
85 |
dev-python/ipy |
86 |
sesandbox? ( dev-libs/libcgroup ) |
87 |
dbus? ( |
88 |
sys-apps/dbus |
89 |
dev-libs/dbus-glib |
90 |
) |
91 |
audit? ( >=sys-process/audit-1.5.1 ) |
92 |
pam? ( sys-libs/pam ) |
93 |
${PYTHON_DEPS}" |
94 |
|
95 |
### libcgroup -> seunshare |
96 |
### dbus -> restorecond |
97 |
|
98 |
# pax-utils for scanelf used by rlpkg |
99 |
RDEPEND="${COMMON_DEPS} |
100 |
dev-python/sepolgen |
101 |
app-misc/pax-utils" |
102 |
|
103 |
DEPEND="${COMMON_DEPS}" |
104 |
|
105 |
S="${WORKDIR}/${MY_P}" |
106 |
S1="${WORKDIR}/${MY_P}" |
107 |
S2="${WORKDIR}/policycoreutils-extra" |
108 |
|
109 |
src_prepare() { |
110 |
# rlpkg is more useful than fixfiles |
111 |
sed -i -e '/^all/s/fixfiles//' "${S}/scripts/Makefile" \ |
112 |
|| die "fixfiles sed 1 failed" |
113 |
sed -i -e '/fixfiles/d' "${S}/scripts/Makefile" \ |
114 |
|| die "fixfiles sed 2 failed" |
115 |
|
116 |
EPATCH_MULTI_MSG="Applying policycoreutils patches ... " \ |
117 |
EPATCH_SUFFIX="patch" \ |
118 |
EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
119 |
EPATCH_FORCE="yes" \ |
120 |
epatch |
121 |
|
122 |
epatch_user |
123 |
|
124 |
python_copy_sources |
125 |
# Our extra code is outside the regular directory, so set it to the extra |
126 |
# directory. We really should optimize this as it is ugly, but the extra |
127 |
# code is needed for Gentoo at the same time that policycoreutils is present |
128 |
# (so we cannot use an additional package for now). |
129 |
S="${S2}" |
130 |
python_copy_sources |
131 |
} |
132 |
|
133 |
src_compile() { |
134 |
local use_audit="n"; |
135 |
local use_pam="n"; |
136 |
local use_dbus="n"; |
137 |
local use_sesandbox="n"; |
138 |
|
139 |
use audit && use_audit="y"; |
140 |
use pam && use_pam="y"; |
141 |
use dbus && use_dbus="y"; |
142 |
use sesandbox && use_sesandbox="y"; |
143 |
|
144 |
building() { |
145 |
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 |
146 |
} |
147 |
S="${S1}" # Regular policycoreutils |
148 |
python_foreach_impl building |
149 |
S="${S2}" # Extra set |
150 |
python_foreach_impl building |
151 |
} |
152 |
|
153 |
src_install() { |
154 |
local use_audit="n"; |
155 |
local use_pam="n"; |
156 |
local use_dbus="n"; |
157 |
local use_sesandbox="n"; |
158 |
|
159 |
use audit && use_audit="y"; |
160 |
use pam && use_pam="y"; |
161 |
use dbus && use_dbus="y"; |
162 |
use sesandbox && use_sesandbox="y"; |
163 |
|
164 |
# Python scripts are present in many places. There are no extension modules. |
165 |
installation-policycoreutils() { |
166 |
einfo "Installing policycoreutils" |
167 |
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 |
168 |
} |
169 |
|
170 |
installation-extras() { |
171 |
einfo "Installing policycoreutils-extra" |
172 |
emake -C "${BUILD_DIR}" DESTDIR="${D}" INOTIFYH="${use_dbus}" SHLIBDIR="${D}$(get_libdir)/rc" install || return 1 |
173 |
} |
174 |
|
175 |
S="${S1}" # policycoreutils |
176 |
python_foreach_impl installation-policycoreutils |
177 |
S="${S2}" # extras |
178 |
python_foreach_impl installation-extras |
179 |
S="${S1}" # back for later |
180 |
|
181 |
# remove redhat-style init script |
182 |
rm -fR "${D}/etc/rc.d" |
183 |
|
184 |
# compatibility symlinks |
185 |
dosym /sbin/setfiles /usr/sbin/setfiles |
186 |
dosym /$(get_libdir)/rc/runscript_selinux.so /$(get_libdir)/rcscripts/runscript_selinux.so |
187 |
|
188 |
# location for permissive definitions |
189 |
dodir /var/lib/selinux |
190 |
keepdir /var/lib/selinux |
191 |
|
192 |
# Set version-specific scripts |
193 |
for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do |
194 |
python_replicate_script "${ED}/usr/bin/${pyscript}" |
195 |
done |
196 |
for pyscript in semanage rlpkg; do |
197 |
python_replicate_script "${ED}/usr/sbin/${pyscript}" |
198 |
done |
199 |
|
200 |
dodir /usr/share/doc/${PF}/mcstrans/examples |
201 |
cp -dR "${S1}"/mcstrans/share/examples/* "${D}/usr/share/doc/${PF}/mcstrans/examples" |
202 |
} |