<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8481">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">install_prereq: Add NetBSD.<br><br>ASTERISK-27729<br><br>Change-Id: I7a706d51375d54cf5e36d32397bfe09a48670804<br>---<br>M contrib/scripts/install_prereq<br>1 file changed, 30 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/81/8481/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq<br>index 23a247a..51e91d1 100755<br>--- a/contrib/scripts/install_prereq<br>+++ b/contrib/scripts/install_prereq<br>@@ -51,6 +51,22 @@<br> PACKAGES_RH="$PACKAGES_RH bzip2 patch python-devel"<br> <br> # Basic build system:<br>+PACKAGES_NBSD="gmake pkg-config"<br>+# Asterisk: basic requirements:<br>+PACKAGES_NBSD="$PACKAGES_NBSD editline jansson sqlite3 libuuid libxml2"<br>+# Asterisk: for addons:<br>+PACKAGES_NBSD="$PACKAGES_NBSD speex speexdsp libogg libvorbis alsa-lib portaudio-devel curl bison flex"<br>+PACKAGES_NBSD="$PACKAGES_NBSD postgresql10-client unixodbc libltdl neon gmime lua52 uriparser libxslt openssl"<br>+PACKAGES_NBSD="$PACKAGES_NBSD mysql-client radiusclient-ng freetds bash"<br>+PACKAGES_NBSD="$PACKAGES_NBSD net-snmp iksemel popt libical spandsp"<br>+PACKAGES_NBSD="$PACKAGES_NBSD imap-uw srtp gsm doxygen graphviz libzip openldap-client"<br>+PACKAGES_NBSD="$PACKAGES_NBSD codec2 fftw libsndfile unbound"<br>+# Asterisk: for the unpackaged below:<br>+PACKAGES_NBSD="$PACKAGES_NBSD wget subversion-base"<br>+# Asterisk: for ./configure --with-pjproject-bundled:<br>+PACKAGES_NBSD="$PACKAGES_NBSD bzip2 patch python27"<br>+<br>+# Basic build system:<br> PACKAGES_OBSD="gmake"<br> # Asterisk: basic requirements:<br> PACKAGES_OBSD="$PACKAGES_OBSD libxml sqlite3 e2fsprogs jansson"<br>@@ -166,6 +182,17 @@<br>     fi<br> }<br> <br>+handle_nbsd() {<br>+  extra_packs=`check_installed_pkgs $PACKAGES_NBSD`<br>+    if [ x"$extra_packs" != "x" ] ; then<br>+             if [ -z "$PKG_PATH" ] ; then<br>+                       # see NetBSD Problem Report #48177<br>+                   export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/$(uname -s)/$(uname -p)/$(uname -r)/All"<br>+                fi<br>+           $testcmd pkg_add $extra_packs<br>+        fi<br>+}<br>+<br> handle_obsd() {<br>   extra_packs=`check_installed_pkgs $PACKAGES_OBSD`<br>     if [ x"$extra_packs" != "x" ] ; then<br>@@ -243,7 +270,7 @@<br> unsupported_distro=''<br> <br> # A number of distributions we don't (yet?) support.<br>-if [ "$OS" != 'Linux' -a "$OS" != 'OpenBSD' -a "$OS" != 'FreeBSD' ]; then<br>+if [ "$OS" != 'Linux' -a "$OS" != 'NetBSD' -a "$OS" != 'OpenBSD' -a "$OS" != 'FreeBSD' ]; then<br>        echo >&2 "$0: Your OS ($OS) is currently not supported. Aborting."<br>   exit 1<br> fi<br>@@ -274,6 +301,8 @@<br>      handle_debian<br> elif [ -r /etc/redhat-release ]; then<br>         handle_rh<br>+elif [ "$OS" = 'NetBSD' ]; then<br>+        handle_nbsd<br> elif [ "$OS" = 'OpenBSD' ]; then<br>      handle_obsd<br> elif [ "$OS" = 'FreeBSD' ]; then<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8481">change 8481</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/8481"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7a706d51375d54cf5e36d32397bfe09a48670804 </div>
<div style="display:none"> Gerrit-Change-Number: 8481 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>