[svn-commits] russell: trunk r269201 - /trunk/contrib/scripts/install_prereq
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Jun 9 05:45:13 CDT 2010
Author: russell
Date: Wed Jun 9 05:45:10 2010
New Revision: 269201
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=269201
Log:
Add an "install-unpackaged" command to install_prereq for installing unpackaged dependencies (such as NBS and libresample).
Modified:
trunk/contrib/scripts/install_prereq
Modified: trunk/contrib/scripts/install_prereq
URL: http://svnview.digium.com/svn/asterisk/trunk/contrib/scripts/install_prereq?view=diff&rev=269201&r1=269200&r2=269201
==============================================================================
--- trunk/contrib/scripts/install_prereq (original)
+++ trunk/contrib/scripts/install_prereq Wed Jun 9 05:45:10 2010
@@ -12,9 +12,10 @@
echo "$0: a script to install distribution-specific prerequirement"
echo 'Revision: $Id$'
echo ""
- echo "Usage: $0: Shows this message."
- echo "Usage: $0 test Prints commands it is about to run."
- echo "Usage: $0 install Really install."
+ echo "Usage: $0: Shows this message."
+ echo "Usage: $0 test Prints commands it is about to run."
+ echo "Usage: $0 install Really install."
+ echo "Usage: $0 install-unpackaged Really install unpackaged requirements."
}
# Basic build system:
@@ -36,6 +37,7 @@
case "$1" in
test) testcmd=echo ;;
install) testcmd='' ;;
+install-unpackaged) unpackaged="yes" ;;
'') usage; exit 0 ;;
*) usage; exit 1 ;;
esac
@@ -88,11 +90,28 @@
$testcmd pkg_add $extra_packs
}
+install_unpackaged() {
+ echo "*** Installing NBS (Network Broadcast Sound) ***"
+ svn co http://svn.digium.com/svn/nbs/trunk nbs-trunk
+ cd nbs-trunk
+ make && make install
+ cd ..
+
+ echo "*** Installing libresample ***"
+ svn co http://svn.digium.com/svn/thirdparty/libresample/trunk libresample-trunk
+ cd libresample-trunk
+ ./configure && make && make install
+ cd ..
+}
+
if in_test_mode; then
echo "#############################################"
echo "## $1: test mode."
echo "## Use the commands here to install your system."
echo "#############################################"
+elif test "${unpackaged}" = "yes" ; then
+ install_unpackaged
+ exit 0
fi
OS=`uname -s`
More information about the svn-commits
mailing list