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: ChangeLog libsemanage-2.2-r1.ebuild
Date: Sun, 02 Feb 2014 17:06:02
Message-Id: 20140202170558.6CE5E2004C@flycatcher.gentoo.org
1 swift 14/02/02 17:05:58
2
3 Modified: ChangeLog
4 Added: libsemanage-2.2-r1.ebuild
5 Log:
6 Move to multilib
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47)
9
10 Revision Changes Path
11 1.64 sys-libs/libsemanage/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.64&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.64&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.63&r2=1.64
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v
20 retrieving revision 1.63
21 retrieving revision 1.64
22 diff -u -r1.63 -r1.64
23 --- ChangeLog 2 Feb 2014 09:18:25 -0000 1.63
24 +++ ChangeLog 2 Feb 2014 17:05:58 -0000 1.64
25 @@ -1,6 +1,15 @@
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.63 2014/02/02 09:18:25 swift Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.64 2014/02/02 17:05:58 swift Exp $
30 +
31 + 02 Feb 2014; Sven Vermeulen <swift@g.o> +libsemanage-2.2-r1.ebuild:
32 + Support multilib
33 +
34 +*libsemanage-2.2-r1 (02 Feb 2014)
35 +
36 + 02 Feb 2014; Sven Vermeulen <swift@g.o> +libsemanage-2.2-r1.ebuild:
37 + Removing ruby support for libsemanage for now (libselinux has it removed as
38 + we)
39
40 01 Feb 2014; Sven Vermeulen <swift@g.o> libsemanage-2.2.ebuild:
41 Adding python3_3 to supported Pythons, see bug #499606
42
43
44
45 1.1 sys-libs/libsemanage/libsemanage-2.2-r1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.2-r1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.2-r1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: libsemanage-2.2-r1.ebuild
51 ===================================================================
52 # Copyright 1999-2014 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/libsemanage-2.2-r1.ebuild,v 1.1 2014/02/02 17:05:58 swift Exp $
55
56 EAPI="5"
57 PYTHON_COMPAT=( python2_7 python3_2 python3_3 )
58
59 inherit multilib python-r1 toolchain-funcs eutils multilib-minimal
60
61 SEPOL_VER="2.2"
62 SELNX_VER="2.2.2-r1"
63
64 DESCRIPTION="SELinux kernel and policy management library"
65 HOMEPAGE="http://userspace.selinuxproject.org"
66 SRC_URI="http://userspace.selinuxproject.org/releases/20131030/${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}
74 >=sys-libs/libselinux-${SELNX_VER}
75 dev-libs/ustr
76 sys-process/audit"
77 DEPEND="${RDEPEND}
78 sys-devel/bison
79 sys-devel/flex
80 python? (
81 >=dev-lang/swig-2.0.4-r1
82 virtual/pkgconfig
83 ${PYTHON_DEPS}
84 )"
85
86 # tests are not meant to be run outside of the
87 # full SELinux userland repo
88 RESTRICT="test"
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 epatch_user
115
116 multilib_copy_sources
117 }
118
119 multilib_src_compile() {
120 emake AR="$(tc-getAR)" CC="$(tc-getCC)" all || die
121
122 if multilib_is_native_abi && use python; then
123 building() {
124 python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
125 emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" PYTHONLBIDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" "$@"
126 }
127 python_foreach_impl building swigify
128 python_foreach_impl building pywrap
129 fi
130 }
131
132 multilib_src_install() {
133 LIBDIR="\$(PREFIX)/$(get_libdir)" SHLIBDIR="\$(DESTDIR)/$(get_libdir)" \
134 emake DESTDIR="${D}" install
135
136 if multilib_is_native_abi && use python; then
137 installation() {
138 emake DESTDIR="${D}" install-pywrap
139 }
140 python_foreach_impl installation
141 fi
142 }