Gentoo Archives: gentoo-commits

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