summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/policycoreutils/files/digest-policycoreutils-1.222
-rw-r--r--sys-apps/policycoreutils/files/digest-policycoreutils-1.24-r22
-rw-r--r--sys-apps/policycoreutils/files/policycoreutils-1.22-genhomedircon-quiet.diff14
-rw-r--r--sys-apps/policycoreutils/files/policycoreutils-1.24-genhomedircon-quiet.diff24
-rw-r--r--sys-apps/policycoreutils/policycoreutils-1.22.ebuild128
-rw-r--r--sys-apps/policycoreutils/policycoreutils-1.24-r2.ebuild133
6 files changed, 0 insertions, 303 deletions
diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.22 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.22
deleted file mode 100644
index 411370118bda..000000000000
--- a/sys-apps/policycoreutils/files/digest-policycoreutils-1.22
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 478ab461726e06dcce2a47cab1f79d22 policycoreutils-1.22.tgz 53498
-MD5 c9a55e52f3c2eb822bee464972ab305a policycoreutils-extra-1.12.tar.bz2 10171
diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.24-r2 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.24-r2
deleted file mode 100644
index 738f944cea70..000000000000
--- a/sys-apps/policycoreutils/files/digest-policycoreutils-1.24-r2
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 9ee11eb7ba48a5f491710126d40c7295 policycoreutils-1.24.tgz 58651
-MD5 fc5f84389e208006400bde717fcda593 policycoreutils-extra-1.13.tar.bz2 10405
diff --git a/sys-apps/policycoreutils/files/policycoreutils-1.22-genhomedircon-quiet.diff b/sys-apps/policycoreutils/files/policycoreutils-1.22-genhomedircon-quiet.diff
deleted file mode 100644
index ced1b943b10b..000000000000
--- a/sys-apps/policycoreutils/files/policycoreutils-1.22-genhomedircon-quiet.diff
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -urN policycoreutils-1.22.orig/scripts/genhomedircon policycoreutils-1.22/scripts/genhomedircon
---- policycoreutils-1.22.orig/scripts/genhomedircon 2005-03-07 10:46:17.000000000 -0500
-+++ policycoreutils-1.22/scripts/genhomedircon 2005-03-12 18:59:45.873548040 -0500
-@@ -104,10 +104,6 @@
- return rc
-
- def oldgenhomedircon(filecontextdir, filecontext):
-- sys.stderr.write("Using genhomedircon in this fashion is supported for backwards compatability\n")
-- sys.stderr.write("Please update to the latest policy\n")
-- sys.stderr.flush()
--
- if os.path.isdir(filecontextdir) == 0:
- sys.stderr.write("New usage is the following\n")
- usage()
diff --git a/sys-apps/policycoreutils/files/policycoreutils-1.24-genhomedircon-quiet.diff b/sys-apps/policycoreutils/files/policycoreutils-1.24-genhomedircon-quiet.diff
deleted file mode 100644
index 0335b7080ed8..000000000000
--- a/sys-apps/policycoreutils/files/policycoreutils-1.24-genhomedircon-quiet.diff
+++ /dev/null
@@ -1,24 +0,0 @@
-diff -urN policycoreutils-1.24.orig/scripts/genhomedircon policycoreutils-1.24/scripts/genhomedircon
---- policycoreutils-1.24.orig/scripts/genhomedircon 2005-04-13 10:44:58.000000000 -0400
-+++ policycoreutils-1.24/scripts/genhomedircon 2005-06-23 23:48:10.432082157 -0400
-@@ -121,8 +121,6 @@
- return rc
-
- def oldgenhomedircon(filecontextdir, filecontext):
-- sys.stderr.write("Using genhomedircon in this fashion is supported for backwards compatability\n")
-- sys.stderr.write("Please update to the latest policy\n")
- sys.stderr.flush()
-
- if os.path.isdir(filecontextdir) == 0:
-@@ -153,11 +151,6 @@
- homedir = re.sub(r"[^/a-zA-Z0-9].*$", "", homedir)
- if not prefixes.has_key(homedir):
- prefixes[homedir] = ""
-- else:
-- if rc[0] != 256:
-- sys.stderr.write("%s\n" % rc[1])
-- sys.stderr.write("You do not have access to /etc/libuser.conf LU_HOMEDIRECTORY=\n")
-- sys.stderr.flush()
-
- #the idea is that we need to find all of the home_root_t directories we do this by just accepting
- #any default home directory defined by either /etc/libuser.conf or /etc/default/useradd
diff --git a/sys-apps/policycoreutils/policycoreutils-1.22.ebuild b/sys-apps/policycoreutils/policycoreutils-1.22.ebuild
deleted file mode 100644
index b889f2b52e2a..000000000000
--- a/sys-apps/policycoreutils/policycoreutils-1.22.ebuild
+++ /dev/null
@@ -1,128 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.22.ebuild,v 1.6 2005/12/15 21:52:54 pebenito Exp $
-
-IUSE="build nls pam"
-
-inherit eutils
-
-EXTRAS_VER="1.12"
-SEPOL_VER="1.6"
-
-DESCRIPTION="SELinux core utilities"
-HOMEPAGE="http://www.nsa.gov/selinux"
-SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz
- mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc sparc amd64 mips"
-
-RDEPEND=">=sys-libs/libselinux-${PV}
- =sys-libs/libsepol-${SEPOL_VER}*
- !build? ( pam? ( sys-libs/pam ) )
- build? ( sys-apps/baselayout )"
-
-DEPEND="${RDEPEND}
- !build? ( nls? ( sys-devel/gettext ) )"
-
-S2=${WORKDIR}/policycoreutils-extra
-
-throw_pam_warning() {
- # this is an extremely important message that needs to be seen
- # thus it being shown at the beginning and end of the ebuild
-
- if ! useq pam; then
- eerror "PAM is disabled. This is not a supported config for"
- eerror "general use. Disabling PAM decreases security with"
- eerror "respect to SELinux protection of authentication."
- eerror "It also requires policy changes."
- ebeep 4
- epause 4
- fi
-}
-
-pkg_setup() {
- throw_pam_warning
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- epatch ${FILESDIR}/policycoreutils-1.22-genhomedircon-quiet.diff
-
- # fixfiles is extremely dangerous
- sed -i -e '/^all/s/fixfiles//' ${S}/scripts/Makefile \
- || die "fixfiles sed 1 failed"
- sed -i -e '/fixfiles/d' ${S}/scripts/Makefile \
- || die "fixfiles sed 2 failed"
-
- if ! useq pam; then
- # disable pam
- sed -i -e s/-lpam/-lcrypt/ -e s/-lpam_misc// -e s/-DUSE_PAM// \
- ${S}/run_init/Makefile || die "PAM sed 1 failed"
- sed -i -e s/-lpam/-lcrypt/ -e s/-lpam_misc// -e s/-DUSE_PAM// \
- ${S}/newrole/Makefile || die "PAM sed 2 failed"
- sed -i -e s/-lpam/-lcrypt/ -e s/-lpam_misc// -e s/-DUSE_PAM// \
- ${S2}/src/Makefile || die "PAM sed 3 failed"
- fi
-
- if ! useq nls; then
- # disable locale stuff
- sed -i -e s/-DUSE_NLS// ${S}/run_init/Makefile \
- || die "NLS sed 1 failed"
- sed -i -e s/-DUSE_NLS// ${S}/newrole/Makefile \
- || die "NLS sed 2 failed"
- sed -i -e s/-DUSE_NLS// ${S}/load_policy/Makefile \
- || die "NLS sed 3 failed"
- sed -i -e 's/ po //' ${S}/Makefile \
- || die "NLS sed 4 failed"
- fi
-
- # fix up to accept Gentoo CFLAGS
- local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
- for i in ${SUBDIRS}; do
- sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
- || die "${i} Makefile CFLAGS fix failed."
- done
-}
-
-src_compile() {
- if useq build; then
- einfo "Compiling setfiles"
- emake -C ${S}/setfiles || die
- else
- einfo "Compiling policycoreutils"
- emake -C ${S} || die
- einfo "Compiling policycoreutils-extra"
- emake -C ${S2} || die
- fi
-}
-
-src_install() {
- if useq build; then
- dosbin ${S}/setfiles/setfiles
- else
- einfo "Installing policycoreutils"
- make DESTDIR="${D}" -C ${S} install || die
- einfo "Installing policycoreutils-extra"
- make DESTDIR="${D}" -C ${S2} install || die
- fi
-
- useq pam || rm -fR ${D}/etc/pam.d
-}
-
-pkg_postinst() {
- if useq build; then
- # need to ensure these
- mkdir -p ${ROOT}/selinux
- touch ${ROOT}/selinux/.keep
- mkdir -p ${ROOT}/sys
- touch ${ROOT}/sys/.keep
- mkdir -p ${ROOT}/dev/pts
- touch ${ROOT}/dev/pts/.keep
- chmod 0666 ${ROOT}/dev/{ptmx,tty}
- fi
-
- throw_pam_warning
-}
diff --git a/sys-apps/policycoreutils/policycoreutils-1.24-r2.ebuild b/sys-apps/policycoreutils/policycoreutils-1.24-r2.ebuild
deleted file mode 100644
index be1b752c9ded..000000000000
--- a/sys-apps/policycoreutils/policycoreutils-1.24-r2.ebuild
+++ /dev/null
@@ -1,133 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.24-r2.ebuild,v 1.2 2005/12/15 21:52:54 pebenito Exp $
-
-IUSE="build nls pam"
-
-inherit eutils
-
-EXTRAS_VER="1.13"
-SEPOL_VER="1.6"
-
-DESCRIPTION="SELinux core utilities"
-HOMEPAGE="http://www.nsa.gov/selinux"
-SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz
- mirror://gentoo/policycoreutils-extra-${EXTRAS_VER}.tar.bz2"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc sparc amd64"
-#KEYWORDS="~x86 ~ppc ~sparc ~amd64"
-
-RDEPEND=">=sys-libs/libselinux-${PV}
- !build? ( pam? ( sys-libs/pam ) =sys-libs/libsepol-${SEPOL_VER}* )
- build? ( sys-apps/baselayout )"
-
-DEPEND="${RDEPEND}
- !build? ( nls? ( sys-devel/gettext ) )"
-
-S2=${WORKDIR}/policycoreutils-extra
-
-throw_pam_warning() {
- # this is an extremely important message that needs to be seen
- # thus it being shown at the beginning and end of the ebuild
-
- if ! useq pam; then
- eerror "PAM is disabled. This is not a supported config for"
- eerror "general use. Disabling PAM decreases security with"
- eerror "respect to SELinux protection of authentication."
- eerror "It also requires policy changes."
- ebeep 4
- epause 4
- fi
-}
-
-pkg_setup() {
- throw_pam_warning
-}
-
-src_unpack() {
- unpack ${A}
- cd ${S}
-
- epatch ${FILESDIR}/policycoreutils-1.24-genhomedircon-quiet.diff
-
- # This warning makes no sense, in this context
- sed -i -e '/FILE/ s/;/=NULL;/' ${S}/audit2why/audit2why.c \
- || die "audit2why sed failed"
-
- # fixfiles is extremely dangerous
- sed -i -e '/^all/s/fixfiles//' ${S}/scripts/Makefile \
- || die "fixfiles sed 1 failed"
- sed -i -e '/fixfiles/d' ${S}/scripts/Makefile \
- || die "fixfiles sed 2 failed"
-
- if ! useq pam; then
- # disable pam
- sed -i -e s/-lpam/-lcrypt/ -e s/-lpam_misc// -e s/-DUSE_PAM// \
- ${S}/run_init/Makefile || die "PAM sed 1 failed"
- sed -i -e s/-lpam/-lcrypt/ -e s/-lpam_misc// -e s/-DUSE_PAM// \
- ${S}/newrole/Makefile || die "PAM sed 2 failed"
- sed -i -e s/-lpam/-lcrypt/ -e s/-lpam_misc// -e s/-DUSE_PAM// \
- ${S2}/src/Makefile || die "PAM sed 3 failed"
- fi
-
- if ! useq nls; then
- # disable locale stuff
- sed -i -e s/-DUSE_NLS// ${S}/run_init/Makefile \
- || die "NLS sed 1 failed"
- sed -i -e s/-DUSE_NLS// ${S}/newrole/Makefile \
- || die "NLS sed 2 failed"
- sed -i -e s/-DUSE_NLS// ${S}/load_policy/Makefile \
- || die "NLS sed 3 failed"
- sed -i -e 's/ po //' ${S}/Makefile \
- || die "NLS sed 4 failed"
- fi
-
- # fix up to accept Gentoo CFLAGS
- local SUBDIRS="`cd ${S} && find -type d | cut -d/ -f2`"
- for i in ${SUBDIRS}; do
- sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/${i}/Makefile \
- || die "${i} Makefile CFLAGS fix failed."
- done
-}
-
-src_compile() {
- if useq build; then
- einfo "Compiling setfiles"
- emake -C ${S}/setfiles || die
- else
- einfo "Compiling policycoreutils"
- emake -C ${S} || die
- einfo "Compiling policycoreutils-extra"
- emake -C ${S2} || die
- fi
-}
-
-src_install() {
- if useq build; then
- dosbin ${S}/setfiles/setfiles
- else
- einfo "Installing policycoreutils"
- make DESTDIR="${D}" -C ${S} install || die
- einfo "Installing policycoreutils-extra"
- make DESTDIR="${D}" -C ${S2} install || die
- dosym /usr/sbin/genhomedircon /usr/sbin/genhomedircon.old
- fi
-
- useq pam || rm -fR ${D}/etc/pam.d
-}
-
-pkg_postinst() {
- if useq build; then
- # need to ensure these
- mkdir -p ${ROOT}/selinux
- touch ${ROOT}/selinux/.keep
- mkdir -p ${ROOT}/sys
- touch ${ROOT}/sys/.keep
- mkdir -p ${ROOT}/dev/pts
- touch ${ROOT}/dev/pts/.keep
- chmod 0666 ${ROOT}/dev/{ptmx,tty}
- fi
-
- throw_pam_warning
-}