Gentoo Archives: gentoo-commits

From: "Sven Vermeulen (swift)" <swift@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libselinux: libselinux-2.3_rc1.ebuild ChangeLog
Date: Mon, 28 Apr 2014 19:39:31
Message-Id: 20140428193902.158A22004B@flycatcher.gentoo.org
1 swift 14/04/28 19:39:02
2
3 Modified: ChangeLog
4 Added: libselinux-2.3_rc1.ebuild
5 Log:
6 2.3-rc1 release
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)
9
10 Revision Changes Path
11 1.117 sys-libs/libselinux/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.117&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?rev=1.117&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/ChangeLog?r1=1.116&r2=1.117
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v
20 retrieving revision 1.116
21 retrieving revision 1.117
22 diff -u -r1.116 -r1.117
23 --- ChangeLog 21 Apr 2014 18:37:25 -0000 1.116
24 +++ ChangeLog 28 Apr 2014 19:39:01 -0000 1.117
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/libselinux
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.116 2014/04/21 18:37:25 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libselinux/ChangeLog,v 1.117 2014/04/28 19:39:01 swift Exp $
30 +
31 +*libselinux-2.3_rc1 (28 Apr 2014)
32 +
33 + 28 Apr 2014; Sven Vermeulen <swift@g.o> +libselinux-2.3_rc1.ebuild:
34 + 2.3-rc1 release
35
36 21 Apr 2014; Sven Vermeulen <swift@g.o> libselinux-2.2.2-r4.ebuild:
37 Stabilize 2.2.2-r4
38
39
40
41 1.1 sys-libs/libselinux/libselinux-2.3_rc1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.3_rc1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libselinux/libselinux-2.3_rc1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libselinux-2.3_rc1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 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.3_rc1.ebuild,v 1.1 2014/04/28 19:39:01 swift Exp $
51
52 EAPI="5"
53 PYTHON_COMPAT=( python2_7 python3_2 python3_3 )
54
55 inherit multilib python-r1 toolchain-funcs eutils multilib-minimal
56
57 MY_P="${P//_/-}"
58
59 SEPOL_VER="2.3_rc1"
60
61 DESCRIPTION="SELinux userland library"
62 HOMEPAGE="http://userspace.selinuxproject.org"
63 SRC_URI="http://userspace.selinuxproject.org/releases/2.3-rc1/${MY_P}.tar.gz
64 http://dev.gentoo.org/~swift/patches/${PN}/patchbundle-${P}.tar.gz"
65
66 LICENSE="public-domain"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="python static-libs"
70
71 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
72 >=dev-libs/libpcre-8.30-r2[static-libs?]
73 python? ( ${PYTHON_DEPS} )"
74 DEPEND="${RDEPEND}
75 virtual/pkgconfig
76 python? ( >=dev-lang/swig-2.0.9 )"
77
78 S="${WORKDIR}/${MY_P}"
79
80 src_prepare() {
81 EPATCH_MULTI_MSG="Applying libselinux patches ... " \
82 EPATCH_SUFFIX="patch" \
83 EPATCH_SOURCE="${WORKDIR}/gentoo-patches" \
84 EPATCH_FORCE="yes" \
85 epatch
86
87 epatch_user
88
89 multilib_copy_sources
90 }
91
92 multilib_src_compile() {
93 tc-export PKG_CONFIG RANLIB
94 local PCRE_CFLAGS=$(${PKG_CONFIG} libpcre --cflags)
95 local PCRE_LIBS=$(${PKG_CONFIG} libpcre --libs)
96 export PCRE_{CFLAGS,LIBS}
97
98 emake \
99 AR="$(tc-getAR)" \
100 CC="$(tc-getCC)" \
101 LIBDIR="\$(PREFIX)/$(get_libdir)" \
102 SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
103 LDFLAGS="-fPIC ${LDFLAGS} -pthread" \
104 all
105
106 if multilib_is_native_abi && use python; then
107 building() {
108 python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
109 emake \
110 CC="$(tc-getCC)" \
111 PYINC="-I${PYTHON_INCLUDEDIR}" \
112 PYTHONLIBDIR="${PYTHON_LIBPATH}" \
113 PYPREFIX="${EPYTHON##*/}" \
114 LDFLAGS="-fPIC ${LDFLAGS} -lpthread" \
115 pywrap
116 }
117 python_foreach_impl building
118 fi
119 }
120
121 multilib_src_install() {
122 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
123 emake DESTDIR="${D}" install
124
125 if multilib_is_native_abi && use python; then
126 installation() {
127 LIBDIR="\$(PREFIX)/$(get_libdir)" emake DESTDIR="${D}" install-pywrap
128 }
129 python_foreach_impl installation
130 fi
131
132 use static-libs || rm "${D}"/usr/lib*/*.a
133 }
134
135 pkg_postinst() {
136 # Fix bug 473502
137 for POLTYPE in ${POLICY_TYPES};
138 do
139 mkdir -p /etc/selinux/${POLTYPE}/contexts/files
140 touch /etc/selinux/${POLTYPE}/contexts/files/file_contexts.local
141 done
142 }