diff options
Diffstat (limited to 'testing/kamailio/APKBUILD')
-rw-r--r-- | testing/kamailio/APKBUILD | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/testing/kamailio/APKBUILD b/testing/kamailio/APKBUILD index f40d89fac3..a5d6bfe482 100644 --- a/testing/kamailio/APKBUILD +++ b/testing/kamailio/APKBUILD @@ -1,9 +1,12 @@ # Contributor: Michael Mason <ms13sp@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=kamailio pkgver=1.5.2 -pkgrel=2 +pkgrel=3 pkgdesc="Open Source SIP Server" url="http://www.kamailio.org/" +pkgusers="kamailio" +pkggroups="kamailio" license="GPL" depends= makedepends="bison flex expat-dev postgresql-dev mysql-dev pcre-dev @@ -25,9 +28,13 @@ build() { cd scripts 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 '1s:/bin/bash:/bin/sh:' kamctl kamdbctl \ + || return 1 cd .. make prefix=/usr \ + cfg-dir=/etc/kamailio \ MODS_MYSQL=yes \ MODS_PCRE=yes \ MODS_PRESENCE=yes \ @@ -36,6 +43,7 @@ build() { include_modules=db_postgres \ all || return 1 make prefix=/usr \ + cfg-dir=/etc/kamailio \ MODS_MYSQL=yes \ MODS_PCRE=yes \ MODS_PRESENCE=yes \ @@ -45,6 +53,7 @@ build() { basedir="$pkgdir" install || return 1 install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + install -d -o kamailio "$pkgdir"/var/run/kamailio } _mv_mod() { @@ -87,6 +96,6 @@ presence() { } md5sums="6c6f4ed6fbcb4d008b8ac3de5b99ce99 kamailio-1.5.2-notls_src.tar.gz -e6b93397ec2a1ec094d23d93d87771bd kamailio.initd +84f3c403b65a8fca9df4b71f51224e21 kamailio.initd c646af2dd31f5c4289a2f802c873d98f kamailio.pre-install 3fbaf633ff1620d0d526fc4047c7bed9 kamailio.post-install" |