1 |
swift 14/10/29 17:30:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libselinux-2.4_rc5.ebuild |
5 |
Removed: libselinux-2.4_rc4.ebuild |
6 |
Log: |
7 |
Bump to 2.4_rc5 |
8 |
|
9 |
(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47) |
10 |
|
11 |
Revision Changes Path |
12 |
1.133 sys-libs/libselinux/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.133&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.133&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.132&r2=1.133 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v |
21 |
retrieving revision 1.132 |
22 |
retrieving revision 1.133 |
23 |
diff -u -r1.132 -r1.133 |
24 |
--- ChangeLog 7 Oct 2014 19:00:22 -0000 1.132 |
25 |
+++ ChangeLog 29 Oct 2014 17:30:23 -0000 1.133 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sys-libs/libselinux |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.132 2014/10/07 19:00:22 swift Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.133 2014/10/29 17:30:23 swift Exp $ |
31 |
+ |
32 |
+*libselinux-2.4_rc5 (29 Oct 2014) |
33 |
+ |
34 |
+ 29 Oct 2014; Sven Vermeulen <swift@g.o> +libselinux-2.4_rc5.ebuild, |
35 |
+ -libselinux-2.4_rc4.ebuild: |
36 |
+ Bump to 2.4_rc5 |
37 |
|
38 |
*libselinux-2.4_rc4 (07 Oct 2014) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sys-libs/libselinux/libselinux-2.4_rc5.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.4_rc5.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.4_rc5.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: libselinux-2.4_rc5.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/libselinux-2.4_rc5.ebuild,v 1.1 2014/10/29 17:30:23 swift Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
PYTHON_COMPAT=( python2_7 python3_2 python3_3 ) |
56 |
USE_RUBY="ruby19 ruby20" |
57 |
|
58 |
PATCHBUNDLE="5" |
59 |
|
60 |
# No, I am not calling ruby-ng |
61 |
inherit multilib python-r1 toolchain-funcs eutils multilib-minimal |
62 |
|
63 |
MY_P="${P//_/-}" |
64 |
|
65 |
SEPOL_VER="2.4_rc4" |
66 |
|
67 |
DESCRIPTION="SELinux userland library" |
68 |
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
69 |
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140826/${MY_P}.tar.gz" |
70 |
|
71 |
LICENSE="public-domain" |
72 |
SLOT="0" |
73 |
KEYWORDS="~amd64 ~x86" |
74 |
|
75 |
IUSE="python ruby static-libs ruby_targets_ruby19 ruby_targets_ruby20" |
76 |
|
77 |
RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}] |
78 |
>=dev-libs/libpcre-8.33-r1[static-libs?,${MULTILIB_USEDEP}] |
79 |
python? ( ${PYTHON_DEPS} ) |
80 |
ruby? ( |
81 |
ruby_targets_ruby19? ( dev-lang/ruby:1.9 ) |
82 |
ruby_targets_ruby20? ( dev-lang/ruby:2.0 ) |
83 |
)" |
84 |
DEPEND="${RDEPEND} |
85 |
virtual/pkgconfig |
86 |
python? ( >=dev-lang/swig-2.0.9 )" |
87 |
|
88 |
S="${WORKDIR}/${MY_P}" |
89 |
|
90 |
src_prepare() { |
91 |
epatch "${FILESDIR}/0005-use-ruby-include-with-rubylibver.patch" |
92 |
epatch "${FILESDIR}/0006-build-related-fixes-bug-500674.patch" |
93 |
|
94 |
epatch_user |
95 |
|
96 |
multilib_copy_sources |
97 |
} |
98 |
|
99 |
multilib_src_compile() { |
100 |
tc-export PKG_CONFIG RANLIB |
101 |
local PCRE_CFLAGS=$(${PKG_CONFIG} libpcre --cflags) |
102 |
local PCRE_LIBS=$(${PKG_CONFIG} libpcre --libs) |
103 |
export PCRE_{CFLAGS,LIBS} |
104 |
|
105 |
emake \ |
106 |
AR="$(tc-getAR)" \ |
107 |
CC="$(tc-getCC)" \ |
108 |
LIBDIR="\$(PREFIX)/$(get_libdir)" \ |
109 |
SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
110 |
LDFLAGS="-fPIC ${LDFLAGS} -pthread" \ |
111 |
all |
112 |
|
113 |
if multilib_is_native_abi && use python; then |
114 |
building() { |
115 |
python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH |
116 |
emake \ |
117 |
CC="$(tc-getCC)" \ |
118 |
PYINC="-I${PYTHON_INCLUDEDIR}" \ |
119 |
PYTHONLIBDIR="${PYTHON_LIBPATH}" \ |
120 |
PYPREFIX="${EPYTHON##*/}" \ |
121 |
LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
122 |
pywrap |
123 |
} |
124 |
python_foreach_impl building |
125 |
fi |
126 |
|
127 |
if multilib_is_native_abi && use ruby; then |
128 |
building() { |
129 |
einfo "Calling rubywrap for ${1}" |
130 |
# Clean up .lo file to force rebuild |
131 |
test -f src/selinuxswig_ruby_wrap.lo && rm src/selinuxswig_ruby_wrap.lo |
132 |
emake \ |
133 |
CC="$(tc-getCC)" \ |
134 |
RUBY=${1} \ |
135 |
RUBYINSTALL=$(${1} -e 'print RbConfig::CONFIG["vendorarchdir"]') \ |
136 |
LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \ |
137 |
rubywrap |
138 |
} |
139 |
for RUBYTARGET in ${USE_RUBY}; do |
140 |
use ruby_targets_${RUBYTARGET} || continue |
141 |
|
142 |
building ${RUBYTARGET} |
143 |
done |
144 |
fi |
145 |
} |
146 |
|
147 |
multilib_src_install() { |
148 |
LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \ |
149 |
emake DESTDIR="${D}" install |
150 |
|
151 |
if multilib_is_native_abi && use python; then |
152 |
installation() { |
153 |
LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" install-pywrap |
154 |
} |
155 |
python_foreach_impl installation |
156 |
fi |
157 |
|
158 |
if multilib_is_native_abi && use ruby; then |
159 |
installation() { |
160 |
einfo "Calling install-rubywrap for ${1}" |
161 |
# Forcing (re)build here as otherwise the resulting SO file is used for all ruby versions |
162 |
rm src/selinuxswig_ruby_wrap.lo |
163 |
LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" \ |
164 |
RUBY=${1} \ |
165 |
RUBYINSTALL="${D}/$(${1} -e 'print RbConfig::CONFIG["vendorarchdir"]')" \ |
166 |
install-rubywrap |
167 |
} |
168 |
for RUBYTARGET in ${USE_RUBY}; do |
169 |
use ruby_targets_${RUBYTARGET} || continue |
170 |
|
171 |
installation ${RUBYTARGET} |
172 |
done |
173 |
fi |
174 |
|
175 |
use static-libs || rm "${D}"/usr/lib*/*.a |
176 |
} |
177 |
|
178 |
pkg_postinst() { |
179 |
# Fix bug 473502 |
180 |
for POLTYPE in ${POLICY_TYPES}; |
181 |
do |
182 |
mkdir -p /etc/selinux/${POLTYPE}/contexts/files |
183 |
touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local |
184 |
# Fix bug 516608 |
185 |
for EXPRFILE in file_contexts file_contexts.homedirs file_contexts.local ; do |
186 |
sefcontext_compile /etc/selinux/${POLTYPE}/contexts/files/${EXPRFILE}; |
187 |
done |
188 |
done |
189 |
} |