dev-python/sepolgen: remove package

Became sys-apps/selinux-python in release 2.7
This commit is contained in:
Jason Zaman
2018-04-10 10:44:38 +08:00
parent 942328991e
commit 1b6e17841d
7 changed files with 0 additions and 283 deletions
-2
View File
@@ -1,2 +0,0 @@
DIST sepolgen-1.2.3.tar.gz 367644 BLAKE2B 649f0a59b5644dcad82cb53494180bc1af9f1015b2e7795b7f509194e29303bc7c7d00c69213ae1a79cb2a92b20909698b49db660ebccb8d8581a2237f43391d SHA512 5fe023f983dc0fe1855da24835cb9bb466ac6c44d07fa939416740ca64968c039be2febff79b2a4c593e54c5ae81448dd06020e9160e4f84eea95d8c0d2b910f
DIST sepolgen-2.6.tar.gz 367897 BLAKE2B ec66d628b840beaed88601c9dd1daae87f10c30c3d9a9a36aedac16c709436ecb71e1df484af7208f9c6976a618b0d5cb3ebecdf0b9383965796cffe6aad995c SHA512 b04d0b78416dde4857888f94bad1f6f83909cb4f9fb50519778ec8a50662be38ccac19f5fc6db269754cb63668c5324258ba4a4cb79440789b759ad5eb6148c0
@@ -1,12 +0,0 @@
diff -uNr sepolgen-1.2.1.orig/src/sepolgen/defaults.py sepolgen-1.2.1/src/sepolgen/defaults.py
--- sepolgen-1.2.1.orig/src/sepolgen/defaults.py 2013-11-04 22:24:13.620024022 +0100
+++ sepolgen-1.2.1/src/sepolgen/defaults.py 2013-11-04 22:25:05.619024133 +0100
@@ -27,7 +27,7 @@
self.config = dict()
if not os.path.exists(pathname):
self.config_pathname = "(defaults)"
- self.config["SELINUX_DEVEL_PATH"] = "/usr/share/selinux/default:/usr/share/selinux/mls:/usr/share/selinux/devel"
+ self.config["SELINUX_DEVEL_PATH"] = "/usr/share/selinux/strict/include:/usr/share/selinux/mcs/include:/usr/share/selinux/targeted/include:/usr/share/selinux/mls/include:/usr/share/selinux/default:/usr/share/selinux/mls:/usr/share/selinux/devel"
return
self.config_pathname = pathname
ignore = re.compile(r"^\s*(?:#.+)?$")
-12
View File
@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>selinux@gentoo.org</email>
<name>SELinux Team</name>
</maintainer>
<longdescription>Python module needed for audit2allow</longdescription>
<upstream>
<remote-id type="github">SELinuxProject/selinux</remote-id>
</upstream>
</pkgmetadata>
-84
View File
@@ -1,84 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
PYTHON_COMPAT=( python{2_7,3_4} )
inherit python-r1 eutils
MY_P="${P//_/-}"
MY_RELEASEDATE="20160223"
DESCRIPTION="SELinux policy generation 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=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
>=sys-libs/libselinux-2.4[python,${PYTHON_USEDEP}]
app-admin/setools[python(+),${PYTHON_USEDEP}]
${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
src_prepare() {
if [[ ${PV} != 9999 ]] ; then
# If needed for live ebuilds please use /etc/portage/patches
epatch "${FILESDIR}/0030-default-path-for-tests-also-needed-bug-467264.patch"
fi
epatch_user
python_copy_sources
}
src_compile() {
:
}
src_test() {
if has_version sec-policy/selinux-base-policy; then
invoke_sepolgen_test() {
emake test
}
python_foreach_impl invoke_sepolgen_test
else
ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests."
fi
}
src_install() {
installation() {
emake DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" install
python_optimize
}
python_foreach_impl installation
# Create sepolgen.conf with different devel location definition
if [[ -f /etc/selinux/config ]];
then
local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config);
mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory";
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
else
local selinuxtype="${POLICY_TYPES%% *}";
if [[ -n "${selinuxtype}" ]];
then
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
else
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict" > "${D}"/etc/selinux/sepolgen.conf;
fi
fi
}
-84
View File
@@ -1,84 +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 python-r1
MY_P="${P//_/-}"
MY_RELEASEDATE="20161014"
DESCRIPTION="SELinux policy generation 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 ~arm64 ~mips x86"
S="${WORKDIR}/${MY_P}"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
>=sys-libs/libselinux-2.4[python,${PYTHON_USEDEP}]
>=app-admin/setools-4.0[${PYTHON_USEDEP}]
${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
src_prepare() {
if [[ ${PV} != 9999 ]] ; then
# If needed for live ebuilds please use /etc/portage/patches
eapply "${FILESDIR}/0030-default-path-for-tests-also-needed-bug-467264.patch"
fi
eapply_user
python_copy_sources
}
src_compile() {
:
}
src_test() {
if has_version sec-policy/selinux-base-policy; then
invoke_sepolgen_test() {
emake test
}
python_foreach_impl invoke_sepolgen_test
else
ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests."
fi
}
src_install() {
installation() {
emake DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" install
python_optimize
}
python_foreach_impl installation
# Create sepolgen.conf with different devel location definition
if [[ -f /etc/selinux/config ]];
then
local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config);
mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory";
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
else
local selinuxtype="${POLICY_TYPES%% *}";
if [[ -n "${selinuxtype}" ]];
then
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
else
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict" > "${D}"/etc/selinux/sepolgen.conf;
fi
fi
}
-84
View File
@@ -1,84 +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 python-r1
MY_P="${P//_/-}"
MY_RELEASEDATE="20170630"
DESCRIPTION="SELinux policy generation 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 ~arm64 ~mips ~x86"
S="${WORKDIR}/${MY_P}"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE=""
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
DEPEND="
>=sys-libs/libselinux-2.4[python,${PYTHON_USEDEP}]
>=app-admin/setools-4.0[${PYTHON_USEDEP}]
${PYTHON_DEPS}"
RDEPEND="${DEPEND}"
src_prepare() {
if [[ ${PV} != 9999 ]] ; then
# If needed for live ebuilds please use /etc/portage/patches
eapply "${FILESDIR}/0030-default-path-for-tests-also-needed-bug-467264.patch"
fi
eapply_user
python_copy_sources
}
src_compile() {
:
}
src_test() {
if has_version sec-policy/selinux-base-policy; then
invoke_sepolgen_test() {
emake test
}
python_foreach_impl invoke_sepolgen_test
else
ewarn "Sepolgen requires sec-policy/selinux-base-policy to run tests."
fi
}
src_install() {
installation() {
emake DESTDIR="${D}" PYTHONLIBDIR="$(python_get_sitedir)" install
python_optimize
}
python_foreach_impl installation
# Create sepolgen.conf with different devel location definition
if [[ -f /etc/selinux/config ]];
then
local selinuxtype=$(awk -F'=' '/^SELINUXTYPE/ {print $2}' /etc/selinux/config);
mkdir -p "${D}"/etc/selinux || die "Failed to create selinux directory";
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
else
local selinuxtype="${POLICY_TYPES%% *}";
if [[ -n "${selinuxtype}" ]];
then
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/${selinuxtype}/include:/usr/share/selinux/${selinuxtype}" > "${D}"/etc/selinux/sepolgen.conf;
else
echo "SELINUX_DEVEL_PATH=/usr/share/selinux/strict/include:/usr/share/selinux/strict" > "${D}"/etc/selinux/sepolgen.conf;
fi
fi
}
-5
View File
@@ -624,11 +624,6 @@ net-libs/librpcsecgss
# Masked for removal in 30 days. Bug 644258
app-text/noweb
# Jason Zaman <perfinion@gentoo.org> (02 Mar 2018)
# Became sys-apps/selinux-python in release 2.7
# Masked for removal in 30 days.
dev-python/sepolgen
# Tim Harder <radhermit@gentoo.org> (01 Mar 2018)
# Masked for testing.
>=dev-python/aiohttp-3