Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize dependencies #94

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
118 changes: 67 additions & 51 deletions sng_freepbx_debian_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export PATH=$SANE_PATH

while [[ $# -gt 0 ]]; do
case $1 in
--dev)
dev=true
shift # past argument
;;
--testing)
testrepo=true
shift # past argument
Expand Down Expand Up @@ -770,39 +774,23 @@ fi

# Install dependent packages
setCurrentStep "Installing required packages"
DEPPKGS=("redis-server"
"libsnmp-dev"
"libtonezone-dev"
"libpq-dev"
"liblua5.2-dev"
"libpri-dev"
"libbluetooth-dev"
"libunbound-dev"
"libsybdb5"
"libspeexdsp-dev"
"libiksemel-dev"
"libresample1-dev"
"libgmime-3.0-dev"
"libc-client2007e-dev"
"dpkg-dev"
DEPPRODPKGS=(
"redis-server"
"ghostscript"
"libtiff-tools"
"iptables-persistent"
"net-tools"
"rsyslog"
"libavahi-client3"
"nmap"
"apache2"
"zip"
"incron"
"wget"
"vim"
"build-essential"
"openssh-server"
"rsync"
"mariadb-server"
"mariadb-client"
"bison"
"flex"
"flite"
"php${PHPVERSION}"
"php${PHPVERSION}-curl"
Expand All @@ -825,48 +813,22 @@ DEPPKGS=("redis-server"
"php-pear"
"curl"
"sox"
"libncurses5-dev"
"libssl-dev"
"mpg123"
"libxml2-dev"
"libnewt-dev"
"sqlite3"
"libsqlite3-dev"
"pkg-config"
"automake"
"libtool"
"autoconf"
"git"
"unixodbc-dev"
"uuid"
"uuid-dev"
"libasound2-dev"
"libogg-dev"
"libvorbis-dev"
"libicu-dev"
"libcurl4-openssl-dev"
"odbc-mariadb"
"libical-dev"
"libneon27-dev"
"libsrtp2-dev"
"libspandsp-dev"
"sudo"
"subversion"
"libtool-bin"
"python-dev-is-python3"
"unixodbc"
"libjansson-dev"
"nodejs"
"npm"
"ipset"
"iptables"
"fail2ban"
"htop"
"liburiparser-dev"
"postfix"
"tcpdump"
"sngrep"
"libavdevice-dev"
"tftpd-hpa"
"xinetd"
"lame"
Expand All @@ -878,15 +840,69 @@ DEPPKGS=("redis-server"
"apt-transport-https"
"lsb-release"
"ca-certificates"
"cron"
"python3-mysqldb"
"default-libmysqlclient-dev"
"at"
"avahi-daemon"
"avahi-utils"
"cron"
"at"
"avahi-daemon"
"avahi-utils"
"libnss-mdns"
"mailutils"
# Asterisk package
"liburiparser1"
# ffmpeg package
"libavdevice59"
# System Admin module
"python3-mysqldb"
"python-is-python3"
# User Control Panel module
"pkgconf"
"libicu-dev"
)
DEPDEVPKGS=(
"libsnmp-dev"
"libtonezone-dev"
"libpq-dev"
"liblua5.2-dev"
"libpri-dev"
"libbluetooth-dev"
"libunbound-dev"
"libspeexdsp-dev"
"libiksemel-dev"
"libresample1-dev"
"libgmime-3.0-dev"
"libc-client2007e-dev"
"libncurses-dev"
"libssl-dev"
"libxml2-dev"
"libnewt-dev"
"libsqlite3-dev"
"unixodbc-dev"
"uuid-dev"
"libasound2-dev"
"libogg-dev"
"libvorbis-dev"
"libcurl4-openssl-dev"
"libical-dev"
"libneon27-dev"
"libsrtp2-dev"
"libspandsp-dev"
"libjansson-dev"
"liburiparser-dev"
"libavdevice-dev"
"python-dev-is-python3"
"default-libmysqlclient-dev"
"dpkg-dev"
"build-essential"
"automake"
"autoconf"
"libtool-bin"
"bison"
"flex"
)
if [ $dev ]; then
DEPPKGS=("${DEPPRODPKGS[@]}" "${DEPDEVPKGS[@]}")
else
DEPPKGS=("${DEPPRODPKGS[@]}")
fi
if [ "$nochrony" != true ]; then
DEPPKGS+=("chrony")
fi
Expand Down