]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8019 debian/util.sh ignored -T option
authorStanislav Sinyagin <ssinyagin@k-open.com>
Sun, 23 Aug 2015 00:22:06 +0000 (20:22 -0400)
committerStanislav Sinyagin <ssinyagin@k-open.com>
Sun, 23 Aug 2015 00:22:06 +0000 (20:22 -0400)
    Fixed the handling of -T and -t, and added debian/apt_sources.list
    that needs to build 1.7 master. The following commands need to be
    used to build Jessie packages:

    apt-get update && apt-get install -y git curl
    mkdir -p /usr/src/freeswitch
    cd /usr/src/freeswitch/
    git clone https://stash.freeswitch.org/scm/fs/freeswitch.git /usr/src/freeswitch/src
    curl http://files.freeswitch.org/repo/deb/debian/freeswitch_archive_g0.pub | apt-key add -
    cd /usr/src/freeswitch/src
    ./debian/util.sh build-all -i -z1 -aamd64 -cjessie -T /usr/src/freeswitch/src/debian/apt_sources.list

debian/apt_sources.list [new file with mode: 0644]
debian/util.sh

diff --git a/debian/apt_sources.list b/debian/apt_sources.list
new file mode 100644 (file)
index 0000000..857524c
--- /dev/null
@@ -0,0 +1,2 @@
+deb http://httpredir.debian.org/debian jessie main
+deb http://files.freeswitch.org/repo/deb/debian/ jessie main
index efeb071a3bc4ee30479c90dca1e7f20a3d8ab4f7..020040930073d13c09fb62b699b2b87b678ee501 100755 (executable)
@@ -276,7 +276,7 @@ build_debs () {
     set -e
     local OPTIND OPTARG debug_hook=false hookdir="" cow_build_opts=""
     local keep_pbuilder_config=false keyring="" custom_keyring=""
-    local use_system_sources=false
+    local use_custom_sources=false
     while getopts 'BbdK:kT:t' o "$@"; do
       case "$o" in
         B) cow_build_opts="--debbuildopts '-B'";;
@@ -284,7 +284,7 @@ build_debs () {
         d) debug_hook=true;;
         k) keep_pbuilder_config=true;;
         K) custom_keyring="$OPTARG";;
-        t) use_system_sources=true; custom_sources_file="/etc/apt/sources.list";;
+        t) use_custom_sources=true; custom_sources_file="/etc/apt/sources.list";;
         T) use_custom_sources=true; custom_sources_file="$OPTARG";;
       esac
     done
@@ -308,7 +308,7 @@ build_debs () {
       apt-key exportall > "$keyring"
     fi
     cow () {
-      if ! $use_system_sources; then
+      if ! $use_custom_sources; then
         cowbuilder "$@" \
           --distribution $distro \
           --architecture $arch \