aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-09 10:45:10 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-09 10:45:10 +0000
commit7e6039a8cb2be7495cd4059578879540b6649851 (patch)
treeae707b5626770ae749ea6ed92fed4a14f39dc2a1 /contrib
parent7a295e22b7ee86cd9a210bea1388f712095551f6 (diff)
Add an "install-unpackaged" command to install_prereq for installing unpackaged dependencies (such as NBS and libresample).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@269201 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/install_prereq25
1 files changed, 22 insertions, 3 deletions
diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index 81e7b0f97..2e6f4aaee 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -12,9 +12,10 @@ usage() {
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 @@ KVERS=`uname -r`
case "$1" in
test) testcmd=echo ;;
install) testcmd='' ;;
+install-unpackaged) unpackaged="yes" ;;
'') usage; exit 0 ;;
*) usage; exit 1 ;;
esac
@@ -88,11 +90,28 @@ handle_obsd() {
$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`