[Asterisk-code-review] install prereq: Add DragonFly BSD. (asterisk[13])

Joshua Colp asteriskteam at digium.com
Wed Apr 25 13:55:20 CDT 2018


Joshua Colp has submitted this change and it was merged. ( https://gerrit.asterisk.org/8838 )

Change subject: install_prereq: Add DragonFly BSD.
......................................................................

install_prereq: Add DragonFly BSD.

ASTERISK-27820

Change-Id: I718ddb000fe5184b1bdc7759da67a370a7520144
---
M contrib/scripts/install_prereq
1 file changed, 25 insertions(+), 1 deletion(-)

Approvals:
  Joshua Colp: Looks good to me, but someone else must approve; Approved for Submit
  Kevin Harwell: Looks good to me, approved



diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq
index 83c7d95..8675a94 100755
--- a/contrib/scripts/install_prereq
+++ b/contrib/scripts/install_prereq
@@ -138,6 +138,21 @@
 # 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"
+# 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
@@ -294,6 +309,13 @@
 	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
@@ -372,7 +394,7 @@
 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
@@ -419,6 +441,8 @@
 	handle_obsd
 elif [ "$OS" = 'FreeBSD' ]; then
 	handle_fbsd
+elif [ "$OS" = 'DragonFly' ]; then
+	handle_dbsd
 fi
 
 if ! in_test_mode; then

-- 
To view, visit https://gerrit.asterisk.org/8838
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I718ddb000fe5184b1bdc7759da67a370a7520144
Gerrit-Change-Number: 8838
Gerrit-PatchSet: 1
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180425/08a1f108/attachment.html>


More information about the asterisk-code-review mailing list