summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2004-09-13 03:31:44 +0000
committerChris PeBenito <pebenito@gentoo.org>2004-09-13 03:31:44 +0000
commit80daf4efe69bbc864528d62bf433f8af3bf95279 (patch)
tree2af1aedd39c2ba30f6d2a90707695780236e630b /sys-apps/policycoreutils
parentrm old (diff)
downloadhistorical-80daf4efe69bbc864528d62bf433f8af3bf95279.tar.gz
historical-80daf4efe69bbc864528d62bf433f8af3bf95279.tar.bz2
historical-80daf4efe69bbc864528d62bf433f8af3bf95279.zip
rm old
Diffstat (limited to 'sys-apps/policycoreutils')
-rw-r--r--sys-apps/policycoreutils/files/digest-policycoreutils-1.4-r12
-rw-r--r--sys-apps/policycoreutils/files/selinux-init33
-rw-r--r--sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild63
3 files changed, 0 insertions, 98 deletions
diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.4-r1 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.4-r1
deleted file mode 100644
index 37d4748f8ab2..000000000000
--- a/sys-apps/policycoreutils/files/digest-policycoreutils-1.4-r1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 c047074b07068e979274ab13a7dfbc7d policycoreutils-1.4.tgz 32204
-MD5 7745af898c624e8d9c5080da4c671957 policycoreutils-extra-1.0.tar.bz2 5949
diff --git a/sys-apps/policycoreutils/files/selinux-init b/sys-apps/policycoreutils/files/selinux-init
deleted file mode 100644
index 1603c57768e2..000000000000
--- a/sys-apps/policycoreutils/files/selinux-init
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/bash
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/files/selinux-init,v 1.3 2004/07/15 00:47:52 agriffis Exp $
-
-mount -n -t proc none /proc
-
-# see if selinuxfs is available
-for i in $(cat /proc/filesystems); do
- [ "$i" == "selinuxfs" ] && ENABLED=y
-done
-
-umount -n /proc
-
-if [ -n ${ENABLED} ]; then
- # only try to load policy on SELinux kernels
-
- mount -n -t selinuxfs none /selinux
-
- # determine the policy version
- [ -f /selinux/policyvers ] && \
- POLICYVER=$(cat /selinux/policyvers) || \
- POLICYVER=15
-
- # load the policy if it exists
- if [ -f /etc/security/selinux/policy.${POLICYVER} ]; then
- /usr/sbin/load_policy /etc/security/selinux/policy.${POLICYVER}
- else
- echo "Unable to load policy: /etc/security/selinux/policy.${POLICYVER} missing."
- fi
-fi
-
-exec /sbin/init
diff --git a/sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild b/sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild
deleted file mode 100644
index f95baf56c327..000000000000
--- a/sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild,v 1.6 2004/08/08 00:38:07 slarti Exp $
-
-IUSE="build"
-
-EXTRAS_VER="1.0"
-
-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"
-
-DEPEND=">=sys-libs/libselinux-${PV}
- sys-devel/gettext
- !build? ( sys-libs/pam )"
-
-RDEPEND="${DEPEND}"
-
-S2=${WORKDIR}/policycoreutils-extra
-
-src_unpack() {
- unpack ${A}
-
- # trivial fix to audit2allow
- sed -i -e 's:newrules:$0:' ${S}/audit2allow/audit2allow
-
- # fix up to accept Gentoo CFLAGS
- local SUBDIRS="load_policy newrole run_init setfiles audit2allow"
- 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 use 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 use 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
-
- exeinto /sbin
- newexe ${FILESDIR}/selinux-init seinit
- fi
-}