diff options
-rw-r--r-- | sys-apps/checkpolicy/ChangeLog | 7 | ||||
-rw-r--r-- | sys-apps/checkpolicy/checkpolicy-1.8.ebuild | 33 | ||||
-rw-r--r-- | sys-apps/checkpolicy/files/digest-checkpolicy-1.8 | 1 | ||||
-rw-r--r-- | sys-apps/policycoreutils/ChangeLog | 8 | ||||
-rw-r--r-- | sys-apps/policycoreutils/files/digest-policycoreutils-1.8 | 2 | ||||
-rw-r--r-- | sys-apps/policycoreutils/policycoreutils-1.8.ebuild | 68 |
6 files changed, 117 insertions, 2 deletions
diff --git a/sys-apps/checkpolicy/ChangeLog b/sys-apps/checkpolicy/ChangeLog index 6e77e970d183..fed2469f9839 100644 --- a/sys-apps/checkpolicy/ChangeLog +++ b/sys-apps/checkpolicy/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-apps/checkpolicy # Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.14 2004/02/24 22:09:45 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/ChangeLog,v 1.15 2004/03/13 03:52:01 pebenito Exp $ + +*checkpolicy-1.8 (12 Mar 2004) + + 12 Mar 2004; Chris PeBenito <pebenito@gentoo.org> checkpolicy-1.8.ebuild: + New upstream release. *checkpolicy-1.6 (24 Feb 2004) diff --git a/sys-apps/checkpolicy/checkpolicy-1.8.ebuild b/sys-apps/checkpolicy/checkpolicy-1.8.ebuild new file mode 100644 index 000000000000..c25cba886260 --- /dev/null +++ b/sys-apps/checkpolicy/checkpolicy-1.8.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-apps/checkpolicy/checkpolicy-1.8.ebuild,v 1.1 2004/03/13 03:52:01 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" + +DEPEND="sys-devel/flex + sys-devel/bison" + +RDEPEND="sec-policy/selinux-base-policy" + +S=${WORKDIR}/${P} + +src_unpack() { + unpack ${A} + sed -i -e "s:-Wall:-Wall ${CFLAGS}:g" ${S}/Makefile +} + +src_compile() { + cd ${S} + emake YACC="bison -y" || die +} + +src_install() { + make DESTDIR="${D}" install +} diff --git a/sys-apps/checkpolicy/files/digest-checkpolicy-1.8 b/sys-apps/checkpolicy/files/digest-checkpolicy-1.8 new file mode 100644 index 000000000000..fc52822133d8 --- /dev/null +++ b/sys-apps/checkpolicy/files/digest-checkpolicy-1.8 @@ -0,0 +1 @@ +MD5 44993d2c0d986d7ca289954a33cc5a84 checkpolicy-1.8.tgz 86147 diff --git a/sys-apps/policycoreutils/ChangeLog b/sys-apps/policycoreutils/ChangeLog index 203165bd463d..8e5e87d029be 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.18 2004/02/24 22:16:25 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.19 2004/03/13 03:56:58 pebenito Exp $ + +*policycoreutils-1.8 (12 Mar 2004) + + 12 Mar 2004; Chris PeBenito <pebenito@gentoo.org> + policycoreutils-1.8.ebuild: + New upstream release. *policycoreutils-1.6 (24 Feb 2004) diff --git a/sys-apps/policycoreutils/files/digest-policycoreutils-1.8 b/sys-apps/policycoreutils/files/digest-policycoreutils-1.8 new file mode 100644 index 000000000000..07f9062c1286 --- /dev/null +++ b/sys-apps/policycoreutils/files/digest-policycoreutils-1.8 @@ -0,0 +1,2 @@ +MD5 a0675f8049f06a9c11f080951da57461 policycoreutils-1.8.tgz 34967 +MD5 7745af898c624e8d9c5080da4c671957 policycoreutils-extra-1.0.tar.bz2 5949 diff --git a/sys-apps/policycoreutils/policycoreutils-1.8.ebuild b/sys-apps/policycoreutils/policycoreutils-1.8.ebuild new file mode 100644 index 000000000000..b9e6ea062c47 --- /dev/null +++ b/sys-apps/policycoreutils/policycoreutils-1.8.ebuild @@ -0,0 +1,68 @@ +# 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.8.ebuild,v 1.1 2004/03/13 03:56:58 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} + + # 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." +} |