Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-apps/policycoreutils: ChangeLog policycoreutils-2.0.69-r2.ebuild
Date: Sat, 05 Feb 2011 11:23:34
Message-Id: 20110205112324.3718620057@flycatcher.gentoo.org
1 blueness 11/02/05 11:23:24
2
3 Modified: ChangeLog
4 Added: policycoreutils-2.0.69-r2.ebuild
5 Log:
6 Fixed bug #300613
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.78 sys-apps/policycoreutils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.78&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.78&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?r1=1.77&r2=1.78
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v
20 retrieving revision 1.77
21 retrieving revision 1.78
22 diff -u -r1.77 -r1.78
23 --- ChangeLog 4 Apr 2010 21:56:32 -0000 1.77
24 +++ ChangeLog 5 Feb 2011 11:23:24 -0000 1.78
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-apps/policycoreutils
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.77 2010/04/04 21:56:32 arfrever Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.78 2011/02/05 11:23:24 blueness Exp $
31 +
32 +*policycoreutils-2.0.69-r2 (05 Feb 2011)
33 +
34 + 05 Feb 2011; Anthony G. Basile <blueness@g.o>
35 + +policycoreutils-2.0.69-r2.ebuild,
36 + +files/policycoreutils-2.0.69-setfiles.diff:
37 + Fixed bug #300613
38
39 04 Apr 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
40 policycoreutils-2.0.55.ebuild, policycoreutils-2.0.69.ebuild,
41
42
43
44 1.1 sys-apps/policycoreutils/policycoreutils-2.0.69-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.69-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.69-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: policycoreutils-2.0.69-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.69-r2.ebuild,v 1.1 2011/02/05 11:23:24 blueness Exp $
54
55 IUSE="nls"
56
57 inherit eutils python
58
59 EXTRAS_VER="1.20"
60 SEMNG_VER="2.0.33"
61 SELNX_VER="2.0"
62
63 BUGFIX_PATCH="${FILESDIR}/policycoreutils-2.0.69-setfiles.diff"
64
65 DESCRIPTION="SELinux core utilities"
66 HOMEPAGE="http://userspace.selinuxproject.org"
67 SRC_URI="http://userspace.selinuxproject.org/releases/current/devel/${P}.tar.gz
68 mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~amd64 ~x86"
72
73 COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}
74 >=sys-libs/glibc-2.4
75 >=sys-process/audit-1.5.1
76 >=sys-libs/libcap-1.10-r10
77 sys-libs/pam
78 >=sys-libs/libsemanage-${SEMNG_VER}"
79
80 # pax-utils for scanelf used by rlpkg
81 RDEPEND="${COMMON_DEPS}
82 dev-python/sepolgen
83 app-misc/pax-utils"
84
85 DEPEND="${COMMON_DEPS}
86 nls? ( sys-devel/gettext )"
87
88 S2=${WORKDIR}/policycoreutils-extra
89
90 src_unpack() {
91 unpack ${A}
92 cd "${S}"
93
94 [ ! -z "${BUGFIX_PATCH}" ] && epatch "${BUGFIX_PATCH}"
95
96 # rlpkg is more useful than fixfiles
97 sed -i -e '/^all/s/fixfiles//' "${S}/scripts/Makefile" \
98 || die "fixfiles sed 1 failed"
99 sed -i -e '/fixfiles/d' "${S}/scripts/Makefile" \
100 || die "fixfiles sed 2 failed"
101
102 local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
103
104 if ! useq nls; then
105 for i in ${SUBDIRS}; do
106 # disable locale stuff
107 sed -i -e s/-DUSE_NLS// "${S}/${i}/Makefile" \
108 || die "${i} NLS sed failed"
109 done
110 fi
111
112 # Gentoo Fixes
113 for i in ${SUBDIRS}; do
114 # add in CFLAGS
115 sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" "${S}/${i}/Makefile" \
116 || die "${i} Makefile CFLAGS fix failed."
117 done
118 }
119
120 src_compile() {
121 einfo "Compiling policycoreutils"
122 emake -C "${S}" PYLIBVER="python$(python_get_version)" AUDIT_LOG_PRIV=y || die
123 einfo "Compiling policycoreutils-extra"
124 emake -C "${S2}" || die
125 }
126
127 src_install() {
128 python_need_rebuild
129
130 einfo "Installing policycoreutils"
131 make DESTDIR="${D}" -C "${S}" PYLIBVER="python$(python_get_version)" AUDIT_LOG_PRIV=y install || die
132 einfo "Installing policycoreutils-extra"
133 make DESTDIR="${D}" -C "${S2}" install || die
134
135 # remove redhat-style init script
136 rm -fR "${D}/etc/rc.d"
137
138 # compatibility symlinks
139 dosym /sbin/setfiles /usr/sbin/setfiles
140 dosym /lib/rc/runscript_selinux.so /lib/rcscripts/runscript_selinux.so
141
142 if has_version '<sys-libs/pam-0.99'; then
143 # install compat pam.d entries
144 # for older pam
145 make DESTDIR="${D}" -C "${S2}/pam.d" install || die
146 fi
147 }
148
149 pkg_postinst() {
150 python_mod_optimize $(python_get_sitedir)
151 }
152
153 pkg_postrm() {
154 python_mod_cleanup $(python_get_sitedir)
155 }