commit:     c874e48fb5fbc844c2b149c4d80279005b08aa7c
Author:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 22 16:33:55 2017 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Sat Sep 23 02:13:38 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c874e48f

sys-libs/libsemanage: drop old

Package-Manager: Portage-2.3.8, Repoman-2.3.1

 sys-libs/libsemanage/Manifest                   |   4 -
 sys-libs/libsemanage/libsemanage-2.5.ebuild     | 126 ----------------------
 sys-libs/libsemanage/libsemanage-2.7_rc1.ebuild | 137 ------------------------
 sys-libs/libsemanage/libsemanage-2.7_rc4.ebuild | 137 ------------------------
 sys-libs/libsemanage/libsemanage-2.7_rc5.ebuild | 137 ------------------------
 5 files changed, 541 deletions(-)

diff --git a/sys-libs/libsemanage/Manifest b/sys-libs/libsemanage/Manifest
index af54977332c..f276fbcaeaf 100644
--- a/sys-libs/libsemanage/Manifest
+++ b/sys-libs/libsemanage/Manifest
@@ -1,6 +1,2 @@
-DIST libsemanage-2.5.tar.gz 152884 SHA256 
46e2f36254369b6e91d1eea0460c262b139361b055a3a67d3ceea2d8ef72e006 SHA512 
cf644b77d8a24f76c630ece582df1b49a0c5f48f1c9f79b1caee0df10372008954406974472a072360dbe6de5ebc19b1b21bb247084d75b7186f61b32f33b8ec
 WHIRLPOOL 
397b7fd2e9b2c00dbc2f58bdc023501dcd7ecf1212fef9ad7993b4763a041068416ef06552c0abf0beef8c69f4704933feca36951866c43d867181332971f6be
 DIST libsemanage-2.6.tar.gz 155897 SHA256 
4f81541047290b751f2ffb926fcd381c186f22db18d9fe671b0b4a6a54e8cfce SHA512 
38741d6e6f7a2669bfeee362e42d6bfd720cceeaf61331e329b2210fdc070444e529656ce86dd82e94aa248eafcfaea4c5d013d9cce76c1039be6fc6a6b2c790
 WHIRLPOOL 
9fb781c637c4725dd48fa07898fd5db4b2f1e47264e80468e3c9b48fd8afc6bcb6494a44ccbfb0e48dec10dc5db461ab8e1941251d625854ebbebdbfdacb971c
-DIST libsemanage-2.7-rc1.tar.gz 153597 SHA256 
50df2092bce88af87350916bd7f93b8095de500d9911452a025c3f24ea140455 SHA512 
92371e0f710a9fb5179db4c05af52455e3ec0771173a693c954abf032afc70e76d3eb626ae87445a59b04d6037a83fce15bc196275ef3497a8321423ccfb4aac
 WHIRLPOOL 
b871a59d0565cc194e7e2b0f60fd059aef17eb433a743bff113085473013a155905aa5778439aa37cb0dbbd4951873c20dc4458469b400a9e64dc4e8bb7e1e87
-DIST libsemanage-2.7-rc4.tar.gz 153500 SHA256 
92c052fcc385471965ac22a6031573947cce8a685146aa6c7b404ba688277280 SHA512 
efd84cdcff3a326e55180063d5877f711f2af001e89f83181bb4e7b93cee226fa94d0bce8285974ca1aaf14e75378f2022fd4c2c788a2325cd4665fce4100535
 WHIRLPOOL 
32a949f72f5fc4ba677dff83ed35487a0cb3661c9f696acaaaee0087d7d6d23e1740fe5f51f032e4aeaa2a6d64484d7522e2572113f218018ad9f76f3078c222
-DIST libsemanage-2.7-rc5.tar.gz 153499 SHA256 
1157538b67b77bdff14592c7b23d43181fad747307452009b4cfa53b07a94e6a SHA512 
62803ef4eee50f8a706aef7034e604891ca3f15e3f735793c63785e7e7e072f1cd3ff0c4ad1e9a591925b91c53ac4e89453b7fcb479cb2396c7e914a704bd685
 WHIRLPOOL 
