diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2008-10-03 03:31:56 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2008-10-03 03:31:56 +0000 |
commit | 5db251da1159b42955b50d32d843ed972eec27fc (patch) | |
tree | 55458666cd131f66d2f6c9ba66226023793962d7 /sys-apps/checkpolicy | |
parent | Initial commit of 2.0 libsemanage. (diff) | |
download | gentoo-2-5db251da1159b42955b50d32d843ed972eec27fc.tar.gz gentoo-2-5db251da1159b42955b50d32d843ed972eec27fc.tar.bz2 gentoo-2-5db251da1159b42955b50d32d843ed972eec27fc.zip |
Initial commit of checkpolicy 2.0.
(Portage version: 2.2_rc11/cvs/Linux 2.6.24-gentoo-r3 x86_64)
Diffstat (limited to 'sys-apps/checkpolicy')
-rw-r--r-- | sys-apps/checkpolicy/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/checkpolicy/checkpolicy-2.0.16.ebuild | 48 |
2 files changed, 55 insertions, 1 deletions
diff --git a/sys-apps/checkpolicy/ChangeLog b/sys-apps/checkpolicy/ChangeLog index dcb3e8b142e0..284e93a7a628 100644 --- a/sys-apps/checkpolicy/ChangeLog +++ b/sys-apps/checkpolicy/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-apps/checkpolicy # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.49 2008/09/10 18:06:49 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.50 2008/10/03 03:31:56 pebenito Exp $ + +*checkpolicy-2.0.16 (03 Oct 2008) + + 03 Oct 2008; Chris PeBenito <pebenito@gentoo.org> + +checkpolicy-2.0.16.ebuild: + Initial commit of checkpolicy 2.0. 10 Sep 2008; Chris PeBenito <pebenito@gentoo.org> checkpolicy-1.34.4.ebuild: diff --git a/sys-apps/checkpolicy/checkpolicy-2.0.16.ebuild b/sys-apps/checkpolicy/checkpolicy-2.0.16.ebuild new file mode 100644 index 000000000000..b120d7cde73f --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-2.0.16.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-2.0.16.ebuild,v 1.1 2008/10/03 03:31:56 pebenito Exp $ + +IUSE="debug" + +inherit eutils + +SEMNG_VER="2.0" + +# BUGFIX_PATCH="${FILESDIR}/checkpolicy-1.30.4.diff" + +DESCRIPTION="SELinux policy compiler" +HOMEPAGE="http://userspace.selinuxproject.org" +SRC_URI="http://userspace.selinuxproject.org/releases/current/devel/${P}.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~mips ~ppc ~sparc ~x86" + +DEPEND="=sys-libs/libsemanage-${SEMNG_VER}* + sys-devel/flex + sys-devel/bison" + +RDEPEND="=sys-libs/libsemanage-${SEMNG_VER}*" + +src_unpack() { + unpack ${A} + cd ${S} + + [ ! -z "${BUGFIX_PATCH}" ] && epatch "${BUGFIX_PATCH}" +} + +src_compile() { + cd ${S} + emake YACC="bison -y" || die +} + +src_install() { + make DESTDIR="${D}" install + + if useq debug; then + dobin ${S}/test/{dismod,dispol} + fi +} + +pkg_postinst() { + einfo "This checkpolicy can compile version `checkpolicy -V |cut -f 1 -d ' '` policy." +} |