aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-09-16 05:57:05 +0800
committerkris <kris@FreeBSD.org>2002-09-16 05:57:05 +0800
commit19f74c6c9d9aa29548b642550693a20c70b301f0 (patch)
treed7672479b01759e5e7a5e4b71106306ef4f37705 /Tools
parente5fd7cc0fa372a13024a80a29d20695f6e4c8379 (diff)
downloadfreebsd-ports-graphics-19f74c6c9d9aa29548b642550693a20c70b301f0.tar.gz
freebsd-ports-graphics-19f74c6c9d9aa29548b642550693a20c70b301f0.tar.zst
freebsd-ports-graphics-19f74c6c9d9aa29548b642550693a20c70b301f0.zip
Add PKG_PATH so packages can be found automatically (not sure what caused
this to break). Support both .tgz and .tbz packages.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/buildscript4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/portbuild/scripts/buildscript b/Tools/portbuild/scripts/buildscript
index c1d0ada3290..8f842e1dd53 100755
--- a/Tools/portbuild/scripts/buildscript
+++ b/Tools/portbuild/scripts/buildscript
@@ -13,11 +13,13 @@ if [ $phase = 1 ]; then
echo "build started at $(date)"
cd /tmp/depends
+ export PKG_PATH=/tmp/depends
if [ "$(echo $(/bin/ls | wc -c))" != 0 ]; then
echo "adding dependencies"
- for i in *.tgz; do
+ for i in *.t[bg]z; do
echo "pkg_add -f $i"
base=$(basename $i .tgz)
+ base=$(basename $base .tbz)
if pkg_info -q -e $base; then
echo "skipping $base, already added"
else