4b6eff5b2cfbf0d4915cbad10bbcb8bec549be7e5cabd74e7ed58b92f9a7a7e453b8f126624a38f469b6e9758123500cb266fc5c49e6b75901a69d874f9cc683
 DIST libsemanage-2.7.tar.gz 153465 SHA256 
07e9477714ce6a4557a1fe924ea4cb06501b62d0fa0e3c0dc32a2cf47cb8d476 SHA512 
6b30ea87f1ab3944935188539bbf869c8e287e05c174ea61cd19722a89cf8156518f336476e23b4117a5a05aec9a99a4db679b58a6952bf0c31ad809e9ab91d9
 WHIRLPOOL 
b1acccb13b54cacd6d956d615a954c5aef4bd97ec225702ccd6818f7a4d64244f60f13c5b8cc02d4fd453e103b6e409919562406510fe2614c1fc6338c19ad67

diff --git a/sys-libs/libsemanage/libsemanage-2.5.ebuild 
b/sys-libs/libsemanage/libsemanage-2.5.ebuild
deleted file mode 100644
index 58fc0bab31e..00000000000
--- a/sys-libs/libsemanage/libsemanage-2.5.ebuild
+++ /dev/null
@@ -1,126 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-PYTHON_COMPAT=( python2_7 python3_4 )
-
-inherit multilib python-r1 toolchain-funcs eutils multilib-minimal
-
-MY_P="${P//_/-}"
-
-SEPOL_VER="${PV}"
-SELNX_VER="${PV}"
-
-DESCRIPTION="SELinux kernel and policy management library"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/${MY_P}.tar.gz";
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~mips x86"
-IUSE="python"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
-       >=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
-       >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
-       >=dev-libs/ustr-1.0.4-r2[${MULTILIB_USEDEP}]
-       python? ( ${PYTHON_DEPS} )"
-DEPEND="${RDEPEND}
-       sys-devel/bison
-       sys-devel/flex
-       python? (
-               >=dev-lang/swig-2.0.4-r1
-               virtual/pkgconfig
-       )"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="test"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-       echo "# Set this to true to save the linked policy." >> 
"${S}/src/semanage.conf"
-       echo "# This is normally only useful for analysis" >> 
"${S}/src/semanage.conf"
-       echo "# or debugging of policy." >> "${S}/src/semanage.conf"
-       echo "save-linked=false" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Set this to 0 to disable assertion checking." >> 
"${S}/src/semanage.conf"
-       echo "# This should speed up building the kernel policy" >> 
"${S}/src/semanage.conf"
-       echo "# from policy modules, but may leave you open to" >> 
"${S}/src/semanage.conf"
-       echo "# dangerous rules which assertion checking" >> 
"${S}/src/semanage.conf"
-       echo "# would catch." >> "${S}/src/semanage.conf"
-       echo "expand-check=1" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Modules in the module store can be compressed" >> 
"${S}/src/semanage.conf"
-       echo "# with bzip2.  Set this to the bzip2 blocksize" >> 
"${S}/src/semanage.conf"
-       echo "# 1-9 when compressing.  The higher the number," >> 
"${S}/src/semanage.conf"
-       echo "# the more memory is traded off for disk space." >> 
"${S}/src/semanage.conf"
-       echo "# Set to 0 to disable bzip2 compression." >> 
"${S}/src/semanage.conf"
-       echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Reduce memory usage for bzip2 compression and" >> 
"${S}/src/semanage.conf"
-       echo "# decompression of modules in the module store." >> 
"${S}/src/semanage.conf"
-       echo "bzip-small=true" >> "${S}/src/semanage.conf"
-
-       epatch "${FILESDIR}"/${PN}-2.4-build-paths.patch
-
-       epatch_user
-
-       multilib_copy_sources
-}
-
-multilib_src_compile() {
-       emake \
-               AR="$(tc-getAR)" \
-               CC="$(tc-getCC)" \
-               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
-               all
-
-       if multilib_is_native_abi && use python; then
-               building_py() {
-                       python_export PYTHON_INCLUDEDIR PYTHON_LIBPATH
-                       emake CC="$(tc-getCC)" PYINC="-I${PYTHON_INCLUDEDIR}" 
PYTHONLBIDIR="${PYTHON_LIBPATH}" PYPREFIX="${EPYTHON##*/}" "$@"
-               }
-               python_foreach_impl building_py swigify
-               python_foreach_impl building_py pywrap
-       fi
-}
-
-multilib_src_install() {
-       emake \
-               LIBDIR="${ED}/usr/$(get_libdir)" \
-               SHLIBDIR="${ED}/usr/$(get_libdir)" \
-               DESTDIR="${ED}" install
-
-       if multilib_is_native_abi && use python; then
-               installation_py() {
-                       emake DESTDIR="${ED}" LIBDIR="${ED}/usr/$(get_libdir)" \
-                               SHLIBDIR="${ED}/usr/$(get_libdir)" 
install-pywrap
-                       python_optimize # bug 531638
-               }
-               python_foreach_impl installation_py
-       fi
-}
-
-pkg_postinst() {
-       # Migrate the SELinux semanage configuration store if not done already
-       local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' 
"${EROOT}"/etc/selinux/config 2>/dev/null)
-       if [ -n "${selinuxtype}" ] && [ ! -d 
"${EROOT}"/var/lib/selinux/${mcs}/active ] ; then
-               ewarn "Since the 2.4 SELinux userspace, the policy module store 
is moved"
-               ewarn "from /etc/selinux to /var/lib/selinux. The migration 
will be run now."
-               ewarn "If there are any issues, it can be done manually by 
running:"
-               ewarn "/usr/libexec/selinux/semanage_migrate_store"
-               ewarn "For more information, please see"
-               ewarn "- 
https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration";
-       fi
-
-       # Run the store migration without rebuilds
-       for POLICY_TYPE in ${POLICY_TYPES} ; do
-               if [ ! -d "${EROOT}/var/lib/selinux/${POLICY_TYPE}/active" ] ; 
then
-                       einfo "Migrating store ${POLICY_TYPE} (without policy 
rebuild)."
-                       /usr/libexec/selinux/semanage_migrate_store -n -s 
"${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}"
-               fi
-       done
-}

