[Pkg-voip-commits] r5466 - /ser/trunk/debian/patches/fix-bashism

maniac-guest at alioth.debian.org maniac-guest at alioth.debian.org
Thu Apr 3 10:54:40 UTC 2008


Author: maniac-guest
Date: Thu Apr  3 10:54:40 2008
New Revision: 5466

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=5466
Log:
Added _but not applied_ patch in order to fix bashism. I don't
know if this can be applied because I have no access to the same
orig.tar.gz since get-orig-source doesn't work. I have used the
nearest tar I have been able to find. 

Added:
    ser/trunk/debian/patches/fix-bashism

Added: ser/trunk/debian/patches/fix-bashism
URL: http://svn.debian.org/wsvn/pkg-voip/ser/trunk/debian/patches/fix-bashism?rev=5466&op=file
==============================================================================
--- ser/trunk/debian/patches/fix-bashism (added)
+++ ser/trunk/debian/patches/fix-bashism Thu Apr  3 10:54:40 2008
@@ -1,0 +1,67 @@
+--- a/scripts/serconf.sh
++++ b/scripts/serconf.sh
+@@ -27,7 +27,7 @@ SER_SQL_URI="mysql://ser:heslo@localhost
+ 
+ 
+ # --------------------- functions ---------------------------
+-function go_to_pstn()
++go_to_pstn()
+ {
+ 	if [ -n "$SER_GWIP" ] ; then 
+ 		cat << EOGOTOPSTN
+@@ -42,12 +42,12 @@ EOGOTOPSTN
+ }
+ 
+ 
+-function addr2re()
++addr2re()
+ {
+ 	echo $1 |  sed -ne "s/\./\\\./gp"
+ }
+ 
+-function gw_check()
++gw_check()
+ {
+ 	if [ -n "$SER_GWIP" ] ; then 
+ 		cat << EOGWTEST
+@@ -60,12 +60,12 @@ EOGWTEST
+ 	fi
+ }
+ 
+-function mine_check()
++mine_check()
+ {
+ 	printf "uri=~\"[@:](sip[\.)?$SER_DOMAIN_TEST_RE([;:].*)*\" $SER_GW_TEST_RE"
+ }
+ 
+-function gw_m_check()
++gw_m_check()
+ {
+ 	if [ -n "$SER_GWIP" ] ; then 
+ 		cat << EOMCHECK
+@@ -78,7 +78,7 @@ EOMCHECK
+ 	fi
+ }
+ 
+-function help()
++help()
+ {
+ 	cat << EOHELP
+ Numbering plan is as follows:
+@@ -95,14 +95,14 @@ EOHELP2
+ 	fi
+ }
+ 
+-function usage()
++usage()
+ {
+ 	echo "Usage: $0 <domain_name> [<ip_address_of_gateway>]" \
+ 		'> <config_file>' > /dev/stderr
+ 	exit 1
+ }
+ 
+-function load_mod()
++load_mod()
+ {
+ 	if [ -n "$SER_LIB_PATH" ] ; then
+ 		echo "loadmodule \"$SER_LIB_PATH/$1.so\""




More information about the Pkg-voip-commits mailing list