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.82.ebuild
Date: Sat, 05 Feb 2011 11:25:20
Message-Id: 20110205112510.4480620054@flycatcher.gentoo.org
1 blueness 11/02/05 11:25:10
2
3 Modified: ChangeLog
4 Added: policycoreutils-2.0.82.ebuild
5 Log:
6 New upstream release.
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.79 sys-apps/policycoreutils/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.79&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?rev=1.79&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/ChangeLog?r1=1.78&r2=1.79
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v
20 retrieving revision 1.78
21 retrieving revision 1.79
22 diff -u -r1.78 -r1.79
23 --- ChangeLog 5 Feb 2011 11:23:24 -0000 1.78
24 +++ ChangeLog 5 Feb 2011 11:25:10 -0000 1.79
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.78 2011/02/05 11:23:24 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.79 2011/02/05 11:25:10 blueness Exp $
30 +
31 +*policycoreutils-2.0.82 (05 Feb 2011)
32 +
33 + 05 Feb 2011; Anthony G. Basile <blueness@g.o>
34 + +policycoreutils-2.0.82.ebuild:
35 + New upstream release.
36
37 *policycoreutils-2.0.69-r2 (05 Feb 2011)
38
39
40
41
42 1.1 sys-apps/policycoreutils/policycoreutils-2.0.82.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.82.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/policycoreutils/policycoreutils-2.0.82.ebuild?rev=1.1&content-type=text/plain
46
47 Index: policycoreutils-2.0.82.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.ebuild,v 1.1 2011/02/05 11:25:10 blueness Exp $
52
53 IUSE="nls"
54
55 inherit eutils python
56
57 EXTRAS_VER="1.20"
58 SEMNG_VER="2.0.45"
59 SELNX_VER="2.0.94"
60 SEPOL_VER="2.0.41"
61
62 #BUGFIX_PATCH="${FILESDIR}/policycoreutils-2.0.62-po.diff"
63
64 DESCRIPTION="SELinux core utilities"
65 HOMEPAGE="http://userspace.selinuxproject.org"
66 SRC_URI="http://userspace.selinuxproject.org/releases/20100525/devel/${P}.tar.gz
67 mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71
72 COMMON_DEPS=">=sys-libs/libselinux-${SELNX_VER}
73 >=sys-libs/glibc-2.4
74 >=sys-process/audit-1.5.1
75 >=sys-libs/libcap-1.10-r10
76 sys-libs/pam
77 >=sys-libs/libsemanage-${SEMNG_VER}
78 sys-libs/libcap-ng
79 >=sys-libs/libsepol-${SEPOL_VER}"
80
81 # pax-utils for scanelf used by rlpkg
82 RDEPEND="${COMMON_DEPS}
83 dev-python/sepolgen
84 app-misc/pax-utils"
85
86 DEPEND="${COMMON_DEPS}
87 nls? ( sys-devel/gettext )"
88
89 S2=${WORKDIR}/policycoreutils-extra
90
91 src_unpack() {
92 unpack ${A}
93 cd "${S}"
94
95 # rlpkg is more useful than fixfiles
96 sed -i -e '/^all/s/fixfiles//' "${S}/scripts/Makefile" \
97 || die "fixfiles sed 1 failed"
98 sed -i -e '/fixfiles/d' "${S}/scripts/Makefile" \
99 || die "fixfiles sed 2 failed"
100 # removing sandbox for the time being, need to
101 # rename in future to sesandbox?
102 sed -i -e 's/sandbox //' "${S}/Makefile" \
103 || die "failed removing sandbox"
104 }
105
106 src_compile() {
107 einfo "Compiling policycoreutils"
108 emake -C "${S}" PYLIBVER="python$(python_get_version)" AUDIT_LOG_PRIV=y || die
109 einfo "Compiling policycoreutils-extra"
110 emake -C "${S2}" || die
111 }
112
113 src_install() {
114 python_need_rebuild
115
116 einfo "Installing policycoreutils"
117 make DESTDIR="${D}" -C "${S}" PYLIBVER="python$(python_get_version)" AUDIT_LOG_PRIV=y install || die
118 einfo "Installing policycoreutils-extra"
119 make DESTDIR="${D}" -C "${S2}" install || die
120
121 # remove redhat-style init script
122 rm -fR "${D}/etc/rc.d"
123
124 # compatibility symlinks
125 dosym /sbin/setfiles /usr/sbin/setfiles
126 dosym /lib/rc/runscript_selinux.so /lib/rcscripts/runscript_selinux.so
127
128 if has_version '<sys-libs/pam-0.99'; then
129 # install compat pam.d entries
130 # for older pam
131 make DESTDIR="${D}" -C "${S2}/pam.d" install || die
132 fi
133 }
134
135 pkg_postinst() {
136 python_mod_optimize $(python_get_sitedir)
137 }
138
139 pkg_postrm() {
140 python_mod_cleanup $(python_get_sitedir)
141 }