summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2018-04-25 14:01:43 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2018-04-25 14:01:43 -0500
commitc408fbb87af61dfb324f55098f8b935102bb8299 (patch)
treed7bb10c5bbf288c3b32baf86fefabf8fd7a627d3
parent1dedc7395143d7bd828213ef2327d1fd7777bf14 (diff)
parent6e9a6122931332be0a270046e1b4a45adb67f4f1 (diff)
Merge "install_prereq: Add DragonFly BSD."
-rwxr-xr-xcontrib/scripts/install_prereq27
1 files changed, 26 insertions, 1 deletions
diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index 3ac7a0a1f..dfeb36f2c 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -146,6 +146,22 @@ PACKAGES_FBSD="$PACKAGES_FBSD wget subversion"
# Asterisk: for ./configure --with-pjproject-bundled:
PACKAGES_FBSD="$PACKAGES_FBSD bzip2 patch python"
+# Basic build system:
+PACKAGES_DBSD="gmake pkgconf"
+# Asterisk: basic requirements:
+PACKAGES_DBSD="$PACKAGES_DBSD libedit jansson e2fsprogs-libuuid sqlite3 libxml2"
+# Asterisk: for addons:
+PACKAGES_DBSD="$PACKAGES_DBSD speex speexdsp libogg libvorbis alsa-lib portaudio curl xmlstarlet bison flex"
+PACKAGES_DBSD="$PACKAGES_DBSD postgresql10-client unixODBC neon gmime26 lua52 uriparser libxslt libressl"
+PACKAGES_DBSD="$PACKAGES_DBSD mariadb101-client radcli freetds"
+PACKAGES_DBSD="$PACKAGES_DBSD net-snmp iksemel corosync newt popt libical spandsp"
+PACKAGES_DBSD="$PACKAGES_DBSD cclient binutils libsrtp gsm libilbc doxygen graphviz libzip openldap-client libhoard"
+PACKAGES_DBSD="$PACKAGES_DBSD codec2 fftw3 libsndfile unbound"
+# Asterisk: for the unpackaged below:
+PACKAGES_DBSD="$PACKAGES_DBSD wget subversion"
+# Asterisk: for ./configure --with-pjproject-bundled:
+PACKAGES_DBSD="$PACKAGES_DBSD bzip2 patch python"
+
KVERS=`uname -r`
JANSSON_VER=2.11
@@ -302,6 +318,13 @@ handle_fbsd() {
fi
}
+handle_dbsd() {
+ extra_packs=`check_installed_fpkgs $PACKAGES_DBSD`
+ if [ x"$extra_packs" != "x" ] ; then
+ $testcmd pkg install -y $extra_packs
+ fi
+}
+
handle_SUSE() {
extra_packs=`check_installed_zypper $PACKAGES_SUSE`
if [ x"$extra_packs" != "x" ] ; then
@@ -380,7 +403,7 @@ OS=`uname -s`
unsupported_distro=''
# A number of distributions we don't (yet?) support.
-if [ "$OS" != 'Linux' -a "$OS" != 'NetBSD' -a "$OS" != 'OpenBSD' -a "$OS" != 'FreeBSD' ]; then
+if [ "$OS" != 'Linux' -a "$OS" != 'NetBSD' -a "$OS" != 'OpenBSD' -a "$OS" != 'FreeBSD' -a "$OS" != 'DragonFly' ]; then
echo >&2 "$0: Your OS ($OS) is currently not supported. Aborting."
exit 1
fi
@@ -427,6 +450,8 @@ elif [ "$OS" = 'OpenBSD' ]; then
handle_obsd
elif [ "$OS" = 'FreeBSD' ]; then
handle_fbsd
+elif [ "$OS" = 'DragonFly' ]; then
+ handle_dbsd
fi
if ! in_test_mode; then