diff options
Diffstat (limited to 'testing/kamailio/APKBUILD')
-rw-r--r-- | testing/kamailio/APKBUILD | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/testing/kamailio/APKBUILD b/testing/kamailio/APKBUILD index ea28b0cafe..5e3a0c6393 100644 --- a/testing/kamailio/APKBUILD +++ b/testing/kamailio/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=kamailio pkgver=3.0.0 -pkgrel=0 +pkgrel=1 pkgdesc="Open Source SIP Server" url="http://www.kamailio.org/" pkgusers="kamailio" @@ -19,23 +19,31 @@ source="http://sip-router.org/tarballs/sr/kamailio_3.0/kamailio-${pkgver}_src_20 kamailio.initd kamailio.pre-install kamailio.post-install + kamailio-backslash.patch " _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" -# patch -p1 -i "$srcdir"/kamailio-backslash.patch || return 1 + 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 \ + -e 's:^cfg-prefix.*:cfg-prefix = $(basedir):' \ + -e "s:-O9 -funroll-loops:$CFLAGS:g" \ + Makefile.defs \ || return 1 -# cd scripts -# sed -i -e 's:/var/run/kamailio.pid:/var/run/kamailio/kamailio.pid:g' \ -# kamctl.base kamctlrc || return 1 -# # Set email_address field as not required field (could be null) -# cd dbtext/kamailio -# sed -i -e 's:email_address(string):email_address(string,null):' subscriber \ -# || return 1 + + cd utils/kamctl/ + sed -i -e 's:/var/run/kamailio.pid:/var/run/kamailio/kamailio.pid:g' \ + kamctl.base kamctlrc || return 1 + # we actually dont need bash + sed -i -e 's:/bin/bash:/bin/sh:' kamctl kamdbctl \ + || return 1 + # Set email_address field as not required field (could be null) + cd dbtext/kamailio + sed -i -e 's:email_address(string):email_address(string,null):' subscriber \ + || return 1 + } build() { @@ -137,4 +145,5 @@ md5sums="a043944e195338d56bdfdcd6c86a468b kamailio-3.0.0_src_2010-01-12_6d1e9f. eb665248ee39cf755a247286affc5cbb kamailio.cfg 81100c479890a2a8c2628db22fdd1a0c kamailio.initd c646af2dd31f5c4289a2f802c873d98f kamailio.pre-install -3fbaf633ff1620d0d526fc4047c7bed9 kamailio.post-install" +3fbaf633ff1620d0d526fc4047c7bed9 kamailio.post-install +10f8be110985a841dd5b892f86eb6722 kamailio-backslash.patch" |