diff options
Diffstat (limited to 'main/kamailio/APKBUILD')
-rw-r--r-- | main/kamailio/APKBUILD | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD index df3fc74ea4..90d044eada 100644 --- a/main/kamailio/APKBUILD +++ b/main/kamailio/APKBUILD @@ -1,8 +1,8 @@ # Contributor: Michael Mason <ms13sp@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=kamailio -pkgver=3.0.2 -pkgrel=6 +pkgver=3.0.3 +pkgrel=1 pkgdesc="Open Source SIP Server" url="http://www.kamailio.org/" pkgusers="kamailio" @@ -10,7 +10,7 @@ pkggroups="kamailio" license="GPL" depends= makedepends="bison flex expat-dev postgresql-dev pcre-dev mysql-dev - libxml2-dev curl-dev unixodbc-dev confuse-dev" + libxml2-dev curl-dev unixodbc-dev confuse-dev ncurses-dev sqlite-dev" install="$pkgname.pre-install $pkgname.pre-upgrade" subpackages="$pkgname-doc $pkgname-postgres $pkgname-presence $pkgname-pcre $pkgname-mediaproxy $pkgname-unixodbc $pkgname-mysql" @@ -18,6 +18,7 @@ source="http://www.kamailio.org/pub/kamailio/$pkgver/src/kamailio-${pkgver}_src. kamailio.cfg kamailio.initd kamailio-3-backslash.patch + sqlite.patch " _builddir="$srcdir"/$pkgname-$pkgver @@ -36,7 +37,14 @@ _modules="$_default $_postgres $_mediaproxy $_odbc $_presence $_mysql $_pcre" prepare() { cd "$_builddir" - patch -p1 -i "$srcdir"/kamailio-3-backslash.patch || return 1 + for i in $source; do + case $i in + *.patch) + msg "Apllying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done sed -i \ -e "s:-O9 -funroll-loops:$CFLAGS:g" \ @@ -62,29 +70,21 @@ prepare() { build() { cd "$_builddir" - # workaround parallel build issue - make LOCALBASE=/usr \ - cfg_target=/etc/kamailio/ \ - MODS_MYSQL=yes \ - MODS_PCRE=yes \ - MODS_RADIUS= \ - TLS= \ - include_modules="$_modules" \ - -C lib/kcore strcommon.o || return 1 - - make LOCALBASE=/usr \ + make -j1 LOCALBASE=/usr \ cfg_target=/etc/kamailio/ \ MODS_MYSQL=yes \ MODS_PCRE=yes \ MODS_RADIUS= \ TLS= \ include_modules="$_modules" \ + basedir="$pkgdir" \ + cfg_prefix="$pkgdir" \ all || return 1 } package() { cd "$_builddir" - make LOCALBASE=/usr \ + make -j1 LOCALBASE=/usr \ cfg_target=/etc/kamailio/ \ MODS_MYSQL=yes \ MODS_PCRE=yes \ @@ -164,7 +164,8 @@ unixodbc() { _mv_mod_k $_odbc } -md5sums="dd039e078a77032a423fb15f9685ad31 kamailio-3.0.2_src.tar.gz +md5sums="eac755ba385d9ed68388abbf74b2b1c1 kamailio-3.0.3_src.tar.gz a3c959ec568c43a905710e7d25cd8c25 kamailio.cfg 81100c479890a2a8c2628db22fdd1a0c kamailio.initd -36f81be3a082a81497e261ac8e6c5414 kamailio-3-backslash.patch" +36f81be3a082a81497e261ac8e6c5414 kamailio-3-backslash.patch +ed43b0d8d60b1e87199ce18ba326ccee sqlite.patch" |