updated
This commit is contained in:
parent
ce5e98b4a4
commit
810d86dd7e
123 changed files with 8 additions and 13 deletions
21
files/pkgin
21
files/pkgin
|
@ -11,7 +11,7 @@
|
|||
|
||||
trap "exit 1" SIGHUP SIGINT SIGQUIT SIGTERM
|
||||
|
||||
REPO="/usr/ports/core"
|
||||
PORT="/usr/ports"
|
||||
|
||||
while [ $1 ]; do
|
||||
case $1 in
|
||||
|
@ -31,18 +31,13 @@ for p in ${PKG[@]}; do
|
|||
echo "Package '$p' is installed."
|
||||
continue
|
||||
fi
|
||||
PKGFOUND=no
|
||||
for r in $REPO; do
|
||||
if [ -f $r/$p/Pkgfile ]; then
|
||||
PKGFOUND=yes
|
||||
cd $r/$p &>/dev/null
|
||||
pkgmk ${PKGMK_CMD[@]} || exit $?
|
||||
[ -x bootstrap-post-install ] && ./bootstrap-post-install
|
||||
[ -x post-install ] && ./post-install
|
||||
cd - &>/dev/null
|
||||
fi
|
||||
done
|
||||
if [ "$PKGFOUND" = "no" ]; then
|
||||
if [ -f $PORT/$p/Pkgfile ]; then
|
||||
cd $PORT/$p &>/dev/null
|
||||
pkgmk ${PKGMK_CMD[@]} || exit $?
|
||||
[ -x bootstrap-post-install ] && ./bootstrap-post-install
|
||||
[ -x post-install ] && ./post-install
|
||||
cd - &>/dev/null
|
||||
else
|
||||
echo "Port '$p' not found."
|
||||
exit 1
|
||||
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