sys-apps/policycoreutils: update live ebuild
authorJason Zaman <perfinion@gentoo.org>
Thu, 23 Feb 2017 09:16:15 +0000 (17:16 +0800)
committerJason Zaman <perfinion@gentoo.org>
Thu, 23 Feb 2017 11:14:36 +0000 (19:14 +0800)
dont dep on sepolgen, its part of selinux-python now
python libs and include dir are now properly detected so dont need to pass in
several python scripts have also moved to selinux-python

Package-Manager: portage-2.3.3

sys-apps/policycoreutils/policycoreutils-9999.ebuild

index f3d243985dff0ead3e090c50eee570d004bda662..7ea78aa6e4bff6233f3e11c94aa9e4df062e33f2 100644 (file)
@@ -64,7 +64,6 @@ DEPEND=">=sys-libs/libselinux-${SELNX_VER}:=[python]
 
 # pax-utils for scanelf used by rlpkg
 RDEPEND="${DEPEND}
-       dev-python/sepolgen
        app-misc/pax-utils
        !<sys-apps/openrc-0.14"
 
@@ -139,7 +138,6 @@ src_install() {
                        INOTIFYH="$(usex dbus)" \
                        SESANDBOX="n" \
                        AUDIT_LOG_PRIV="y" \
-                       PYLIBVER="${EPYTHON}" \
                        LIBDIR="\$(PREFIX)/$(get_libdir)" \
                        install
                python_optimize
@@ -147,7 +145,11 @@ src_install() {
 
        installation-extras() {
                einfo "Installing policycoreutils-extra"
-               emake -C "${BUILD_DIR}" DESTDIR="${D}" INOTIFYH="$(usex dbus)" SHLIBDIR="${D}$(get_libdir)/rc" install
+               emake -C "${BUILD_DIR}" \
+                       DESTDIR="${D}" \
+                       INOTIFYH="$(usex dbus)" \
+                       SHLIBDIR="${D}$(get_libdir)/rc" \
+                       install
                python_optimize
        }
 
@@ -169,15 +171,9 @@ src_install() {
        keepdir /var/lib/selinux
 
        # Set version-specific scripts
-       for pyscript in audit2allow sepolgen-ifgen sepolicy chcat; do
-         python_replicate_script "${ED}/usr/bin/${pyscript}"
-       done
-       for pyscript in semanage rlpkg; do
+       for pyscript in rlpkg; do
          python_replicate_script "${ED}/usr/sbin/${pyscript}"
        done
-
-       dodir /usr/share/doc/${PF}/mcstrans/examples
-       cp -dR "${S1}"/mcstrans/share/examples/* "${D}/usr/share/doc/${PF}/mcstrans/examples" || die
 }
 
 pkg_postinst() {