<p>Jenkins2 <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/8647">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 Slackware (somehow).<br><br>ASTERISK-27770<br><br>Change-Id: Ib87e0483c785542238cfe34c1e884d5a31edfaab<br>---<br>M Makefile<br>M contrib/scripts/install_prereq<br>2 files changed, 22 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/Makefile b/Makefile<br>index 54368f7..2c10dc4 100644<br>--- a/Makefile<br>+++ b/Makefile<br>@@ -951,6 +951,10 @@<br>                 fi ; \<br>        elif [ -f /etc/arch-release -o -f /etc/arch-release ] ; then \<br>                ./build_tools/install_subst contrib/init.d/rc.archlinux.asterisk  "$(DESTDIR)/etc/init.d/asterisk"; \<br>+      elif [ -f /etc/slackware-version ]; then \<br>+           ./build_tools/install_subst contrib/init.d/rc.slackware.asterisk  "$(DESTDIR)/etc/rc.d/rc.asterisk"; \<br>+     elif [ -f /etc/os-release ] && [ "slackware" = "$(shell . /etc/os-release && echo $$ID)" ] ; then \<br>+              ./build_tools/install_subst contrib/init.d/rc.slackware.asterisk  "$(DESTDIR)/etc/rc.d/rc.asterisk"; \<br>      elif [ -d "$(DESTDIR)/Library/LaunchDaemons" ]; then \<br>              if [ ! -f "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.asterisk.plist" ]; then \<br>                  ./build_tools/install_subst contrib/init.d/org.asterisk.asterisk.plist "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.asterisk.plist"; \<br>@@ -958,8 +962,6 @@<br>               if [ ! -f "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.muted.plist" ]; then \<br>                     ./build_tools/install_subst contrib/init.d/org.asterisk.muted.plist "$(DESTDIR)/Library/LaunchDaemons/org.asterisk.muted.plist"; \<br>          fi; \<br>-        elif [ -f /etc/slackware-version ]; then \<br>-           echo "Slackware is not currently supported, although an init script does exist for it."; \<br>  else \<br>                echo "We could not install init scripts for your distribution." ; \<br>         fi<br>diff --git a/contrib/scripts/install_prereq b/contrib/scripts/install_prereq<br>index 887c5e2..6d72eb7 100755<br>--- a/contrib/scripts/install_prereq<br>+++ b/contrib/scripts/install_prereq<br>@@ -297,7 +297,11 @@<br>             ./configure<br>           make all install<br>              cd ..<br>-                echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf<br>+                if test -d /etc/ld.so.conf.d; then<br>+                   echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf<br>+                else # for example: Slackware 14.2<br>+                   echo "/usr/local/lib" > /etc/ld.so.conf<br>+         fi<br>            /sbin/ldconfig<br>        fi<br> <br>@@ -310,7 +314,11 @@<br>                   ./configure --enable-openssl<br>                  make shared_library install<br>                   cd ..<br>-                        echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf<br>+                        if test -d /etc/ld.so.conf.d; then<br>+                           echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local.conf<br>+                        else # for example: Slackware 14.2<br>+                           echo "/usr/local/lib" > /etc/ld.so.conf<br>+                 fi<br>                    /sbin/ldconfig<br>                fi<br>    fi<br>@@ -348,8 +356,14 @@<br>      unsupported_distro='Mandriva'<br> fi<br> <br>-if [ -f /etc/slackware-version ]; then<br>-       unsupported_distro='Slackware'<br>+if [ -f /etc/slackware-version ] || ([ -f /etc/os-release ] && . /etc/os-release && [ "$ID" = "slackware" ]); then<br>+      echo >&2 "$0: Your distribution (Slackware) is currently not supported. Aborting. Try manually:"<br>+    # libedit requires a newer version than Slackware 14.2, for example Slackware-current<br>+        # or you build it manually: <http://thrysoee.dk/editline/><br>+     echo >&2 "$0: # slackpkg install make gcc pkg-config libedit util-linux sqlite libxml2 patch wget"<br>+  # required for libjansson<br>+    echo >&2 "$0: # ./contrib/scripts/install_prereq install-unpackaged"<br>+        exit 1<br> fi<br> <br> if [ "$unsupported_distro" != '' ]; then<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8647">change 8647</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/8647"/><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: Ib87e0483c785542238cfe34c1e884d5a31edfaab </div>
<div style="display:none"> Gerrit-Change-Number: 8647 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </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: 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>