1 |
commit: ec1f300f10259792f46ad6e9084541d38e26323f |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 25 12:19:05 2018 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 26 11:21:47 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec1f300f |
7 |
|
8 |
sys-libs/libsemanage: update live ebuild |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
sys-libs/libsemanage/libsemanage-9999.ebuild | 16 +++++++--------- |
13 |
1 file changed, 7 insertions(+), 9 deletions(-) |
14 |
|
15 |
diff --git a/sys-libs/libsemanage/libsemanage-9999.ebuild b/sys-libs/libsemanage/libsemanage-9999.ebuild |
16 |
index 90f98fe5933..c2a6ce67e3e 100644 |
17 |
--- a/sys-libs/libsemanage/libsemanage-9999.ebuild |
18 |
+++ b/sys-libs/libsemanage/libsemanage-9999.ebuild |
19 |
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
20 |
inherit multilib python-r1 toolchain-funcs multilib-minimal |
21 |
|
22 |
MY_P="${P//_/-}" |
23 |
-MY_RELEASEDATE="20170804" |
24 |
+MY_RELEASEDATE="20180419" |
25 |
|
26 |
SEPOL_VER="${PV}" |
27 |
SELNX_VER="${PV}" |
28 |
@@ -48,6 +48,9 @@ DEPEND="${RDEPEND} |
29 |
RESTRICT="test" |
30 |
|
31 |
src_prepare() { |
32 |
+ eapply_user |
33 |
+ |
34 |
+ echo >> "${S}/src/semanage.conf" |
35 |
echo "# Set this to true to save the linked policy." >> "${S}/src/semanage.conf" |
36 |
echo "# This is normally only useful for analysis" >> "${S}/src/semanage.conf" |
37 |
echo "# or debugging of policy." >> "${S}/src/semanage.conf" |
38 |
@@ -71,8 +74,6 @@ src_prepare() { |
39 |
echo "# decompression of modules in the module store." >> "${S}/src/semanage.conf" |
40 |
echo "bzip-small=true" >> "${S}/src/semanage.conf" |
41 |
|
42 |
- eapply_user |
43 |
- |
44 |
multilib_copy_sources |
45 |
} |
46 |
|
47 |
@@ -98,16 +99,13 @@ multilib_src_compile() { |
48 |
|
49 |
multilib_src_install() { |
50 |
emake \ |
51 |
- LIBDIR="${ED}/usr/$(get_libdir)" \ |
52 |
- SHLIBDIR="${ED}/usr/$(get_libdir)" \ |
53 |
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
54 |
DESTDIR="${ED}" install |
55 |
|
56 |
if multilib_is_native_abi && use python; then |
57 |
installation_py() { |
58 |
emake DESTDIR="${ED}" \ |
59 |
- LIBDIR="${ED}/usr/$(get_libdir)" \ |
60 |
- SHLIBDIR="${ED}/usr/$(get_libdir)" \ |
61 |
- LIBSEPOLA="${EPREFIX%/}/usr/$(get_libdir)/libsepol.a" \ |
62 |
+ LIBDIR="${EPREFIX}/usr/$(get_libdir)" \ |
63 |
install-pywrap |
64 |
python_optimize # bug 531638 |
65 |
} |
66 |
@@ -131,7 +129,7 @@ pkg_postinst() { |
67 |
for POLICY_TYPE in ${POLICY_TYPES} ; do |
68 |
if [ ! -d "${EROOT}/var/lib/selinux/${POLICY_TYPE}/active" ] ; then |
69 |
einfo "Migrating store ${POLICY_TYPE} (without policy rebuild)." |
70 |
- /usr/libexec/selinux/semanage_migrate_store -n -s "${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}" |
71 |
+ "${EROOT}/usr/libexec/selinux/semanage_migrate_store" -n -s "${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}" |
72 |
fi |
73 |
done |
74 |
} |