<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8509">View Change</a></p><div style="white-space:pre-wrap">Approvals:
George Joseph: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved
Jenkins2: Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">install_prereq: Add SUSE.<br><br>ASTERISK-27736<br><br>Change-Id: I4cafc8973349d50a7cb7919ddf0bb1aaef4bfc3e<br>---<br>M contrib/scripts/install_prereq<br>1 file changed, 36 insertions(+), 4 deletions(-)<br><br></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 1270349..dae8dee 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_SUSE="make gcc gcc-c++ pkg-config"<br>+# Asterisk: basic requirements:<br>+PACKAGES_SUSE="$PACKAGES_SUSE libedit-devel libjansson-devel libuuid-devel sqlite3-devel libxml2-devel"<br>+# Asterisk: for addons:<br>+PACKAGES_SUSE="$PACKAGES_SUSE speex-devel speexdsp-devel libogg-devel libvorbis-devel alsa-devel portaudio-devel libcurl-devel xmlstarlet bison flex"<br>+PACKAGES_SUSE="$PACKAGES_SUSE postgresql-devel unixODBC-devel libtool libneon-devel gmime-devel lua-devel liburiparser-devel libxslt-devel libopenssl-devel"<br>+PACKAGES_SUSE="$PACKAGES_SUSE libmysqlclient-devel bluez-devel freeradius-client-devel freetds-devel bash"<br>+PACKAGES_SUSE="$PACKAGES_SUSE net-snmp-devel iksemel-devel libcorosync-devel newt-devel popt-devel libical-devel spandsp-devel"<br>+PACKAGES_SUSE="$PACKAGES_SUSE imap-devel libsrtp2-devel libgsm-devel doxygen graphviz zlib-devel openldap2-devel"<br>+PACKAGES_SUSE="$PACKAGES_SUSE codec2-devel fftw3-devel libsndfile-devel unbound-devel"<br>+# Asterisk: for the unpackaged below:<br>+PACKAGES_SUSE="$PACKAGES_SUSE wget subversion"<br>+# Asterisk: for ./configure --with-pjproject-bundled:<br>+PACKAGES_SUSE="$PACKAGES_SUSE 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>@@ -165,6 +181,15 @@<br> done<br> }<br> <br>+check_installed_zypper() {<br>+ for pack in "$@"<br>+ do<br>+ if ! zypper se -ixnC $pack >/dev/null 2>/dev/null<br>+ then echo $pack<br>+ fi<br>+ done<br>+}<br>+<br> handle_debian() {<br> if ! [ -x "$(command -v aptitude)" ]; then<br> apt-get install aptitude<br>@@ -205,6 +230,13 @@<br> extra_packs=`check_installed_fpkgs $PACKAGES_FBSD`<br> if [ x"$extra_packs" != "x" ] ; then<br> $testcmd pkg install -y $extra_packs<br>+ fi<br>+}<br>+<br>+handle_SUSE() {<br>+ extra_packs=`check_installed_zypper $PACKAGES_SUSE`<br>+ if [ x"$extra_packs" != "x" ] ; then<br>+ $testcmd zypper install --no-confirm $extra_packs<br> fi<br> }<br> <br>@@ -284,10 +316,6 @@<br> unsupported_distro='Mandriva'<br> fi<br> <br>-if [ -f /etc/SuSE-release ]; then<br>- unsupported_distro='SUSE'<br>-fi<br>-<br> if [ -f /etc/slackware-version ]; then<br> unsupported_distro='Slackware'<br> fi<br>@@ -302,6 +330,10 @@<br> handle_debian<br> elif [ -r /etc/redhat-release ]; then<br> handle_rh<br>+elif [ -f /etc/SuSE-release -o -f /etc/novell-release ]; then<br>+ handle_SUSE<br>+elif [ -f /etc/os-release ] && . /etc/os-release && [ "$ID" = "opensuse" ]; then<br>+ handle_SUSE<br> elif [ "$OS" = 'NetBSD' ]; then<br> handle_nbsd<br> elif [ "$OS" = 'OpenBSD' ]; then<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8509">change 8509</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/8509"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I4cafc8973349d50a7cb7919ddf0bb1aaef4bfc3e </div>
<div style="display:none"> Gerrit-Change-Number: 8509 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Alexander Traud <pabstraud@compuserve.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>