# ChangeLog for sys-apps/policycoreutils
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.36 2004/11/15 20:47:39 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/ChangeLog,v 1.37 2004/11/23 00:42:08 pebenito Exp $
+
+ 22 Nov 2004; Chris PeBenito <pebenito@gentoo.org>
+ policycoreutils-1.18.ebuild:
+ Ensure a few dirs and perms during stage1 build.
15 Nov 2004; Chris PeBenito <pebenito@gentoo.org>
policycoreutils-1.18.ebuild:
-MD5 9f23226da146d66f3e3f828b1ea4d059 ChangeLog 5659
+MD5 0010091d172d2328cc40e7ffea493b77 ChangeLog 5794
MD5 2eeb1df30e87ba2861eddbdc34a48bb8 metadata.xml 836
MD5 6ace8ffd9877d971422974d8a7a64252 policycoreutils-1.16.ebuild 1772
-MD5 88467f654dfd2bffa5d3f5c964256a7d policycoreutils-1.18.ebuild 1783
+MD5 538e0850edbda5a8eb2bf25c3d005625 policycoreutils-1.18.ebuild 1972
MD5 b3fb897ca820d6d94105ecf7103cab70 files/digest-policycoreutils-1.16 144
MD5 308dfedc40a02c48b8cc5118feb8f9ef files/policycoreutils-1.16-genhomedircon-compat.diff 1744
MD5 2dbe913419502995a710560072ca8517 files/digest-policycoreutils-1.18 145
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.18.ebuild,v 1.2 2004/11/15 20:47:39 pebenito Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/policycoreutils/policycoreutils-1.18.ebuild,v 1.3 2004/11/23 00:42:08 pebenito Exp $
IUSE="build"
inherit eutils
EXTRAS_VER="1.9"
+SEPOL_VER="1.2"
DESCRIPTION="SELinux core utilities"
HOMEPAGE="http://www.nsa.gov/selinux"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
DEPEND=">=sys-libs/libselinux-${PV}
- >=sys-libs/libsepol-1.2
+ >=sys-libs/libsepol-${SEPOL_VER}
sys-devel/gettext
- !build? ( sys-libs/pam )"
+ !build? ( sys-libs/pam )
+ build? ( sys-apps/baselayout )"
S2=${WORKDIR}/policycoreutils-extra
cd ${S}
- # add compatibility for number of genhomedircon command line args
-# epatch ${FILESDIR}/policycoreutils-1.16-genhomedircon-compat.diff
-
# dont install fixfiles cron script
sed -i -e '/^all/s/fixfiles//' ${S}/scripts/Makefile \
|| die "fixfiles sed 1 failed"
make DESTDIR="${D}" -C ${S2} install || die
fi
}
+
+pkg_postinst() {
+ if use build; then
+ # need to ensure these
+ mkdir -p ${ROOT}/selinux
+ touch ${ROOT}/selinux/.keep
+ mkdir -p ${ROOT}/sys
+ touch ${ROOT}/sys/.keep
+ mkdir -p ${ROOT}/dev/pts
+ touch ${ROOT}/dev/pts/.keep
+ chmod 0666 ${ROOT}/dev/{ptmx,tty}
+ fi
+}