Updated to use an environmentvar (BUILDPKG_BASE) to locate the buildpkg root

This commit is contained in:
Tom G. Christensen 2003-07-29 19:25:49 +00:00
parent abb51c4da3
commit a1980fc242
4 changed files with 14 additions and 3 deletions

View File

@ -15,7 +15,7 @@ source[0]=$topdir-$version.tar.gz
patch[0]= patch[0]=
# Source function library # Source function library
. ${HOME}/buildpkg/scripts/buildpkg.functions . ${BUILDPKG_BASE}/scripts/buildpkg.functions
# Fill in pkginfo values if necessary # Fill in pkginfo values if necessary
# using pkgname,name,pkgcat,pkgvendor & pkgdesc # using pkgname,name,pkgcat,pkgvendor & pkgdesc

View File

@ -3,6 +3,14 @@
# #
# This file is designed to be sourced by pr. package buildscripts # This file is designed to be sourced by pr. package buildscripts
# #
# We rely on an environment variable called BUILDPKG_BASE to
# define the root of the buildpkg tree
#
buildpkgbase=${BUILDPKG_BASE-'x'}
if [ "$buildpkgbase" == "x" ]; then
echo "You *Must* define BUILDPKG_BASE environment variable"
exit 1
fi
# Variables that *must* be overridden pr. package # Variables that *must* be overridden pr. package
# They are used to construct paths and more so they # They are used to construct paths and more so they
@ -44,7 +52,7 @@ LS=/usr/bin/ls
EXPR=/usr/bin/expr EXPR=/usr/bin/expr
# Define defaults # Define defaults
buildpkgbase=${HOME}/buildpkg buildpkgbase=$BUILDPKG_BASE
stagedir=$buildpkgbase/$topdir/stage stagedir=$buildpkgbase/$topdir/stage
srcdir=$buildpkgbase/$topdir/src srcdir=$buildpkgbase/$topdir/src
patchdir=$srcdir # Allow the possibility of easily putting a load of patches in a different location patchdir=$srcdir # Allow the possibility of easily putting a load of patches in a different location

View File

@ -24,7 +24,7 @@ declare -a pctop # Array of toplevel product categories (image)
declare -a pdtop # Array of matching descriptions declare -a pdtop # Array of matching descriptions
#override defaults #override defaults
pkgprefix=sb_ pkgprefix=tgc_
pkgname=$pkgprefix$topdir pkgname=$pkgprefix$topdir
os=irix`$UNAME -r` os=irix`$UNAME -r`

View File

@ -1,4 +1,6 @@
bin sw.base keep root sys Base Software bin sw.base keep root sys Base Software
sbin sw.base 0744 root sys Base Software
etc sw.base keep root sys Base Software
libexec sw.base keep root sys Base Software libexec sw.base keep root sys Base Software
mips-sgi-irix5.3 sw.base keep root sys Base Software mips-sgi-irix5.3 sw.base keep root sys Base Software
mips-sgi-irix6.2 sw.base keep root sys Base Software mips-sgi-irix6.2 sw.base keep root sys Base Software
@ -8,3 +10,4 @@ info man.doc keep root sys Documentation
man man.manpages keep root sys Manpages man man.manpages keep root sys Manpages
doc man.doc keep root sys Documentation doc man.doc keep root sys Documentation
share sw.base keep root sys Base Software share sw.base keep root sys Base Software
ssl sw.base keep root sys Base Software