Update package-release.sh
Use switch_source package or port instead of portsnap_enabled.
This commit is contained in:
parent
4510c58a25
commit
f1e071b0b5
|
|
@ -16,11 +16,12 @@ cwd=$(pwd)
|
||||||
echo "Installing the FreeSWITCH package"
|
echo "Installing the FreeSWITCH package"
|
||||||
|
|
||||||
#install the package
|
#install the package
|
||||||
if [ .$portsnap_enabled = .'true' ]; then
|
if [ .$switch_source = ."package" ]; then
|
||||||
|
pkg install --yes freeswitch
|
||||||
|
fi
|
||||||
|
if [ .$switch_source = ."port" ]; then
|
||||||
#dbatch uses the defaults alternative is make config-recursive
|
#dbatch uses the defaults alternative is make config-recursive
|
||||||
cd /usr/ports/net/freeswitch/ && make -DBATCH install clean
|
cd /usr/ports/net/freeswitch/ && make -DBATCH install clean
|
||||||
else
|
|
||||||
pkg install --yes freeswitch
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#set the original working directory
|
#set the original working directory
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue