auto-create directories for us
authorMike Frysinger <vapier@gentoo.org>
Wed, 6 Oct 2004 21:19:31 +0000 (21:19 +0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 6 Oct 2004 21:19:31 +0000 (21:19 +0000)
sys-apps/netboot-base/Manifest
sys-apps/netboot-base/netboot-base-20041006.ebuild

index 60a5df3ab8d1f673aba26d1dac51e1b4d2a1c2e6..160902c192e059844b81d922d36f4dd0116e9676 100644 (file)
@@ -2,13 +2,13 @@
 Hash: SHA1
 
 MD5 454ecf5e0751c31ac8d3bbbde27d0d30 ChangeLog 280
-MD5 a3f943a043e5a75a8395647db7f494bf netboot-base-20041006.ebuild 590
+MD5 851339ab78e74bf21960f2efc2e7fcb9 netboot-base-20041006.ebuild 755
 MD5 607dc51d1f0bcebda4b8fe238ddb7734 metadata.xml 286
 MD5 bc230c15850cb66aee1f3015d6f88348 files/digest-netboot-base-20041006 72
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.9.10 (GNU/Linux)
 
-iD8DBQFBZDj+HTu7gpaalycRAoz8AJ9lCjUre6SKyMXDcUBDfEL3PB/EyACfSqmD
-ZhzSPo3RGHO4RVpEmmPnLAg=
-=dEUI
+iD8DBQFBZGF4HTu7gpaalycRAm0ZAJ9vkYxVUnBG8T5LmPK6sSllo1A9JQCgvw9E
+5D2YruaQEk0WQ8IIoPQEFDo=
+=TFCr
 -----END PGP SIGNATURE-----
index b32a51315ffcc04b197a4871d727ad5878afcbc9..dd004ad8db90ef437883ac756023b3181aef9caf 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/netboot-base/netboot-base-20041006.ebuild,v 1.1 2004/10/06 18:27:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/netboot-base/netboot-base-20041006.ebuild,v 1.2 2004/10/06 21:19:31 vapier Exp $
 
 DESCRIPTION="Baselayout for netboot systems"
 HOMEPAGE="http://www.gentoo.org/"
@@ -9,17 +9,25 @@ SRC_URI="http://dev.gentoo.org/~vapier/${P}.tar.bz2
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="x86"
-IUSE="netboot"
+KEYWORDS="arm hppa x86"
+IUSE=""
 
 DEPEND=""
 
 S=${WORKDIR}
 
 pkg_setup() {
-       use netboot || die "This is only for creating netboot images"
+       [ "${ROOT}" == "/" ] && die "refusing to emerge to /"
 }
 
 src_install() {
+       [ "${ROOT}" == "/" ] && die "refusing to install to /"
        cp -r * ${D}/
 }
+
+pkg_postinst() {
+       cd ${ROOT}
+       mkdir -p bin dev etc lib mnt proc sbin var
+       mkdir -p var/log
+       mkdir -p mnt/gentoo
+}