1 |
swift 13/11/04 21:51:46 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libselinux-2.2-r1.ebuild |
5 |
Log: |
6 |
New libselinux release |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47) |
9 |
|
10 |
Revision Changes Path |
11 |
1.105 sys-libs/libselinux/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.105&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.105&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.104&r2=1.105 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v |
20 |
retrieving revision 1.104 |
21 |
retrieving revision 1.105 |
22 |
diff -u -r1.104 -r1.105 |
23 |
--- ChangeLog 27 Oct 2013 18:18:51 -0000 1.104 |
24 |
+++ ChangeLog 4 Nov 2013 21:51:46 -0000 1.105 |
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.104 2013/10/27 18:18:51 swift Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.105 2013/11/04 21:51:46 swift Exp $ |
30 |
+ |
31 |
+*libselinux-2.2-r1 (04 Nov 2013) |
32 |
+ |
33 |
+ 04 Nov 2013; Sven Vermeulen <swift@g.o> +libselinux-2.2-r1.ebuild: |
34 |
+ New libselinux release |
35 |
|
36 |
27 Oct 2013; Sven Vermeulen <swift@g.o> libselinux-2.1.13-r4.ebuild: |
37 |
Fix bug 488102 - Only call ruby-ng pkg_setup if USE=ruby is set |
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-libs/libselinux/libselinux-2.2-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.2-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.2-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: libselinux-2.2-r1.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.2-r1.ebuild,v 1.1 2013/11/04 21:51:46 swift Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
PYTHON_COMPAT=( python2_7 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.2" |
60 |
|
61 |
DESCRIPTION="SELinux userland library" |
62 |
HOMEPAGE="http://userspace.selinuxproject.org" |
63 |
SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${P}.tar.gz |
64 |
http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${P}-r1.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 |
pkg_setup() { |
83 |
# prevent ruby-ng to mess if ruby is not asked for |
84 |
if use ruby; then |
85 |
ruby-ng_pkg_setup |
86 |
fi |
87 |
} |
88 |
|
89 |
src_unpack() { |
90 |
default |
91 |
} |
92 |
|
93 |
src_prepare() { |
94 |
# fix up paths for multilib |
95 |
sed -i \ |
96 |
-e "/^LIBDIR/s/lib/$(get_libdir)/" \ |
97 |
-e "/^SHLIBDIR/s/lib/$(get_libdir)/" \ |
98 |
src/Makefile utils/Makefile || die |
99 |
|
100 |
EPATCH_MULTI_MSG="Applying libselinux patches ... " \ |
101 |
EPATCH_SUFFIX="patch" \ |
102 |
EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \ |
103 |
EPATCH_FORCE="yes" \ |
104 |
epatch |
105 |
|
106 |
epatch_user |
107 |
|
108 |
if use python; then |
109 |
BUILD_DIR="${S}/src" |
110 |
python_copy_sources |
111 |
fi |
112 |
} |
113 |
|
114 |
each_ruby_compile() { |
115 |
local RUBYLIBVER=$(${RUBY} -e 'print RUBY_VERSION.split(".")[0..1].join(".")') |
116 |
cd "${WORKDIR}/${P}" |
117 |
cp -r src src-ruby-${RUBYLIBVER} |
118 |
cd src-ruby-${RUBYLIBVER} |
119 |
|
120 |
if [[ "${RUBYLIBVER}" == "1.8" ]]; then |
121 |
emake CC="$(tc-getCC)" RUBY="${RUBY}" RUBYINC="-I$(ruby_get_hdrdir)" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) -lpthread ${LDFLAGS}" rubywrap || die |
122 |
else |
123 |
emake CC="$(tc-getCC)" RUBY="${RUBY}" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" rubywrap || die |
124 |
fi |
125 |
} |
126 |
|
127 |
src_compile() { |
128 |
tc-export RANLIB |
129 |
emake \ |
130 |
AR="$(tc-getAR)" \ |
131 |
CC="$(tc-getCC)" \ |
132 |
LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" all || die |
133 |
|
134 |
if use python; then |
135 |
building() { |
136 |
python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH |
137 |
emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLIBDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" LDFLAGS="-fPIC $($(tc-getPKG_CONFIG) libpcre --libs) ${LDFLAGS} -lpthread" pywrap |
138 |
} |
139 |
python_foreach_impl building |
140 |
fi |
141 |
|
142 |
if use ruby; then |
143 |
ruby-ng_src_compile |
144 |
fi |
145 |
} |
146 |
|
147 |
each_ruby_install() { |
148 |
local RUBYLIBVER=$(${RUBY} -e 'print RUBY_VERSION.split(".")[0..1].join(".")') |
149 |
|
150 |
cd "${WORKDIR}/${P}/src-ruby-${RUBYLIBVER}" |
151 |
emake RUBY="${RUBY}" DESTDIR="${D}" install-rubywrap || die |
152 |
} |
153 |
|
154 |
src_install() { |
155 |
emake DESTDIR="${D}" install || die |
156 |
|
157 |
if use python; then |
158 |
installation() { |
159 |
emake DESTDIR="${D}" install-pywrap |
160 |
} |
161 |
python_foreach_impl installation |
162 |
fi |
163 |
|
164 |
if use ruby; then |
165 |
ruby-ng_src_install |
166 |
fi |
167 |
|
168 |
use static-libs || rm "${D}"/usr/lib*/*.a |
169 |
} |
170 |
|
171 |
pkg_postinst() { |
172 |
# Fix bug 473502 |
173 |
for POLTYPE in ${POLICY_TYPES}; |
174 |
do |
175 |
mkdir -p /etc/selinux/${POLTYPE}/contexts/files |
176 |
touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local |
177 |
done |
178 |
} |