diff --git a/sys-libs/libsemanage/libsemanage-2.7_rc1.ebuild 
b/sys-libs/libsemanage/libsemanage-2.7_rc1.ebuild
deleted file mode 100644
index 72e96cc99d3..00000000000
--- a/sys-libs/libsemanage/libsemanage-2.7_rc1.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
-
-inherit multilib python-r1 toolchain-funcs multilib-minimal
-
-MY_P="${P//_/-}"
-MY_RELEASEDATE="20170609"
-
-SEPOL_VER="${PV}"
-SELNX_VER="${PV}"
-
-DESCRIPTION="SELinux kernel and policy management library"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} == 9999 ]]; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-       S="${WORKDIR}/${MY_P}/${PN}"
-else
-       
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz";
-       KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
-       S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="python"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
-       >=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
-       >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
-       >=dev-libs/ustr-1.0.4-r2[${MULTILIB_USEDEP}]
-       python? ( ${PYTHON_DEPS} )"
-DEPEND="${RDEPEND}
-       sys-devel/bison
-       sys-devel/flex
-       python? (
-               >=dev-lang/swig-2.0.4-r1
-               virtual/pkgconfig
-       )"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="test"
-
-src_prepare() {
-       echo "# Set this to true to save the linked policy." >> 
"${S}/src/semanage.conf"
-       echo "# This is normally only useful for analysis" >> 
"${S}/src/semanage.conf"
-       echo "# or debugging of policy." >> "${S}/src/semanage.conf"
-       echo "save-linked=false" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Set this to 0 to disable assertion checking." >> 
"${S}/src/semanage.conf"
-       echo "# This should speed up building the kernel policy" >> 
"${S}/src/semanage.conf"
-       echo "# from policy modules, but may leave you open to" >> 
"${S}/src/semanage.conf"
-       echo "# dangerous rules which assertion checking" >> 
"${S}/src/semanage.conf"
-       echo "# would catch." >> "${S}/src/semanage.conf"
-       echo "expand-check=1" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Modules in the module store can be compressed" >> 
"${S}/src/semanage.conf"
-       echo "# with bzip2.  Set this to the bzip2 blocksize" >> 
"${S}/src/semanage.conf"
-       echo "# 1-9 when compressing.  The higher the number," >> 
"${S}/src/semanage.conf"
-       echo "# the more memory is traded off for disk space." >> 
"${S}/src/semanage.conf"
-       echo "# Set to 0 to disable bzip2 compression." >> 
"${S}/src/semanage.conf"
-       echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Reduce memory usage for bzip2 compression and" >> 
"${S}/src/semanage.conf"
-       echo "# decompression of modules in the module store." >> 
"${S}/src/semanage.conf"
-       echo "bzip-small=true" >> "${S}/src/semanage.conf"
-
-       eapply_user
-
-       multilib_copy_sources
-}
-
-multilib_src_compile() {
-       emake \
-               AR="$(tc-getAR)" \
-               CC="$(tc-getCC)" \
-               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
-               all
-
-       if multilib_is_native_abi && use python; then
-               building_py() {
-                       emake \
-                               AR="$(tc-getAR)" \
-                               CC="$(tc-getCC)" \
-                               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
-                               "$@"
-               }
-               python_foreach_impl building_py swigify
-               python_foreach_impl building_py pywrap
-       fi
-}
-
-multilib_src_install() {
-       emake \
-               LIBDIR="${ED}/usr/$(get_libdir)" \
-               SHLIBDIR="${ED}/usr/$(get_libdir)" \
-               DESTDIR="${ED}" install
-
-       if multilib_is_native_abi && use python; then
-               installation_py() {
-                       emake DESTDIR="${ED}" \
-                               LIBDIR="${ED}/usr/$(get_libdir)" \
-                               SHLIBDIR="${ED}/usr/$(get_libdir)" \
-                               
LIBSEPOLA="${EPREFIX%/}/usr/$(get_libdir)/libsepol.a" \
-                               install-pywrap
-                       python_optimize # bug 531638
-               }
-               python_foreach_impl installation_py
-       fi
-}
-
-pkg_postinst() {
-       # Migrate the SELinux semanage configuration store if not done already
-       local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' 
"${EROOT}"/etc/selinux/config 2>/dev/null)
-       if [ -n "${selinuxtype}" ] && [ ! -d 
"${EROOT}"/var/lib/selinux/${mcs}/active ] ; then
-               ewarn "Since the 2.4 SELinux userspace, the policy module store 
is moved"
-               ewarn "from /etc/selinux to /var/lib/selinux. The migration 
will be run now."
-               ewarn "If there are any issues, it can be done manually by 
running:"
-               ewarn "/usr/libexec/selinux/semanage_migrate_store"
-               ewarn "For more information, please see"
-               ewarn "- 
https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration";
-       fi
-
-       # Run the store migration without rebuilds
-       for POLICY_TYPE in ${POLICY_TYPES} ; do
-               if [ ! -d "${EROOT}/var/lib/selinux/${POLICY_TYPE}/active" ] ; 
then
-                       einfo "Migrating store ${POLICY_TYPE} (without policy 
rebuild)."
-                       /usr/libexec/selinux/semanage_migrate_store -n -s 
"${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}"
-               fi
-       done
-}

