updated
This commit is contained in:
parent
ce5e98b4a4
commit
810d86dd7e
123 changed files with 8 additions and 13 deletions
13
files/pkgin
13
files/pkgin
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
trap "exit 1" SIGHUP SIGINT SIGQUIT SIGTERM
|
trap "exit 1" SIGHUP SIGINT SIGQUIT SIGTERM
|
||||||
|
|
||||||
REPO="/usr/ports/core"
|
PORT="/usr/ports"
|
||||||
|
|
||||||
while [ $1 ]; do
|
while [ $1 ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
|
@ -31,18 +31,13 @@ for p in ${PKG[@]}; do
|
||||||
echo "Package '$p' is installed."
|
echo "Package '$p' is installed."
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
PKGFOUND=no
|
if [ -f $PORT/$p/Pkgfile ]; then
|
||||||
for r in $REPO; do
|
cd $PORT/$p &>/dev/null
|
||||||
if [ -f $r/$p/Pkgfile ]; then
|
|
||||||
PKGFOUND=yes
|
|
||||||
cd $r/$p &>/dev/null
|
|
||||||
pkgmk ${PKGMK_CMD[@]} || exit $?
|
pkgmk ${PKGMK_CMD[@]} || exit $?
|
||||||
[ -x bootstrap-post-install ] && ./bootstrap-post-install
|
[ -x bootstrap-post-install ] && ./bootstrap-post-install
|
||||||
[ -x post-install ] && ./post-install
|
[ -x post-install ] && ./post-install
|
||||||
cd - &>/dev/null
|
cd - &>/dev/null
|
||||||
fi
|
else
|
||||||
done
|
|
||||||
if [ "$PKGFOUND" = "no" ]; then
|
|
||||||
echo "Port '$p' not found."
|
echo "Port '$p' not found."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue