--- contrib/scripts/install_prereq (Asterisk 13.20) +++ contrib/scripts/install_prereq (working copy) @@ -132,2 +132,18 @@ +# Basic build system: +PACKAGES_DBSD="gmake pkgconf" +# Asterisk: basic requirements: +PACKAGES_DBSD="$PACKAGES_DBSD libedit jansson e2fsprogs-libuuid sqlite3 libxml2" +# Asterisk: for addons: +PACKAGES_DBSD="$PACKAGES_DBSD speex speexdsp libogg libvorbis alsa-lib portaudio curl xmlstarlet bison flex" +PACKAGES_DBSD="$PACKAGES_DBSD postgresql10-client unixODBC neon gmime26 lua52 uriparser libxslt libressl" +PACKAGES_DBSD="$PACKAGES_DBSD mariadb101-client radcli freetds" +PACKAGES_DBSD="$PACKAGES_DBSD net-snmp iksemel corosync newt popt libical spandsp" +PACKAGES_DBSD="$PACKAGES_DBSD cclient binutils libsrtp gsm libilbc doxygen graphviz libzip openldap-client libhoard" +PACKAGES_DBSD="$PACKAGES_DBSD codec2 fftw3 libsndfile unbound" +# Asterisk: for the unpackaged below: +PACKAGES_DBSD="$PACKAGES_DBSD wget subversion" +# Asterisk: for ./configure --with-pjproject-bundled: +PACKAGES_DBSD="$PACKAGES_DBSD bzip2 patch python" + KVERS=`uname -r` @@ -267,2 +283,9 @@ +handle_dbsd() { + extra_packs=`check_installed_fpkgs $PACKAGES_DBSD` + if [ x"$extra_packs" != "x" ] ; then + $testcmd pkg install -y $extra_packs + fi +} + handle_SUSE() { @@ -337,3 +360,3 @@ # A number of distributions we don't (yet?) support. -if [ "$OS" != 'Linux' -a "$OS" != 'NetBSD' -a "$OS" != 'OpenBSD' -a "$OS" != 'FreeBSD' ]; then +if [ "$OS" != 'Linux' -a "$OS" != 'NetBSD' -a "$OS" != 'OpenBSD' -a "$OS" != 'FreeBSD' -a "$OS" != 'DragonFly' ]; then echo >&2 "$0: Your OS ($OS) is currently not supported. Aborting." @@ -378,2 +401,4 @@ handle_fbsd +elif [ "$OS" = 'DragonFly' ]; then + handle_dbsd fi