Add PKG_PATH so packages can be found automatically (not sure what caused
this to break). Support both .tgz and .tbz packages.
This commit is contained in:
parent
b2abae3101
commit
d50285d854
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=66385
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue