summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2004-02-10 03:55:05 +0000
committerChris PeBenito <pebenito@gentoo.org>2004-02-10 03:55:05 +0000
commitaec8b828c53cb58a9879529582dd7accfca02322 (patch)
tree07a3d87c3a750c108049228737d54c8f52a323a2 /sys-apps
parentminor update (Manifest recommit) (diff)
downloadgentoo-2-aec8b828c53cb58a9879529582dd7accfca02322.tar.gz
gentoo-2-aec8b828c53cb58a9879529582dd7accfca02322.tar.bz2
gentoo-2-aec8b828c53cb58a9879529582dd7accfca02322.zip
move extras to mirrors
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/policycoreutils/ChangeLog8
-rw-r--r--sys-apps/policycoreutils/files/digest-policycoreutils-1.4-r12
-rw-r--r--sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild64
3 files changed, 73 insertions, 1 deletions
diff --git a/sys-apps/policycoreutils/ChangeLog b/sys-apps/policycoreutils/ChangeLog
index 7e0b1e2ae1cb..693a1f6354ce 100644
--- a/sys-apps/policycoreutils/ChangeLog
+++ b/sys-apps/policycoreutils/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/policycoreutils
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.16 2004/01/31 09:07:38 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.17 2004/02/10 03:55:05 pebenito Exp $
+
+*policycoreutils-1.4-r1 (09 Feb 2004)
+
+ 09 Feb 2004; Chris PeBenito <pebenito@gentoo.org>
+ policycoreutils-1.4-r1.ebuild:
+ Move extras to mirrors, and add runscript_selinux.so.
31 Jan 2004; Chris PeBenito <pebenito@gentoo.org> files/rlpkg:
Switch to portageq from inline python. Add missing quotes for completeness.
diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.4-r1 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.4-r1
new file mode 100644
index 000000000000..37d4748f8ab2
--- /dev/null
+++ b/sys-apps/policycoreutils/files/digest-policycoreutils-1.4-r1
@@ -0,0 +1,2 @@
+MD5 c047074b07068e979274ab13a7dfbc7d policycoreutils-1.4.tgz 32204
+MD5 7745af898c624e8d9c5080da4c671957 policycoreutils-extra-1.0.tar.bz2 5949
diff --git a/sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild b/sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild
new file mode 100644
index 000000000000..fb40bfef35df
--- /dev/null
+++ b/sys-apps/policycoreutils/policycoreutils-1.4-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# 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.1 2004/02/10 03:55:05 pebenito Exp $
+
+IUSE="build"
+
+EXTRAS_VER="1.0"
+
+DESCRIPTION="SELinux core utilites"
+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
+ sys-devel/gettext
+ !build? ( sys-libs/pam )"
+
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P}
+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
+}