<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8643">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">install_prereq: Add Gentoo Linux.<br><br>ASTERISK-27769<br><br>Change-Id: Ieb13293cd67481f3a33f58f6f7c8c3ee1e338e7a<br>---<br>M contrib/scripts/install_prereq<br>1 file changed, 41 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/43/8643/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 887c5e2..fe12d96 100755<br>--- a/contrib/scripts/install_prereq<br>+++ b/contrib/scripts/install_prereq<br>@@ -83,6 +83,22 @@<br> PACKAGES_ARCH="$PACKAGES_ARCH bzip2 patch python2"<br> <br> # Basic build system:<br>+PACKAGES_GENTOO="sys-devel/make sys-devel/gcc dev-util/pkgconfig"<br>+# Asterisk: basic requirements:<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO dev-libs/libedit dev-libs/jansson sys-libs/e2fsprogs-libs dev-libs/libxml2 dev-db/sqlite"<br>+# Asterisk: for addons:<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO media-libs/speex media-libs/speexdsp media-libs/libogg media-libs/libvorbis media-libs/alsa-lib media-libs/portaudio net-misc/curl app-text/xmlstarlet sys-devel/bison sys-devel/flex"<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO dev-db/postgresql dev-db/unixODBC net-libs/neon dev-libs/gmime dev-lang/lua dev-libs/uriparser dev-libs/libxslt dev-libs/openssl"<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO virtual/libmysqlclient net-wireless/bluez net-dialup/radiusclient-ng dev-db/freetds app-shells/bash"<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO net-analyzer/net-snmp dev-libs/iksemel sys-cluster/corosync dev-libs/newt dev-libs/popt dev-libs/libical media-libs/spandsp"<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO net-libs/c-client sys-devel/binutils net-libs/libsrtp media-sound/gsm media-libs/libilbc app-doc/doxygen sys-libs/zlib net-nds/openldap"<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO sci-libs/fftw media-libs/libsndfile net-dns/unbound"<br>+# Asterisk: for the unpackaged below:<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO net-misc/wget dev-vcs/subversion"<br>+# Asterisk: for ./configure --with-pjproject-bundled:<br>+PACKAGES_GENTOO="$PACKAGES_GENTOO app-arch/bzip2 sys-devel/patch dev-lang/python:2.7"<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>@@ -179,6 +195,20 @@<br>   done<br> }<br> <br>+check_installed_equery() {<br>+     for pack in "$@"<br>+   do<br>+           # equery --quiet list $pack<br>+          # is slower and<br>+              # would require the optional app-portage/gentoolkit<br>+          # /var/lib/portage/world would be the non-dep list<br>+           pack_with_version=${pack/:/-} # replace a possible version with '-'<br>+          if ! ls -d /var/db/pkg/${pack_with_version}* >/dev/null 2>/dev/null<br>+            then echo $pack<br>+              fi<br>+   done<br>+}<br>+<br> check_installed_pacman() {<br>      for pack in "$@"<br>    do<br>@@ -230,6 +260,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_gentoo() {<br>+        extra_packs=`check_installed_equery $PACKAGES_GENTOO`<br>+        if [ x"$extra_packs" != "x" ] ; then<br>+             $testcmd emerge $extra_packs<br>  fi<br> }<br> <br>@@ -340,10 +377,6 @@<br>       exit 1<br> fi<br> <br>-if [ -f /etc/gentoo-release ]; then<br>- unsupported_distro='Gentoo'<br>-fi<br>-<br> if [ -f /etc/mandrake-release ]; then<br>   unsupported_distro='Mandriva'<br> fi<br>@@ -370,6 +403,10 @@<br>      handle_arch<br> elif [ -f /etc/os-release ] && . /etc/os-release && [ "$ID_LIKE" = "archlinux" ]; then<br>      handle_arch # $ID=arch<br>+elif [ -f /etc/gentoo-release ]; then<br>+       handle_gentoo<br>+elif [ -f /etc/os-release ] && . /etc/os-release && [ "$ID" = "gentoo" ]; then<br>+   handle_gentoo<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/8643">change 8643</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/8643"/><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: Ieb13293cd67481f3a33f58f6f7c8c3ee1e338e7a </div>
<div style="display:none"> Gerrit-Change-Number: 8643 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>