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/libsemanage: libsemanage-2.3-r2.ebuild ChangeLog
Date: Mon, 02 Jun 2014 19:24:29
Message-Id: 20140602192425.52F832004E@flycatcher.gentoo.org
1 swift 14/06/02 19:24:25
2
3 Modified: ChangeLog
4 Added: libsemanage-2.3-r2.ebuild
5 Log:
6 Update multilib support in libsemanage with thanks to Arfrever
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.70 sys-libs/libsemanage/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.70&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.70&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.69&r2=1.70
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
20 retrieving revision 1.69
21 retrieving revision 1.70
22 diff -u -r1.69 -r1.70
23 --- ChangeLog 1 Jun 2014 12:21:16 -0000 1.69
24 +++ ChangeLog 2 Jun 2014 19:24:25 -0000 1.70
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/libsemanage
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.69 2014/06/01 12:21:16 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.70 2014/06/02 19:24:25 swift Exp $
30 +
31 +*libsemanage-2.3-r2 (02 Jun 2014)
32 +
33 + 02 Jun 2014; Sven Vermeulen <swift@g.o> +libsemanage-2.3-r2.ebuild:
34 + Update multilib support in libsemanage with thanks to Arfrever
35
36 *libsemanage-2.3-r1 (01 Jun 2014)
37
38
39
40
41 1.1 sys-libs/libsemanage/libsemanage-2.3-r2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.3-r2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.3-r2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libsemanage-2.3-r2.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/libsemanage/libsemanage-2.3-r2.ebuild,v 1.1 2014/06/02 19:24:25 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"
60 SELNX_VER="2.3"
61
62 DESCRIPTION="SELinux kernel and policy management library"
63 HOMEPAGE="http://userspace.selinuxproject.org"
64 SRC_URI="http://userspace.selinuxproject.org/releases/20140506/${MY_P}.tar.gz"
65
66 LICENSE="GPL-2"
67 SLOT="0"
68 KEYWORDS="~amd64 ~x86"
69 IUSE="python"
70
71 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
72 >=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
73 sys-process/audit[${MULTILIB_USEDEP}]
74 dev-libs/ustr[${MULTILIB_USEDEP}]
75 "
76 DEPEND="${RDEPEND}
77 sys-devel/bison
78 sys-devel/flex
79 python? (
80 >=dev-lang/swig-2.0.4-r1
81 virtual/pkgconfig
82 ${PYTHON_DEPS}
83 )"
84
85 # tests are not meant to be run outside of the
86 # full SELinux userland repo
87 RESTRICT="test"
88
89 S="${WORKDIR}/${MY_P}"
90
91 src_prepare() {
92 echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf"
93 echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
94 echo "# or debugging of policy." >> "${S}/src/semanage.conf"
95 echo "save-linked=false" >> "${S}/src/semanage.conf"
96 echo >> "${S}/src/semanage.conf"
97 echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
98 echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
99 echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
100 echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
101 echo "# would catch." >> "${S}/src/semanage.conf"
102 echo "expand-check=1" >> "${S}/src/semanage.conf"
103 echo >> "${S}/src/semanage.conf"
104 echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
105 echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
106 echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf"
107 echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
108 echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
109 echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
110 echo >> "${S}/src/semanage.conf"
111 echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
112 echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
113 echo "bzip-small=true" >> "${S}/src/semanage.conf"
114
115 epatch_user
116
117 multilib_copy_sources
118 }
119
120 multilib_src_compile() {
121 emake \
122 AR="$(tc-getAR)" \
123 CC="$(tc-getCC)" \
124 LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
125 all
126
127 if multilib_is_native_abi && use python; then
128 building_py() {
129 python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
130 emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLBIDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" "$@"
131 }
132 python_foreach_impl building_py swigify
133 python_foreach_impl building_py pywrap
134 fi
135 }
136
137 multilib_src_install() {
138 emake \
139 LIBDIR="${ED}/usr/$(get_libdir)" \
140 SHLIBDIR="${ED}/usr/$(get_libdir)" \
141 DESTDIR="${D}" install
142
143 if multilib_is_native_abi && use python; then
144 installation_py() {
145 emake DESTDIR="${D}" install-pywrap
146 }
147 python_foreach_impl installation_py
148 fi
149 }