Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/libsemanage: ChangeLog libsemanage-2.1.0.ebuild
Date: Wed, 03 Aug 2011 09:35:39
Message-Id: 20110803093526.3CDC32004C@flycatcher.gentoo.org
1 blueness 11/08/03 09:35:26
2
3 Modified: ChangeLog
4 Added: libsemanage-2.1.0.ebuild
5 Log:
6 Bump to 20110727 SELinux userspace release
7
8 (Portage version: 2.1.10.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.38 sys-libs/libsemanage/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.38&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.38&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.37&r2=1.38
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
20 retrieving revision 1.37
21 retrieving revision 1.38
22 diff -u -r1.37 -r1.38
23 --- ChangeLog 15 Jul 2011 21:00:46 -0000 1.37
24 +++ ChangeLog 3 Aug 2011 09:35:26 -0000 1.38
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sys-libs/libsemanage
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.37 2011/07/15 21:00:46 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.38 2011/08/03 09:35:26 blueness Exp $
30 +
31 +*libsemanage-2.1.0 (03 Aug 2011)
32 +
33 + 03 Aug 2011; Anthony G. Basile <blueness@g.o>
34 + +libsemanage-2.1.0.ebuild:
35 + Bump to 20110727 SELinux userspace release
36
37 *libsemanage-2.0.46 (15 Jul 2011)
38
39
40
41
42 1.1 sys-libs/libsemanage/libsemanage-2.1.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.1.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.1.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: libsemanage-2.1.0.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.1.0.ebuild,v 1.1 2011/08/03 09:35:26 blueness Exp $
52
53 EAPI="3"
54 # Support for 4 depends on python.eclass
55 PYTHON_DEPEND="python? *"
56 SUPPORT_PYTHON_ABIS="1"
57 RESTRICT_PYTHON_ABIS="*-jython"
58
59 inherit multilib python toolchain-funcs
60
61 SEPOL_VER="2.1.0"
62 SELNX_VER="2.1.0"
63
64 DESCRIPTION="SELinux kernel and policy management library"
65 HOMEPAGE="http://userspace.selinuxproject.org"
66 SRC_URI="http://userspace.selinuxproject.org/releases/20110727/devel/${P}.tar.gz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~amd64 ~x86"
71 IUSE="python ruby"
72
73 RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}
74 >=sys-libs/libselinux-${SELNX_VER}
75 dev-libs/ustr
76 ruby? ( dev-lang/ruby )"
77 DEPEND="${RDEPEND}
78 ruby? ( dev-lang/swig )"
79
80 # tests are not meant to be run outside of the
81 # full SELinux userland repo
82 RESTRICT="test"
83
84 pkg_setup() {
85 if use python; then
86 python_pkg_setup
87 fi
88 }
89
90 src_prepare() {
91 echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf"
92 echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf"
93 echo "# or debugging of policy." >> "${S}/src/semanage.conf"
94 echo "save-linked=false" >> "${S}/src/semanage.conf"
95 echo >> "${S}/src/semanage.conf"
96 echo "# Set this to 0 to disable assertion checking." >> "${S}/src/semanage.conf"
97 echo "# This should speed up building the kernel policy" >> "${S}/src/semanage.conf"
98 echo "# from policy modules, but may leave you open to" >> "${S}/src/semanage.conf"
99 echo "# dangerous rules which assertion checking" >> "${S}/src/semanage.conf"
100 echo "# would catch." >> "${S}/src/semanage.conf"
101 echo "expand-check=1" >> "${S}/src/semanage.conf"
102 echo >> "${S}/src/semanage.conf"
103 echo "# Modules in the module store can be compressed" >> "${S}/src/semanage.conf"
104 echo "# with bzip2. Set this to the bzip2 blocksize" >> "${S}/src/semanage.conf"
105 echo "# 1-9 when compressing. The higher the number," >> "${S}/src/semanage.conf"
106 echo "# the more memory is traded off for disk space." >> "${S}/src/semanage.conf"
107 echo "# Set to 0 to disable bzip2 compression." >> "${S}/src/semanage.conf"
108 echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
109 echo >> "${S}/src/semanage.conf"
110 echo "# Reduce memory usage for bzip2 compression and" >> "${S}/src/semanage.conf"
111 echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf"
112 echo "bzip-small=true" >> "${S}/src/semanage.conf"
113 }
114
115 src_compile() {
116 emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
117
118 if use python; then
119 python_copy_sources src
120 building() {
121 emake CC="$(tc-getCC)" PYLIBVER="python$(python_get_version)" "$@"
122 }
123 python_execute_function -s --source-dir src building -- swigify
124 python_execute_function -s --source-dir src building -- pywrap
125 fi
126
127 if use ruby; then
128 emake -C src CC="$(tc-getCC)" rubywrap || die
129 fi
130 }
131
132 src_install() {
133 emake \
134 DESTDIR="${D}" \
135 LIBDIR="${D}usr/$(get_libdir)" \
136 SHLIBDIR="${D}$(get_libdir)" \
137 install || die
138 dosym "../../$(get_libdir)/libsemanage.so.1" "/usr/$(get_libdir)/libsemanage.so" || die
139
140 if use python; then
141 installation() {
142 emake \
143 DESTDIR="${D}" \
144 PYLIBVER="python$(python_get_version)" \
145 LIBDIR="${D}usr/$(get_libdir)" \
146 install-pywrap
147 }
148 python_execute_function -s --source-dir src installation
149 fi
150
151 if use ruby; then
152 emake -C src \
153 DESTDIR="${D}" \
154 LIBDIR="${D}usr/$(get_libdir)" \
155 install-rubywrap || die
156 fi
157 }
158
159 pkg_postinst() {
160 if use python; then
161 python_mod_optimize semanage.py
162 fi
163 }
164
165 pkg_postrm() {
166 if use python; then
167 python_mod_cleanup semanage.py
168 fi
169 }