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