sys-apps/policycoreutils: update live ebuild
authorJason Zaman <perfinion@gentoo.org>
Wed, 25 Apr 2018 12:19:45 +0000 (20:19 +0800)
committerJason Zaman <perfinion@gentoo.org>
Thu, 26 Apr 2018 11:21:52 +0000 (19:21 +0800)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

sys-apps/policycoreutils/policycoreutils-9999.ebuild

index bd07eea3a4b1494a40115483eb069f31737408b7..aebedfb6cd4c9f9e791d9b1788d70d94df5ba524 100644 (file)
@@ -9,7 +9,7 @@ inherit multilib python-r1 toolchain-funcs bash-completion-r1
 
 MY_P="${P//_/-}"
 
-MY_RELEASEDATE="20170804"
+MY_RELEASEDATE="20180419"
 EXTRAS_VER="1.36"
 SEMNG_VER="${PV}"
 SELNX_VER="${PV}"
@@ -21,7 +21,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}"
 DESCRIPTION="SELinux core utilities"
 HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki"
 
-if [[ ${PV} == 9999 ]] ; then
+if [[ ${PV} == 9999 ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git"
        SRC_URI="https://dev.gentoo.org/~perfinion/distfiles/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
@@ -31,7 +31,7 @@ if [[ ${PV} == 9999 ]] ; then
 else
        SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz
                https://dev.gentoo.org/~perfinion/distfiles/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
-       KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
+       KEYWORDS="~amd64 ~arm64 ~mips ~x86"
        S1="${WORKDIR}/${MY_P}"
        S2="${WORKDIR}/policycoreutils-extra"
        S="${S1}"
@@ -114,7 +114,6 @@ src_compile() {
                        INOTIFYH="$(usex dbus y n)" \
                        SESANDBOX="n" \
                        CC="$(tc-getCC)" \
-                       PYLIBVER="${EPYTHON}" \
                        LIBDIR="\$(PREFIX)/$(get_libdir)"
        }
        S="${S1}" # Regular policycoreutils
@@ -128,11 +127,12 @@ src_install() {
        installation-policycoreutils() {
                einfo "Installing policycoreutils"
                emake -C "${BUILD_DIR}" DESTDIR="${D}" \
+                       AUDIT_LOG_PRIVS="y" \
                        AUDITH="$(usex audit y n)" \
                        PAMH="$(usex pam y n)" \
                        INOTIFYH="$(usex dbus y n)" \
                        SESANDBOX="n" \
-                       AUDIT_LOG_PRIV="y" \
+                       CC="$(tc-getCC)" \
                        LIBDIR="\$(PREFIX)/$(get_libdir)" \
                        install
                python_optimize
@@ -142,8 +142,6 @@ src_install() {
                einfo "Installing policycoreutils-extra"
                emake -C "${BUILD_DIR}" \
                        DESTDIR="${D}" \
-                       INOTIFYH="$(usex dbus)" \
-                       SHLIBDIR="${D}$(get_libdir)/rc" \
                        install
                python_optimize
        }