diff options
Diffstat (limited to 'sys-apps/policycoreutils/policycoreutils-1.30.30.ebuild')
-rw-r--r-- | sys-apps/policycoreutils/policycoreutils-1.30.30.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys-apps/policycoreutils/policycoreutils-1.30.30.ebuild b/sys-apps/policycoreutils/policycoreutils-1.30.30.ebuild index 2fc15c5f0e76..9c870ea47336 100644 --- a/sys-apps/policycoreutils/policycoreutils-1.30.30.ebuild +++ b/sys-apps/policycoreutils/policycoreutils-1.30.30.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.30.30.ebuild,v 1.3 2006/10/09 23:38:08 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.30.30.ebuild,v 1.4 2006/10/24 00:12:29 pebenito Exp $ IUSE="nls pam" @@ -22,7 +22,6 @@ SLOT="0" KEYWORDS="alpha amd64 mips ppc sparc x86" RDEPEND=">=sys-libs/libselinux-${SELNX_VER} - >=sys-libs/glibc-2.4 pam? ( sys-libs/pam ) =sys-libs/libsemanage-${SEMNG_VER}*" @@ -67,6 +66,11 @@ src_unpack() { sed -i -e '/fixfiles/d' ${S}/scripts/Makefile \ || die "fixfiles sed 2 failed" + if ! has_version '>=sys-libs/glibc-2.4'; then + ewarn "Glibc 2.4 or newer is not available. Disabling restorecond." + sed -i -e '/^SUBDIRS/s/restorecond//' ${S}/Makefile + fi + if ! useq pam; then # disable pam sed -i -e s/-lpam/-lcrypt/ -e s/-lpam_misc// -e s/-DUSE_PAM// \ |