summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2004-05-14 05:21:14 +0000
committerChris PeBenito <pebenito@gentoo.org>2004-05-14 05:21:14 +0000
commit11c923059f4509e47c87f64d967979782adb9d0e (patch)
treef1140d1a30c36ce487ca2b504d7a164409772cd8 /sys-apps
parentgcc-3.4 fix (diff)
downloadgentoo-2-11c923059f4509e47c87f64d967979782adb9d0e.tar.gz
gentoo-2-11c923059f4509e47c87f64d967979782adb9d0e.tar.bz2
gentoo-2-11c923059f4509e47c87f64d967979782adb9d0e.zip
new upstream release
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/policycoreutils/ChangeLog8
-rw-r--r--sys-apps/policycoreutils/files/digest-policycoreutils-1.122
-rw-r--r--sys-apps/policycoreutils/policycoreutils-1.12.ebuild70
3 files changed, 79 insertions, 1 deletions
diff --git a/sys-apps/policycoreutils/ChangeLog b/sys-apps/policycoreutils/ChangeLog
index cd25937613c1..24f9cce3a2ad 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.24 2004/04/28 21:28:40 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.25 2004/05/14 05:21:14 pebenito Exp $
+
+*policycoreutils-1.12 (14 May 2004)
+
+ 14 May 2004; Chris PeBenito <pebenito@gentoo.org>
+ +policycoreutils-1.12.ebuild:
+ New upstream release.
*policycoreutils-1.10-r1 (28 Apr 2004)
diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.12 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.12
new file mode 100644
index 000000000000..257aa77d5ef0
--- /dev/null
+++ b/sys-apps/policycoreutils/files/digest-policycoreutils-1.12
@@ -0,0 +1,2 @@
+MD5 db69756ca36d460ebe2fc0fd7cdbf2b9 policycoreutils-1.12.tgz 40518
+MD5 43b110a81cd266e2724aa11bcdbab9b0 policycoreutils-extra-1.4.tar.bz2 8501
diff --git a/sys-apps/policycoreutils/policycoreutils-1.12.ebuild b/sys-apps/policycoreutils/policycoreutils-1.12.ebuild
new file mode 100644
index 000000000000..b729c0ac79b8
--- /dev/null
+++ b/sys-apps/policycoreutils/policycoreutils-1.12.ebuild
@@ -0,0 +1,70 @@
+# 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.12.ebuild,v 1.1 2004/05/14 05:21:14 pebenito Exp $
+
+IUSE="build"
+
+inherit eutils
+
+EXTRAS_VER="1.4"
+
+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-${PV}
+ sys-devel/gettext
+ !build? ( sys-libs/pam )"
+
+S2=${WORKDIR}/policycoreutils-extra
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/policycoreutils-1.10-genhomedircon-reverse.diff
+
+ # Change script paths POLICYDIR
+ sed -i -e "s:/etc/security/selinux/src/policy/:${POLICYDIR}:g" ${S}/scripts/genhomedircon
+
+ # 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 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
+ fi
+}
+
+pkg_postinst() {
+ ewarn "WARNING: seinit is deprecated, and is no"
+ ewarn "longer installed. Please remove seinit from"
+ ewarn "your bootloader. The policy is now loaded"
+ ewarn "by init itself."
+}