summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris PeBenito <pebenito@gentoo.org>2004-11-14 19:02:15 +0000
committerChris PeBenito <pebenito@gentoo.org>2004-11-14 19:02:15 +0000
commite7c6b43061a77020dcdc60e505b653fc72d1072f (patch)
tree023c477c6dbb72f1dfe39788ace8b28daf1e713a /sys-apps/checkpolicy
parentadd mls to checkpolicy and libsepol (diff)
downloadgentoo-2-e7c6b43061a77020dcdc60e505b653fc72d1072f.tar.gz
gentoo-2-e7c6b43061a77020dcdc60e505b653fc72d1072f.tar.bz2
gentoo-2-e7c6b43061a77020dcdc60e505b653fc72d1072f.zip
new upstream release
Diffstat (limited to 'sys-apps/checkpolicy')
-rw-r--r--sys-apps/checkpolicy/ChangeLog8
-rw-r--r--sys-apps/checkpolicy/checkpolicy-1.14.ebuild31
-rw-r--r--sys-apps/checkpolicy/checkpolicy-1.18.ebuild51
-rw-r--r--sys-apps/checkpolicy/files/digest-checkpolicy-1.141
-rw-r--r--sys-apps/checkpolicy/files/digest-checkpolicy-1.181
5 files changed, 59 insertions, 33 deletions
diff --git a/sys-apps/checkpolicy/ChangeLog b/sys-apps/checkpolicy/ChangeLog
index 4e6a512e0f87..ec716e1dc372 100644
--- a/sys-apps/checkpolicy/ChangeLog
+++ b/sys-apps/checkpolicy/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-apps/checkpolicy
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.22 2004/09/16 00:19:54 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.23 2004/11/14 19:02:15 pebenito Exp $
+
+*checkpolicy-1.18 (14 Nov 2004)
+
+ 14 Nov 2004; Chris PeBenito <pebenito@gentoo.org>
+ +checkpolicy-1.18.ebuild:
+ New upstream release.
15 Sep 2004; Chris PeBenito <pebenito@gentoo.org> checkpolicy-1.16.ebuild:
Fix Makefile for multiple compile jobs.
diff --git a/sys-apps/checkpolicy/checkpolicy-1.14.ebuild b/sys-apps/checkpolicy/checkpolicy-1.14.ebuild
deleted file mode 100644
index aa323d800361..000000000000
--- a/sys-apps/checkpolicy/checkpolicy-1.14.ebuild
+++ /dev/null
@@ -1,31 +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/checkpolicy/checkpolicy-1.14.ebuild,v 1.3 2004/09/20 02:08:14 pebenito Exp $
-
-IUSE=""
-
-DESCRIPTION="SELinux policy compiler"
-HOMEPAGE="http://www.nsa.gov/selinux"
-SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz"
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="x86 ppc sparc amd64"
-
-DEPEND="sys-devel/flex
- sys-devel/bison"
-
-RDEPEND="sec-policy/selinux-base-policy"
-
-src_unpack() {
- unpack ${A}
- sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" -e 's/$(LIBS)/$(LIBS) $(LDFLAGS)/' ${S}/Makefile
-}
-
-src_compile() {
- cd ${S}
- emake YACC="bison -y" || die
-}
-
-src_install() {
- make DESTDIR="${D}" install
-}
diff --git a/sys-apps/checkpolicy/checkpolicy-1.18.ebuild b/sys-apps/checkpolicy/checkpolicy-1.18.ebuild
new file mode 100644
index 000000000000..e1c8ab32dbaf
--- /dev/null
+++ b/sys-apps/checkpolicy/checkpolicy-1.18.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-1.18.ebuild,v 1.1 2004/11/14 19:02:15 pebenito Exp $
+
+IUSE="mls"
+
+inherit eutils
+
+DESCRIPTION="SELinux policy compiler"
+HOMEPAGE="http://www.nsa.gov/selinux"
+SRC_URI="http://www.nsa.gov/selinux/archives/${P}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~sparc ~amd64"
+
+DEPEND=">=sys-libs/libsepol-1.2
+ sys-devel/flex
+ sys-devel/bison"
+
+RDEPEND="sec-policy/selinux-base-policy"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" -e 's/$(LIBS)/$(LIBS) $(LDFLAGS)/' ${S}/Makefile
+ sed -i -e '/^lex\.yy\.c/s/\.l/\.l y\.tab\.c/' ${S}/Makefile
+
+ epatch ${FILESDIR}/checkpolicy-1.16-no-netlink-warn.diff
+
+ # MLS support is experimental!
+ if use mls; then
+ sed -i -e '/^MLS/s/n/y/' ${S}/Makefile \
+ || die "MLS config failed."
+ sed -i -e 's/-mls (/ (mls /' ${S}/checkpolicy.c \
+ || die "MLS output failed."
+ fi
+}
+
+src_compile() {
+ cd ${S}
+ emake YACC="bison -y" || die
+}
+
+src_install() {
+ make DESTDIR="${D}" install
+}
+
+pkg_postinst() {
+ einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy."
+}
diff --git a/sys-apps/checkpolicy/files/digest-checkpolicy-1.14 b/sys-apps/checkpolicy/files/digest-checkpolicy-1.14
deleted file mode 100644
index cf95083c352f..000000000000
--- a/sys-apps/checkpolicy/files/digest-checkpolicy-1.14
+++ /dev/null
@@ -1 +0,0 @@
-MD5 f2e3af4cc816738496fab3f7c6ba656d checkpolicy-1.14.tgz 89334
diff --git a/sys-apps/checkpolicy/files/digest-checkpolicy-1.18 b/sys-apps/checkpolicy/files/digest-checkpolicy-1.18
new file mode 100644
index 000000000000..14beba4019e0
--- /dev/null
+++ b/sys-apps/checkpolicy/files/digest-checkpolicy-1.18
@@ -0,0 +1 @@
+MD5 06c554f6b3c9132346d5076fd3212df8 checkpolicy-1.18.tgz 44850