summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-04 21:29:56 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-04 21:29:56 +0000
commit3a9cc87dfe0f0e81548e3561a0bbf5b55e815e0e (patch)
treeb2ece97d1a943c4e631f33a1ac0247042aa1be8f /sys-apps/netboot-base
parentadded examples useflag to dev-java/jmock (diff)
downloadgentoo-2-3a9cc87dfe0f0e81548e3561a0bbf5b55e815e0e.tar.gz
gentoo-2-3a9cc87dfe0f0e81548e3561a0bbf5b55e815e0e.tar.bz2
gentoo-2-3a9cc87dfe0f0e81548e3561a0bbf5b55e815e0e.zip
touchups
Diffstat (limited to 'sys-apps/netboot-base')
-rw-r--r--sys-apps/netboot-base/netboot-base-20041007.ebuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys-apps/netboot-base/netboot-base-20041007.ebuild b/sys-apps/netboot-base/netboot-base-20041007.ebuild
index 3b2579ff4a04..752745be8224 100644
--- a/sys-apps/netboot-base/netboot-base-20041007.ebuild
+++ b/sys-apps/netboot-base/netboot-base-20041007.ebuild
@@ -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-20041007.ebuild,v 1.2 2004/10/07 21:18:54 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/netboot-base/netboot-base-20041007.ebuild,v 1.3 2005/01/04 21:29:56 vapier Exp $
inherit gcc
@@ -19,24 +19,25 @@ DEPEND=""
S=${WORKDIR}
pkg_setup() {
- [ "${ROOT}" == "/" ] && die "refusing to emerge to /"
+ [[ ${ROOT} = "/" ]] && die "refusing to emerge to /"
}
src_compile() {
- $(gcc-getCC) ${CFLAGS} src/consoletype.c -o sbin/consoletype || die
- strip --strip-unneeded sbin/consoletype
+ $(tc-getCC) ${CFLAGS} src/consoletype.c -o sbin/consoletype || die
+ $(tc-getSTRIP) --strip-unneeded sbin/consoletype
}
src_install() {
- [ "${ROOT}" == "/" ] && die "refusing to install to /"
+ [[ ${ROOT} = "/" ]] && die "refusing to install to /"
rm -r src
cp -r * ${D}/
}
pkg_postinst() {
- cd ${ROOT}
+ cd "${ROOT}"
mkdir -p bin dev etc lib mnt proc sbin var
mkdir -p var/log
mkdir -p mnt/gentoo
ln -s . usr
+ ln -s . share
}