diff --git a/sys-libs/libsemanage/libsemanage-2.7_rc4.ebuild 
b/sys-libs/libsemanage/libsemanage-2.7_rc4.ebuild
deleted file mode 100644
index e27fbeab2eb..00000000000
--- a/sys-libs/libsemanage/libsemanage-2.7_rc4.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
-
-inherit multilib python-r1 toolchain-funcs multilib-minimal
-
-MY_P="${P//_/-}"
-MY_RELEASEDATE="20170630"
-
-SEPOL_VER="${PV}"
-SELNX_VER="${PV}"
-
-DESCRIPTION="SELinux kernel and policy management library"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} == 9999 ]]; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-       S="${WORKDIR}/${MY_P}/${PN}"
-else
-       
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz";
-       KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
-       S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="python"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
-       >=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
-       >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
-       >=dev-libs/ustr-1.0.4-r2[${MULTILIB_USEDEP}]
-       python? ( ${PYTHON_DEPS} )"
-DEPEND="${RDEPEND}
-       sys-devel/bison
-       sys-devel/flex
-       python? (
-               >=dev-lang/swig-2.0.4-r1
-               virtual/pkgconfig
-       )"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="test"
-
-src_prepare() {
-       echo "# Set this to true to save the linked policy." >> 
"${S}/src/semanage.conf"
-       echo "# This is normally only useful for analysis" >> 
"${S}/src/semanage.conf"
-       echo "# or debugging of policy." >> "${S}/src/semanage.conf"
-       echo "save-linked=false" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Set this to 0 to disable assertion checking." >> 
"${S}/src/semanage.conf"
-       echo "# This should speed up building the kernel policy" >> 
"${S}/src/semanage.conf"
-       echo "# from policy modules, but may leave you open to" >> 
"${S}/src/semanage.conf"
-       echo "# dangerous rules which assertion checking" >> 
"${S}/src/semanage.conf"
-       echo "# would catch." >> "${S}/src/semanage.conf"
-       echo "expand-check=1" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Modules in the module store can be compressed" >> 
"${S}/src/semanage.conf"
-       echo "# with bzip2.  Set this to the bzip2 blocksize" >> 
"${S}/src/semanage.conf"
-       echo "# 1-9 when compressing.  The higher the number," >> 
"${S}/src/semanage.conf"
-       echo "# the more memory is traded off for disk space." >> 
"${S}/src/semanage.conf"
-       echo "# Set to 0 to disable bzip2 compression." >> 
"${S}/src/semanage.conf"
-       echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Reduce memory usage for bzip2 compression and" >> 
"${S}/src/semanage.conf"
-       echo "# decompression of modules in the module store." >> 
"${S}/src/semanage.conf"
-       echo "bzip-small=true" >> "${S}/src/semanage.conf"
-
-       eapply_user
-
-       multilib_copy_sources
-}
-
-multilib_src_compile() {
-       emake \
-               AR="$(tc-getAR)" \
-               CC="$(tc-getCC)" \
-               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
-               all
-
-       if multilib_is_native_abi && use python; then
-               building_py() {
-                       emake \
-                               AR="$(tc-getAR)" \
-                               CC="$(tc-getCC)" \
-                               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
-                               "$@"
-               }
-               python_foreach_impl building_py swigify
-               python_foreach_impl building_py pywrap
-       fi
-}
-
-multilib_src_install() {
-       emake \
-               LIBDIR="${ED}/usr/$(get_libdir)" \
-               SHLIBDIR="${ED}/usr/$(get_libdir)" \
-               DESTDIR="${ED}" install
-
-       if multilib_is_native_abi && use python; then
-               installation_py() {
-                       emake DESTDIR="${ED}" \
-                               LIBDIR="${ED}/usr/$(get_libdir)" \
-                               SHLIBDIR="${ED}/usr/$(get_libdir)" \
-                               
LIBSEPOLA="${EPREFIX%/}/usr/$(get_libdir)/libsepol.a" \
-                               install-pywrap
-                       python_optimize # bug 531638
-               }
-               python_foreach_impl installation_py
-       fi
-}
-
-pkg_postinst() {
-       # Migrate the SELinux semanage configuration store if not done already
-       local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' 
"${EROOT}"/etc/selinux/config 2>/dev/null)
-       if [ -n "${selinuxtype}" ] && [ ! -d 
"${EROOT}"/var/lib/selinux/${mcs}/active ] ; then
-               ewarn "Since the 2.4 SELinux userspace, the policy module store 
is moved"
-               ewarn "from /etc/selinux to /var/lib/selinux. The migration 
will be run now."
-               ewarn "If there are any issues, it can be done manually by 
running:"
-               ewarn "/usr/libexec/selinux/semanage_migrate_store"
-               ewarn "For more information, please see"
-               ewarn "- 
https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration";
-       fi
-
-       # Run the store migration without rebuilds
-       for POLICY_TYPE in ${POLICY_TYPES} ; do
-               if [ ! -d "${EROOT}/var/lib/selinux/${POLICY_TYPE}/active" ] ; 
then
-                       einfo "Migrating store ${POLICY_TYPE} (without policy 
rebuild)."
-                       /usr/libexec/selinux/semanage_migrate_store -n -s 
"${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}"
-               fi
-       done
-}

