<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8514">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">install_prereq: Add Arch Linux.<br><br>ASTERISK-27738<br><br>Change-Id: I7ca620e3c4dfb4b064a19382c4915aeb42a2a09f<br>---<br>M contrib/scripts/install_prereq<br>1 file changed, 35 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/14/8514/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 ba0c77f..520af7f 100755<br>--- a/contrib/scripts/install_prereq<br>+++ b/contrib/scripts/install_prereq<br>@@ -49,6 +49,21 @@<br> PACKAGES_RH="$PACKAGES_RH bzip2 patch python-devel"<br> <br> # Basic build system:<br>+PACKAGES_ARCH="make gcc pkg-config"<br>+# Asterisk: basic requirements:<br>+PACKAGES_ARCH="$PACKAGES_ARCH libedit jansson libutil-linux libxml2 sqlite"<br>+# Asterisk: for addons:<br>+PACKAGES_ARCH="$PACKAGES_ARCH speex speexdsp libogg libvorbis alsa-lib portaudio curl xmlstarlet bison flex"<br>+PACKAGES_ARCH="$PACKAGES_ARCH postgresql-libs unixodbc libtool neon gmime lua uriparser libxslt openssl"<br>+PACKAGES_ARCH="$PACKAGES_ARCH libmariadbclient bluez-libs radcli freetds bash"<br>+PACKAGES_ARCH="$PACKAGES_ARCH net-snmp libnewt popt libical spandsp"<br>+PACKAGES_ARCH="$PACKAGES_ARCH c-client binutils libsrtp gsm doxygen graphviz zlib libldap"<br>+# Asterisk: for the unpackaged below:<br>+PACKAGES_ARCH="$PACKAGES_ARCH wget subversion"<br>+# Asterisk: for ./configure --with-pjproject-bundled:<br>+PACKAGES_ARCH="$PACKAGES_ARCH bzip2 patch python2"<br>+<br>+# Basic build system:<br> PACKAGES_OBSD="gmake"<br> # Asterisk: basic requirements:<br> PACKAGES_OBSD="$PACKAGES_OBSD libxml sqlite3 e2fsprogs jansson"<br>@@ -127,6 +142,15 @@<br> done<br> }<br> <br>+check_installed_pacman() {<br>+ for pack in "$@"<br>+ do<br>+ if ! pacman -Q --explicit $pack >/dev/null 2>/dev/null<br>+ then echo $pack<br>+ fi<br>+ done<br>+}<br>+<br> check_installed_pkgs() {<br> for pack in "$@"<br> do<br>@@ -160,6 +184,13 @@<br> extra_packs=`check_installed_rpms $PACKAGES_RH`<br> if [ x"$extra_packs" != "x" ] ; then<br> $testcmd yum install --skip-broken --assumeyes $extra_packs<br>+ fi<br>+}<br>+<br>+handle_arch() {<br>+ extra_packs=`check_installed_pacman $PACKAGES_ARCH`<br>+ if [ x"$extra_packs" != "x" ] ; then<br>+ $testcmd pacman -S --asexplicit --noconfirm $extra_packs<br> fi<br> }<br> <br>@@ -271,6 +302,10 @@<br> handle_debian<br> elif [ -r /etc/redhat-release ]; then<br> handle_rh<br>+elif [ -r /etc/arch-release ]; then<br>+ handle_arch<br>+elif [ -f /etc/os-release ] && . /etc/os-release && [ "$ID_LIKE" = "archlinux" ]; then<br>+ handle_arch # $ID=arch<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/8514">change 8514</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/8514"/><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: I7ca620e3c4dfb4b064a19382c4915aeb42a2a09f </div>
<div style="display:none"> Gerrit-Change-Number: 8514 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>