1 |
swift 14/11/27 14:14:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: libsemanage-2.4_rc6-r2.ebuild |
5 |
Log: |
6 |
Migrate store as soon as possible, but do not reload policy (bug 530864) |
7 |
|
8 |
(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key 0x2EDD52403B68AF47) |
9 |
|
10 |
Revision Changes Path |
11 |
1.83 sys-libs/libsemanage/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.83&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?rev=1.83&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/ChangeLog?r1=1.82&r2=1.83 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v |
20 |
retrieving revision 1.82 |
21 |
retrieving revision 1.83 |
22 |
diff -u -r1.82 -r1.83 |
23 |
--- ChangeLog 22 Nov 2014 13:27:42 -0000 1.82 |
24 |
+++ ChangeLog 27 Nov 2014 14:14:04 -0000 1.83 |
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.82 2014/11/22 13:27:42 perfinion Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsemanage/ChangeLog,v 1.83 2014/11/27 14:14:04 swift Exp $ |
30 |
+ |
31 |
+*libsemanage-2.4_rc6-r2 (27 Nov 2014) |
32 |
+ |
33 |
+ 27 Nov 2014; Sven Vermeulen <swift@g.o> +libsemanage-2.4_rc6-r2.ebuild: |
34 |
+ Migrate store as soon as possible, but do not reload policy (bug 530864) |
35 |
|
36 |
*libsemanage-2.4_rc6-r1 (22 Nov 2014) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 sys-libs/libsemanage/libsemanage-2.4_rc6-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.4_rc6-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/libsemanage/libsemanage-2.4_rc6-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: libsemanage-2.4_rc6-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.4_rc6-r2.ebuild,v 1.1 2014/11/27 14:14:04 swift Exp $ |
51 |
|
52 |
EAPI="5" |
53 |
PYTHON_COMPAT=( python2_7 python3_2 python3_3 python3_4 ) |
54 |
|
55 |
inherit multilib python-r1 toolchain-funcs eutils multilib-minimal |
56 |
|
57 |
MY_P="${P//_/-}" |
58 |
|
59 |
SEPOL_VER="2.4_rc6" |
60 |
SELNX_VER="2.4_rc6" |
61 |
|
62 |
DESCRIPTION="SELinux kernel and policy management library" |
63 |
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
64 |
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20140826/${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 "${FILESDIR}/0002-semanage_migrate_store-Python3-support.patch" # bug 529252 |
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 |
} |
153 |
|
154 |
pkg_postinst() { |
155 |
# Run the store migration without rebuilds |
156 |
for POLICY_TYPE in ${POLICY_TYPES} ; do |
157 |
if [ ! -d "${ROOT}/var/lib/selinux/${POLICY_TYPE}/active" ] ; then |
158 |
einfo "Migrating store ${POLICY_TYPE} (without policy rebuild)." |
159 |
/usr/libexec/selinux/semanage_migrate_store -n -s "${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}" |
160 |
fi |
161 |
done |
162 |
} |