<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8648">View Change</a></p><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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/48/8648/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/Makefile b/Makefile<br>index ff38fa8..48b794f 100644<br>--- a/Makefile<br>+++ b/Makefile<br>@@ -952,6 +952,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>@@ -959,8 +963,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 f01b332..496bf2a 100755<br>--- a/contrib/scripts/install_prereq<br>+++ b/contrib/scripts/install_prereq<br>@@ -290,7 +290,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>@@ -303,7 +307,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>@@ -341,8 +349,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/8648">change 8648</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/8648"/><meta itemprop="name" content="View Change"/></div></div>

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