diff --git a/sys-libs/libsemanage/libsemanage-2.7_rc5.ebuild 
b/sys-libs/libsemanage/libsemanage-2.7_rc5.ebuild
deleted file mode 100644
index 6de2b5f214a..00000000000
--- a/sys-libs/libsemanage/libsemanage-2.7_rc5.ebuild
+++ /dev/null
@@ -1,137 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="6"
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
-
-inherit multilib python-r1 toolchain-funcs multilib-minimal
-
-MY_P="${P//_/-}"
-MY_RELEASEDATE="20170718"
-
-SEPOL_VER="${PV}"
-SELNX_VER="${PV}"
-
-DESCRIPTION="SELinux kernel and policy management library"
-HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki";
-
-if [[ ${PV} == 9999 ]]; then
-       inherit git-r3
-       EGIT_REPO_URI="https://github.com/SELinuxProject/selinux.git";
-       S="${WORKDIR}/${MY_P}/${PN}"
-else
-       
SRC_URI="https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/${MY_RELEASEDATE}/${MY_P}.tar.gz";
-       KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
-       S="${WORKDIR}/${MY_P}"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="python"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
-
-RDEPEND=">=sys-libs/libsepol-${SEPOL_VER}[${MULTILIB_USEDEP}]
-       >=sys-libs/libselinux-${SELNX_VER}[${MULTILIB_USEDEP}]
-       >=sys-process/audit-2.2.2[${MULTILIB_USEDEP}]
-       >=dev-libs/ustr-1.0.4-r2[${MULTILIB_USEDEP}]
-       python? ( ${PYTHON_DEPS} )"
-DEPEND="${RDEPEND}
-       sys-devel/bison
-       sys-devel/flex
-       python? (
-               >=dev-lang/swig-2.0.4-r1
-               virtual/pkgconfig
-       )"
-
-# tests are not meant to be run outside of the
-# full SELinux userland repo
-RESTRICT="test"
-
-src_prepare() {
-       echo "# Set this to true to save the linked policy." >> 
"${S}/src/semanage.conf"
-       echo "# This is normally only useful for analysis" >> 
"${S}/src/semanage.conf"
-       echo "# or debugging of policy." >> "${S}/src/semanage.conf"
-       echo "save-linked=false" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Set this to 0 to disable assertion checking." >> 
"${S}/src/semanage.conf"
-       echo "# This should speed up building the kernel policy" >> 
"${S}/src/semanage.conf"
-       echo "# from policy modules, but may leave you open to" >> 
"${S}/src/semanage.conf"
-       echo "# dangerous rules which assertion checking" >> 
"${S}/src/semanage.conf"
-       echo "# would catch." >> "${S}/src/semanage.conf"
-       echo "expand-check=1" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Modules in the module store can be compressed" >> 
"${S}/src/semanage.conf"
-       echo "# with bzip2.  Set this to the bzip2 blocksize" >> 
"${S}/src/semanage.conf"
-       echo "# 1-9 when compressing.  The higher the number," >> 
"${S}/src/semanage.conf"
-       echo "# the more memory is traded off for disk space." >> 
"${S}/src/semanage.conf"
-       echo "# Set to 0 to disable bzip2 compression." >> 
"${S}/src/semanage.conf"
-       echo "bzip-blocksize=0" >> "${S}/src/semanage.conf"
-       echo >> "${S}/src/semanage.conf"
-       echo "# Reduce memory usage for bzip2 compression and" >> 
"${S}/src/semanage.conf"
-       echo "# decompression of modules in the module store." >> 
"${S}/src/semanage.conf"
-       echo "bzip-small=true" >> "${S}/src/semanage.conf"
-
-       eapply_user
-
-       multilib_copy_sources
-}
-
-multilib_src_compile() {
-       emake \
-               AR="$(tc-getAR)" \
-               CC="$(tc-getCC)" \
-               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
-               all
-
-       if multilib_is_native_abi && use python; then
-               building_py() {
-                       emake \
-                               AR="$(tc-getAR)" \
-                               CC="$(tc-getCC)" \
-                               LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
-                               "$@"
-               }
-               python_foreach_impl building_py swigify
-               python_foreach_impl building_py pywrap
-       fi
-}
-
-multilib_src_install() {
-       emake \
-               LIBDIR="${ED}/usr/$(get_libdir)" \
-               SHLIBDIR="${ED}/usr/$(get_libdir)" \
-               DESTDIR="${ED}" install
-
-       if multilib_is_native_abi && use python; then
-               installation_py() {
-                       emake DESTDIR="${ED}" \
-                               LIBDIR="${ED}/usr/$(get_libdir)" \
-                               SHLIBDIR="${ED}/usr/$(get_libdir)" \
-                               
LIBSEPOLA="${EPREFIX%/}/usr/$(get_libdir)/libsepol.a" \
-                               install-pywrap
-                       python_optimize # bug 531638
-               }
-               python_foreach_impl installation_py
-       fi
-}
-
-pkg_postinst() {
-       # Migrate the SELinux semanage configuration store if not done already
-       local selinuxtype=$(awk -F'=' '/SELINUXTYPE=/ {print $2}' 
"${EROOT}"/etc/selinux/config 2>/dev/null)
-       if [ -n "${selinuxtype}" ] && [ ! -d 
"${EROOT}"/var/lib/selinux/${mcs}/active ] ; then
-               ewarn "Since the 2.4 SELinux userspace, the policy module store 
is moved"
-               ewarn "from /etc/selinux to /var/lib/selinux. The migration 
will be run now."
-               ewarn "If there are any issues, it can be done manually by 
running:"
-               ewarn "/usr/libexec/selinux/semanage_migrate_store"
-               ewarn "For more information, please see"
-               ewarn "- 
https://github.com/SELinuxProject/selinux/wiki/Policy-Store-Migration";
-       fi
-
-       # Run the store migration without rebuilds
-       for POLICY_TYPE in ${POLICY_TYPES} ; do
-               if [ ! -d "${EROOT}/var/lib/selinux/${POLICY_TYPE}/active" ] ; 
then
-                       einfo "Migrating store ${POLICY_TYPE} (without policy 
rebuild)."
-                       /usr/libexec/selinux/semanage_migrate_store -n -s 
"${POLICY_TYPE}" || die "Failed to migrate store ${POLICY_TYPE}"
-               fi
-       done
-}

Reply via email to