cleanup plus stage1 stuff
authorChris PeBenito <pebenito@gentoo.org>
Tue, 23 Nov 2004 00:42:08 +0000 (00:42 +0000)
committerChris PeBenito <pebenito@gentoo.org>
Tue, 23 Nov 2004 00:42:08 +0000 (00:42 +0000)
sys-apps/policycoreutils/ChangeLog
sys-apps/policycoreutils/Manifest
sys-apps/policycoreutils/policycoreutils-1.18.ebuild

index 4a655e11a172315edf320777a709b05ef845face..7f600ecafa75517e0dd4d5b5e84c2d1d9b41d31b 100644 (file)
@@ -1,6 +1,10 @@
 # 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:
index e81f23600c6bd97299ebbe7baf827465c02de959..02ef145b59d138ac412b18d4664fd9356d8e877c 100644 (file)
@@ -1,7 +1,7 @@
-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
index 3172897176b1aa5fb5dfbeb168890562bfcbf291..117ab67cbb6a8d21389abbd829e48fdaba837b9b 100644 (file)
@@ -1,12 +1,13 @@
 # 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"
@@ -17,9 +18,10 @@ SLOT="0"
 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
 
@@ -28,9 +30,6 @@ src_unpack() {
 
        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"
@@ -67,3 +66,16 @@ src_install() {
                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
+}