summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-12-22 07:06:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-12-22 07:06:43 +0000
commita3d4f823d83538c21309339141bcee54e227ef3c (patch)
tree8538d6340bc24b4a14368d2a21ef236af38e5aab /main
parentd83ce5d075cbbbcfadc2e6ab24283e6b6f25c069 (diff)
downloadaports-a3d4f823d83538c21309339141bcee54e227ef3c.tar.bz2
aports-a3d4f823d83538c21309339141bcee54e227ef3c.tar.xz
main/kamailio: fix script
fixes #226
Diffstat (limited to 'main')
-rw-r--r--main/kamailio/APKBUILD8
-rw-r--r--main/kamailio/kamailio-backslash.patch15
2 files changed, 21 insertions, 2 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 77916f000..16aabbd54 100644
--- a/main/kamailio/APKBUILD
+++ b/main/kamailio/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kamailio
pkgver=1.5.3
-pkgrel=2
+pkgrel=3
pkgdesc="Open Source SIP Server"
url="http://www.kamailio.org/"
pkgusers="kamailio"
@@ -19,10 +19,13 @@ source="http://www.kamailio.org/pub/kamailio/$pkgver/src/$pkgname-$pkgver-notls_
kamailio.initd
kamailio.pre-install
kamailio.post-install
+ kamailio-backslash.patch
"
prepare() {
cd "$srcdir/$pkgname-$pkgver-notls"
+ patch -p1 -i "$srcdir"/kamailio-backslash.patch || return 1
+
sed -i -e 's:^cfg-target.*:cfg-target = $(cfg-dir):' \
-e 's:^cfg-prefix.*:cfg-prefix = $(basedir):' Makefile.defs \
|| return 1
@@ -129,4 +132,5 @@ md5sums="17eeea5cdc2fdd28b2f9a1bad6598de2 kamailio-1.5.3-notls_src.tar.gz
eb665248ee39cf755a247286affc5cbb kamailio.cfg
81100c479890a2a8c2628db22fdd1a0c kamailio.initd
c646af2dd31f5c4289a2f802c873d98f kamailio.pre-install
-3fbaf633ff1620d0d526fc4047c7bed9 kamailio.post-install"
+3fbaf633ff1620d0d526fc4047c7bed9 kamailio.post-install
+b0ea6c22e2e40d5d12a547898aef6973 kamailio-backslash.patch"
diff --git a/main/kamailio/kamailio-backslash.patch b/main/kamailio/kamailio-backslash.patch
new file mode 100644
index 000000000..cefebcd2c
--- /dev/null
+++ b/main/kamailio/kamailio-backslash.patch
@@ -0,0 +1,15 @@
+--- a/scripts/kamdbctl.base Tue Dec 22 07:01:57 2009
++++ b/scripts/kamdbctl.base Tue Dec 22 07:02:26 2009
+@@ -32,9 +32,9 @@
+
+ # Used by dbtext and db_berkeley to define tables to be created, used by
+ # postgres to do the grants
+-STANDARD_TABLES=${STANDARD_TABLES:-version acc dbaliases lcr domain grp
+- uri speed_dial gw pdt subscriber location re_grp trusted
+- address missed_calls usr_preferences aliases silo dialog
++STANDARD_TABLES=${STANDARD_TABLES:-version acc dbaliases lcr domain grp \
++ uri speed_dial gw pdt subscriber location re_grp trusted \
++ address missed_calls usr_preferences aliases silo dialog \
+ dispatcher dialplan}
+ EXTRA_TABLES=${EXTRA_TABLES:-imc_members imc_rooms cpl sip_trace domainpolicy carrierroute
+ carrier_name domain_name carrierfailureroute userblacklist globalblacklist htable purplemap}