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-r3.ebuild ChangeLog
Date: Sat, 23 Aug 2014 11:35:29
Message-Id: 20140823113524.7CDB03C1C@oystercatcher.gentoo.org
1 swift 14/08/23 11:35:24
2
3 Modified: ChangeLog
4 Added: libsemanage-2.3-r3.ebuild
5 Log:
6 Fix bug #520608 - Install .so in correct multilib location
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.75 sys-libs/libsemanage/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.75&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.75&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.74&r2=1.75
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
20 retrieving revision 1.74
21 retrieving revision 1.75
22 diff -u -r1.74 -r1.75
23 --- ChangeLog 5 Aug 2014 09:49:13 -0000 1.74
24 +++ ChangeLog 23 Aug 2014 11:35:24 -0000 1.75
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.74 2014/08/05 09:49:13 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.75 2014/08/23 11:35:24 swift Exp $
30 +
31 +*libsemanage-2.3-r3 (23 Aug 2014)
32 +
33 + 23 Aug 2014; Sven Vermeulen <swift@g.o> +libsemanage-2.3-r3.ebuild:
34 + Fix bug #520608 - Install .so in correct multilib location
35
36 05 Aug 2014; Sven Vermeulen <swift@g.o> -libsemanage-2.2.ebuild,
37 -libsemanage-2.3-r1.ebuild, -libsemanage-2.3.ebuild:
38
39
40
41 1.1 sys-libs/libsemanage/libsemanage-2.3-r3.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.3-r3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.3-r3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: libsemanage-2.3-r3.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-r3.ebuild,v 1.1 2014/08/23 11:35:24 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-2.2.2[${MULTILIB_USEDEP}]
74 >=dev-libs/ustr-1.0.4-r2[${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="${ED}" install
142
143 if multilib_is_native_abi && use python; then
144 installation_py() {
145 emake DESTDIR="${ED}" LIBDIR="${ED}/usr/$(get_libdir)" \
146 SHLIBDIR="${ED}/usr/$(get_libdir)" install-pywrap
147 }
148 python_foreach_impl installation_py
149 fi
150 }