diff options
author | Chris PeBenito <pebenito@gentoo.org> | 2004-03-13 03:56:58 +0000 |
---|---|---|
committer | Chris PeBenito <pebenito@gentoo.org> | 2004-03-13 03:56:58 +0000 |
commit | 99e22d65241e6746e96da9d3f136a3936458cdf1 (patch) | |
tree | de2860415524762aa8821d9ccea83444d6eff3a6 /sys-apps/policycoreutils | |
parent | new upstream release (diff) | |
download | historical-99e22d65241e6746e96da9d3f136a3936458cdf1.tar.gz historical-99e22d65241e6746e96da9d3f136a3936458cdf1.tar.bz2 historical-99e22d65241e6746e96da9d3f136a3936458cdf1.zip |
new upstream release
Diffstat (limited to 'sys-apps/policycoreutils')
-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 |
3 files changed, 77 insertions, 1 deletions
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." +} |