summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2003-08-04 04:31:55 +0000
committerChris PeBenito <pebenito@gentoo.org>2003-08-04 04:31:55 +0000
commit87761304aecfe24a50e384baceeb8128e4fd968f (patch)
treefa24a7b4e62afc6f270a3a743e1f4b00b525bfc0 /sys-apps/policycoreutils
parentinitial commit (diff)
downloadgentoo-2-87761304aecfe24a50e384baceeb8128e4fd968f.tar.gz
gentoo-2-87761304aecfe24a50e384baceeb8128e4fd968f.tar.bz2
gentoo-2-87761304aecfe24a50e384baceeb8128e4fd968f.zip
initial commit
Diffstat (limited to 'sys-apps/policycoreutils')
-rw-r--r--sys-apps/policycoreutils/ChangeLog10
-rw-r--r--sys-apps/policycoreutils/Manifest5
-rw-r--r--sys-apps/policycoreutils/files/digest-policycoreutils-1.01
-rw-r--r--sys-apps/policycoreutils/files/policycoreutils-1.0-gentoo.diff48
-rw-r--r--sys-apps/policycoreutils/metadata.xml9
-rw-r--r--sys-apps/policycoreutils/policycoreutils-1.0.ebuild43
6 files changed, 115 insertions, 1 deletions
diff --git a/sys-apps/policycoreutils/ChangeLog b/sys-apps/policycoreutils/ChangeLog
new file mode 100644
index 000000000000..9141decf445b
--- /dev/null
+++ b/sys-apps/policycoreutils/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-apps/policycoreutils
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.1 2003/08/04 04:31:34 pebenito Exp $
+
+*policycoreutils-1.0 (03 Aug 2003)
+
+ 03 Aug 2003; Chris PeBenito <pebenito@gentoo.org> metadata.xml,
+ policycoreutils-1.0.ebuild, files/policycoreutils-1.0-gentoo.diff:
+ Initial commit
+
diff --git a/sys-apps/policycoreutils/Manifest b/sys-apps/policycoreutils/Manifest
index 900416d11ba2..ab8f3a82a36a 100644
--- a/sys-apps/policycoreutils/Manifest
+++ b/sys-apps/policycoreutils/Manifest
@@ -1,2 +1,5 @@
-MD5 548c21fbd3fc5fe72e26dbaa7ce1a099 policycoreutils-1.0.ebuild 727
+MD5 107039bfb7b4e4512f10b946948650d8 policycoreutils-1.0.ebuild 879
+MD5 fd55bafe00aa7a8e91b2d172642b0ef4 metadata.xml 268
+MD5 ae734e416fd50b4e3a5b065d7f3cac2e ChangeLog 421
MD5 a70bb20f56dfca63475bea2bc811927a files/digest-policycoreutils-1.0 67
+MD5 6d4df7058894970c15d4066f7ad88c29 files/policycoreutils-1.0-gentoo.diff 1818
diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.0 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.0
new file mode 100644
index 000000000000..a6dc6dc0a999
--- /dev/null
+++ b/sys-apps/policycoreutils/files/digest-policycoreutils-1.0
@@ -0,0 +1 @@
+MD5 8717fd6f3106db74a780a9e1e6d3e971 policycoreutils-1.0.tgz 28018
diff --git a/sys-apps/policycoreutils/files/policycoreutils-1.0-gentoo.diff b/sys-apps/policycoreutils/files/policycoreutils-1.0-gentoo.diff
new file mode 100644
index 000000000000..7bc7a8d8a99d
--- /dev/null
+++ b/sys-apps/policycoreutils/files/policycoreutils-1.0-gentoo.diff
@@ -0,0 +1,48 @@
+diff -urN policycoreutils-1.0.orig/load_policy/Makefile policycoreutils-1.0/load_policy/Makefile
+--- policycoreutils-1.0.orig/load_policy/Makefile 2003-07-07 07:55:00.000000000 -0500
++++ policycoreutils-1.0/load_policy/Makefile 2003-08-03 20:51:09.000000000 -0500
+@@ -2,7 +2,7 @@
+ PREFIX ?= ${DESTDIR}/usr
+ SBINDIR ?= $(PREFIX)/sbin
+
+-CFLAGS = -Wall
++CFLAGS = -Wall $(EXTRA_CFLAGS)
+ LDLIBS += -lselinux
+
+ # Build static so that we can put it on an initrd.
+diff -urN policycoreutils-1.0.orig/newrole/Makefile policycoreutils-1.0/newrole/Makefile
+--- policycoreutils-1.0.orig/newrole/Makefile 2003-07-07 07:55:01.000000000 -0500
++++ policycoreutils-1.0/newrole/Makefile 2003-08-03 20:51:27.000000000 -0500
+@@ -4,7 +4,7 @@
+ MANDIR ?= $(PREFIX)/share/man
+ ETCDIR ?= $(DESTDIR)/etc
+
+-CFLAGS = -Wall
++CFLAGS = -Wall $(EXTRA_CFLAGS)
+ override CFLAGS += -DUSE_PAM
+ LDLIBS += -lselinux -lattr -ldl -lpam -lpam_misc
+
+diff -urN policycoreutils-1.0.orig/run_init/Makefile policycoreutils-1.0/run_init/Makefile
+--- policycoreutils-1.0.orig/run_init/Makefile 2003-07-07 07:55:02.000000000 -0500
++++ policycoreutils-1.0/run_init/Makefile 2003-08-03 20:54:09.000000000 -0500
+@@ -4,7 +4,7 @@
+ MANDIR ?= $(PREFIX)/share/man
+ ETCDIR ?= $(DESTDIR)/etc
+
+-CFLAGS = -Wall
++CFLAGS = -Wall $(EXTRA_CFLAGS)
+ override CFLAGS += -DUSE_PAM
+ LDLIBS += -lselinux -lattr -ldl -lpam -lpam_misc
+
+diff -urN policycoreutils-1.0.orig/setfiles/Makefile policycoreutils-1.0/setfiles/Makefile
+--- policycoreutils-1.0.orig/setfiles/Makefile 2003-07-07 07:55:03.000000000 -0500
++++ policycoreutils-1.0/setfiles/Makefile 2003-08-03 20:54:38.000000000 -0500
+@@ -3,7 +3,7 @@
+ SBINDIR ?= $(PREFIX)/sbin
+ MANDIR = $(PREFIX)/share/man
+
+-CFLAGS = -Wall
++CFLAGS = -Wall $(EXTRA_CFLAGS)
+ override CFLAGS += -D_FILE_OFFSET_BITS=64
+ LDLIBS += -lselinux -lattr
+
diff --git a/sys-apps/policycoreutils/metadata.xml b/sys-apps/policycoreutils/metadata.xml
new file mode 100644
index 000000000000..9508cb1dc25b
--- /dev/null
+++ b/sys-apps/policycoreutils/metadata.xml
@@ -0,0 +1,9 @@
+<pkgmetadata>
+<herd>hardened</herd>
+<maintainer>
+ <email>pebenito@gentoo.org</email>
+ <name>Chris PeBenito</name>
+ <description>Primary Maintainer</description>
+</maintainer>
+<longdescription>SELinux core policy utilities and userland</longdescription>
+</pkgmetadata>
diff --git a/sys-apps/policycoreutils/policycoreutils-1.0.ebuild b/sys-apps/policycoreutils/policycoreutils-1.0.ebuild
new file mode 100644
index 000000000000..1b955da30475
--- /dev/null
+++ b/sys-apps/policycoreutils/policycoreutils-1.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.0.ebuild,v 1.1 2003/08/04 04:31:34 pebenito Exp $
+
+IUSE=""
+
+DESCRIPTION="SELinux core utilites"
+HOMEPAGE="http://www.nsa.gov/selinux"
+SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc"
+
+DEPEND="sys-libs/libselinux
+ sys-apps/attr
+ sys-libs/pam"
+
+RDEPEND="${DEPEND}
+ sys-apps/checkpolicy
+ sec-policy/selinux-base-policy"
+
+S=${WORKDIR}/${P}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_compile() {
+ SUBDIRS="load_policy newrole run_init setfiles"
+
+ for i in ${SUBDIRS}; do
+ einfo "Compiling ${i}"
+ cd ${S}/${i}
+ emake EXTRA_CFLAGS="${CFLAGS}"
+ done
+}
+
+src_install() {
+ make DESTDIR="${D}" install
+}