From f4120716a465e5bb1ab5245df30b23fdc5e493f1 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 22:27:56 -0700 Subject: [PATCH 01/10] Update sngrep.sh --- debian/resources/sngrep.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/debian/resources/sngrep.sh b/debian/resources/sngrep.sh index 9c9bbde..3f468ea 100644 --- a/debian/resources/sngrep.sh +++ b/debian/resources/sngrep.sh @@ -2,8 +2,17 @@ #add sngrep if [ ."$cpu_architecture" != ."arm" ]; then + #package echo 'deb http://packages.irontec.com/debian jessie main' > /etc/apt/sources.list.d/sngrep.list wget http://packages.irontec.com/public.key -q -O - | apt-key add - apt-get update apt-get install sngrep +else + #source + apt-get install git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev + cd /usr/src/sngrep + git clone https://github.com/irontec/sngrep + ./bootstrap.sh + ./configure + make install fi From 971885a6efb68894afac5a0e0146086e72bffbb9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 22:30:35 -0700 Subject: [PATCH 02/10] Update sngrep.sh --- debian/resources/sngrep.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/debian/resources/sngrep.sh b/debian/resources/sngrep.sh index 3f468ea..7158fa2 100644 --- a/debian/resources/sngrep.sh +++ b/debian/resources/sngrep.sh @@ -1,18 +1,18 @@ #!/bin/sh #add sngrep -if [ ."$cpu_architecture" != ."arm" ]; then - #package - echo 'deb http://packages.irontec.com/debian jessie main' > /etc/apt/sources.list.d/sngrep.list - wget http://packages.irontec.com/public.key -q -O - | apt-key add - - apt-get update - apt-get install sngrep -else - #source +if [ ."$cpu_architecture" = ."arm" ]; then + #source install apt-get install git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev cd /usr/src/sngrep git clone https://github.com/irontec/sngrep ./bootstrap.sh ./configure make install +else + #package install + echo 'deb http://packages.irontec.com/debian jessie main' > /etc/apt/sources.list.d/sngrep.list + wget http://packages.irontec.com/public.key -q -O - | apt-key add - + apt-get update + apt-get install sngrep fi From d8704af6c9cf92338d7346445dbf1b9bd10a1db6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 22:34:36 -0700 Subject: [PATCH 03/10] Update sngrep.sh --- debian/resources/sngrep.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/resources/sngrep.sh b/debian/resources/sngrep.sh index 7158fa2..5b24ff1 100644 --- a/debian/resources/sngrep.sh +++ b/debian/resources/sngrep.sh @@ -1,5 +1,13 @@ #!/bin/sh +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes +. ./config.sh +. ./colors.sh +. ./environment.sh + #add sngrep if [ ."$cpu_architecture" = ."arm" ]; then #source install From 29d8ee27174ae3cf7a9c51629b7ee86ca5eba362 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 22:36:28 -0700 Subject: [PATCH 04/10] Update sngrep.sh --- debian/resources/sngrep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/resources/sngrep.sh b/debian/resources/sngrep.sh index 5b24ff1..6fbb2dd 100644 --- a/debian/resources/sngrep.sh +++ b/debian/resources/sngrep.sh @@ -11,7 +11,7 @@ cd "$(dirname "$0")" #add sngrep if [ ."$cpu_architecture" = ."arm" ]; then #source install - apt-get install git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev + apt-get install -y --force-yes git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev cd /usr/src/sngrep git clone https://github.com/irontec/sngrep ./bootstrap.sh From 5075fda937f263068fbefad3f76a474ac26e5ec8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 22:37:15 -0700 Subject: [PATCH 05/10] Update sngrep.sh --- debian/resources/sngrep.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/debian/resources/sngrep.sh b/debian/resources/sngrep.sh index 6fbb2dd..8733d5c 100644 --- a/debian/resources/sngrep.sh +++ b/debian/resources/sngrep.sh @@ -12,11 +12,10 @@ cd "$(dirname "$0")" if [ ."$cpu_architecture" = ."arm" ]; then #source install apt-get install -y --force-yes git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev - cd /usr/src/sngrep - git clone https://github.com/irontec/sngrep - ./bootstrap.sh - ./configure - make install + cd /usr/src/sngrep && git clone https://github.com/irontec/sngrep + cd /usr/src/sngrep && ./bootstrap.sh + cd /usr/src/sngrep && ./configure + cd /usr/src/sngrep && make install else #package install echo 'deb http://packages.irontec.com/debian jessie main' > /etc/apt/sources.list.d/sngrep.list From 614c3ff3bcb24a7ba804b784425eb8e1bca876e0 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 5 Mar 2017 22:38:32 -0700 Subject: [PATCH 06/10] Update sngrep.sh --- debian/resources/sngrep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/resources/sngrep.sh b/debian/resources/sngrep.sh index 8733d5c..bc24569 100644 --- a/debian/resources/sngrep.sh +++ b/debian/resources/sngrep.sh @@ -12,7 +12,7 @@ cd "$(dirname "$0")" if [ ."$cpu_architecture" = ."arm" ]; then #source install apt-get install -y --force-yes git autoconf automake gcc make libncurses5-dev libpcap-dev libssl-dev libpcre3-dev - cd /usr/src/sngrep && git clone https://github.com/irontec/sngrep + cd /usr/src && git clone https://github.com/irontec/sngrep cd /usr/src/sngrep && ./bootstrap.sh cd /usr/src/sngrep && ./configure cd /usr/src/sngrep && make install From 77ce16af7cbd23882291408dcd1139eabd8941a7 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 9 Mar 2017 10:27:02 -0700 Subject: [PATCH 07/10] Update package-all.sh --- debian/resources/switch/package-all.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/resources/switch/package-all.sh b/debian/resources/switch/package-all.sh index 5573fba..8c5b8ae 100755 --- a/debian/resources/switch/package-all.sh +++ b/debian/resources/switch/package-all.sh @@ -1,5 +1,9 @@ #!/bin/sh +#move to script directory so all relative paths work +cd "$(dirname "$0")" + +#includes . ../config.sh . ../colors.sh . ../environment.sh From fd9d998339ebc057104b38d47567e0944abb9509 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 9 Mar 2017 10:31:20 -0700 Subject: [PATCH 08/10] Update package-release.sh --- debian/resources/switch/package-release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/resources/switch/package-release.sh b/debian/resources/switch/package-release.sh index eb63e14..2e9dcd4 100755 --- a/debian/resources/switch/package-release.sh +++ b/debian/resources/switch/package-release.sh @@ -3,6 +3,7 @@ #move to script directory so all relative paths work cd "$(dirname "$0")" +#includes . ../config.sh . ../colors.sh . ../environment.sh From 40505e1de7d77dba856d81acbd555b66c4a74d5f Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 9 Mar 2017 10:40:20 -0700 Subject: [PATCH 09/10] Update source-release.sh --- debian/resources/switch/source-release.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/resources/switch/source-release.sh b/debian/resources/switch/source-release.sh index 82891ca..85103a0 100755 --- a/debian/resources/switch/source-release.sh +++ b/debian/resources/switch/source-release.sh @@ -1,4 +1,5 @@ #!/bin/sh + echo "Installing the FreeSWITCH source" DEBIAN_FRONTEND=none APT_LISTCHANGES_FRONTEND=none apt-get install -y --force-yes ntpdate libapache2-mod-log-sql-ssl libfreetype6-dev git-buildpackage doxygen yasm nasm gdb git build-essential automake autoconf 'libtool-bin|libtool' python uuid-dev zlib1g-dev 'libjpeg8-dev|libjpeg62-turbo-dev' libncurses5-dev libssl-dev libpcre3-dev libcurl4-openssl-dev libldns-dev libedit-dev libspeexdsp-dev libspeexdsp-dev libsqlite3-dev perl libgdbm-dev libdb-dev bison libvlc-dev libvlccore-dev vlc-nox pkg-config ccache libpng-dev libvpx-dev libyuv-dev libopenal-dev libbroadvoice-dev libcodec2-dev libflite-dev libg7221-dev libilbc-dev libmongoc-dev libsilk-dev libsoundtouch-dev libmagickcore-dev liblua5.2-dev libopus-dev libsndfile-dev libopencv-dev libavformat-dev libx264-dev erlang-dev libldap2-dev libmemcached-dev libperl-dev portaudio19-dev python-dev libsnmp-dev libyaml-dev libmp4v2-dev apt-get install -y --force-yes ntp unzip libpq-dev memcached libshout3-dev libvpx-dev libmpg123-dev libmp3lame-dev From 1e18000cd5ff0c2c8aeb868a1b08bc044f045dbb Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 9 Mar 2017 12:10:47 -0700 Subject: [PATCH 10/10] Update nginx.sh --- debian/resources/nginx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/resources/nginx.sh b/debian/resources/nginx.sh index 2452d8c..f0c51a0 100755 --- a/debian/resources/nginx.sh +++ b/debian/resources/nginx.sh @@ -32,8 +32,8 @@ else #9.x - */stretch/ #8.x - */jessie/ if [ ."$os_codename" = ."jessie" ]; then - echo "deb http://packages.dotdeb.org $codename all" > /etc/apt/sources.list.d/dotdeb.list - echo "deb-src http://packages.dotdeb.org $codename all" >> /etc/apt/sources.list.d/dotdeb.list + echo "deb http://packages.dotdeb.org $os_codename all" > /etc/apt/sources.list.d/dotdeb.list + echo "deb-src http://packages.dotdeb.org $os_codename all" >> /etc/apt/sources.list.d/dotdeb.list wget -O - https://www.dotdeb.org/dotdeb.gpg | apt-key add - fi fi