1 |
swift 13/07/28 11:23:18 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libselinux-2.1.13-r4.ebuild |
5 |
Log: |
6 |
Move to python-r1, fix bug #473502 |
7 |
|
8 |
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key 0xCDBA2FDB) |
9 |
|
10 |
Revision Changes Path |
11 |
1.100 sys-libs/libselinux/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.100&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.100&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.99&r2=1.100 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v |
20 |
retrieving revision 1.99 |
21 |
retrieving revision 1.100 |
22 |
diff -u -r1.99 -r1.100 |
23 |
--- ChangeLog 7 Jul 2013 17:58:21 -0000 1.99 |
24 |
+++ ChangeLog 28 Jul 2013 11:23:18 -0000 1.100 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for sys-libs/libselinux |
27 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.99 2013/07/07 17:58:21 swift Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.100 2013/07/28 11:23:18 swift Exp $ |
30 |
+ |
31 |
+*libselinux-2.1.13-r4 (28 Jul 2013) |
32 |
+ |
33 |
+ 28 Jul 2013; Sven Vermeulen <swift@g.o> +libselinux-2.1.13-r4.ebuild: |
34 |
+ Migrate to python-r1, fix bug #473502 |
35 |
|
36 |
07 Jul 2013; Sven Vermeulen <swift@g.o> -libselinux-2.1.9.ebuild, |
37 |
-libselinux-2.1.9-r1.ebuild, -libselinux-2.1.9-r2.ebuild, |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-libs/libselinux/libselinux-2.1.13-r4.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.1.13-r4.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.1.13-r4.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: libselinux-2.1.13-r4.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2013 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.1.13-r4.ebuild,v 1.1 2013/07/28 11:23:18 swift Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
PYTHON_COMPAT=( python2_7 python3_1 python3_2 ) |
54 |
USE_RUBY="ruby18 ruby19" |
55 |
RUBY_OPTIONAL="yes" |
56 |
|
57 |
inherit multilib python-r1 toolchain-funcs eutils ruby-ng |
58 |
|
59 |
SEPOL_VER="2.1.9" |
60 |
|
61 |
DESCRIPTION="SELinux userland library" |
62 |
HOMEPAGE="http://userspace.selinuxproject.org" |
63 |
SRC_URI="http://userspace.selinuxproject.org/releases/20130423/${P}.tar.gz |
64 |
http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${P}-r3.tar.gz" |
65 |
|
66 |
LICENSE="public-domain" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64 ~x86" |
69 |
IUSE="python ruby static-libs" |
70 |
|
71 |
RDEPEND=">=sys-libs/libsepol-${SEPOL_VER} |
72 |
>=dev-libs/libpcre-8.30-r2[static-libs?] |
73 |
python? ( ${PYTHON_DEPS} ) |
74 |
ruby? ( $(ruby_implementations_depend) )" |
75 |
DEPEND="${RDEPEND} |
76 |
virtual/pkgconfig |
77 |
ruby? ( >=dev-lang/swig-2.0.9 ) |
78 |
python? ( >=dev-lang/swig-2.0.9 )" |
79 |
|
80 |
S="${WORKDIR}/${P}" |
81 |
|
82 |
src_unpack() { |
83 |
default |
84 |
} |
85 |
|
86 |
src_prepare() { |
87 |
# fix up paths for multilib |
88 |
sed -i \ |
89 |
-e "/^LIBDIR/s/lib/$(get_libdir)/" \ |
90 |
-e "/^SHLIBDIR/s/lib/$(get_libdir)/" \ |
91 |
src/Makefile utils/Makefile || die |
92 |
|
93 |
EPATCH_MULTI_MSG="Applying libselinux patches ... " \ |
94 |
EPATCH_SUFFIX="patch" \ |
95 |
EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
96 |
EPATCH_FORCE="yes" \ |
97 |
epatch |
98 |
|
99 |
epatch_user |
100 |
|
101 |
if use python; then |
102 |
BUILD_DIR="${S}/src" |
103 |
python_copy_sources |
104 |
fi |
105 |
} |
106 |
|
107 |
each_ruby_compile() { |
108 |
local RUBYLIBVER=$(${RUBY} -e 'print RUBY_VERSION.split(".")[0..1].join(".")') |
109 |
cd "${WORKDIR}/${P}" |
110 |
cp -r src src-ruby-${RUBYLIBVER} |
111 |
cd src-ruby-${RUBYLIBVER} |
112 |
|
113 |
if [[ "${RUBYLIBVER}" == "1.8" ]]; then |
114 |
emake CC="$(tc-getCC)" RUBY="${RUBY}" RUBYINC="-I$(ruby_get_hdrdir)" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) -lpthread ${LDFLAGS}" rubywrap || die |
115 |
else |
116 |
emake CC="$(tc-getCC)" RUBY="${RUBY}" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" rubywrap || die |
117 |
fi |
118 |
} |
119 |
|
120 |
src_compile() { |
121 |
tc-export RANLIB |
122 |
emake \ |
123 |
AR="$(tc-getAR)" \ |
124 |
CC="$(tc-getCC)" \ |
125 |
LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" all || die |
126 |
|
127 |
if use python; then |
128 |
building() { |
129 |
python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH |
130 |
emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLIBDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" pywrap |
131 |
} |
132 |
python_foreach_impl building |
133 |
fi |
134 |
|
135 |
if use ruby; then |
136 |
ruby-ng_src_compile |
137 |
fi |
138 |
} |
139 |
|
140 |
each_ruby_install() { |
141 |
local RUBYLIBVER=$(${RUBY} -e 'print RUBY_VERSION.split(".")[0..1].join(".")') |
142 |
|
143 |
cd "${WORKDIR}/${P}/src-ruby-${RUBYLIBVER}" |
144 |
emake RUBY="${RUBY}" DESTDIR="${D}" install-rubywrap || die |
145 |
} |
146 |
|
147 |
src_install() { |
148 |
emake DESTDIR="${D}" install || die |
149 |
|
150 |
if use python; then |
151 |
installation() { |
152 |
emake DESTDIR="${D}" install-pywrap |
153 |
} |
154 |
python_foreach_impl installation |
155 |
fi |
156 |
|
157 |
if use ruby; then |
158 |
ruby-ng_src_install |
159 |
fi |
160 |
|
161 |
use static-libs || rm "${D}"/usr/lib*/*.a |
162 |
} |
163 |
|
164 |
pkg_postinst() { |
165 |
# Fix bug 473502 |
166 |
for POLTYPE in ${POLICY_TYPES}; |
167 |
do |
168 |
touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local |
169 |
done |
170 |
} |