summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-01 15:57:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-01 15:58:49 +0000
commit007611336d875e6dd5c7e38645893b13aa1e7d8a (patch)
tree44b2061fedc89be063d0c8601609d9018878a21c
parentcb34ce28fe03cf367b52cb738a4f1c55d9cebd48 (diff)
downloadaports-007611336d875e6dd5c7e38645893b13aa1e7d8a.tar.bz2
aports-007611336d875e6dd5c7e38645893b13aa1e7d8a.tar.xz
main/kamailio: add the missing pre-install script
fixes #298 (cherry picked from commit cf99941b6e947de9060080277c1041d1e1081f2a)
-rw-r--r--main/kamailio/APKBUILD8
-rw-r--r--main/kamailio/kamailio.pre-install3
2 files changed, 3 insertions, 8 deletions
diff --git a/main/kamailio/APKBUILD b/main/kamailio/APKBUILD
index 35b648fc..28cda38d 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=4
+pkgrel=5
pkgdesc="Open Source SIP Server"
url="http://www.kamailio.org/"
pkgusers="kamailio"
@@ -11,14 +11,12 @@ license="GPL"
depends=
makedepends="bison flex expat-dev postgresql-dev mysql-dev pcre-dev
libxml2-dev curl-dev unixodbc-dev confuse-dev"
-install=
+install="$pkgname.pre-install $pkgname.post-install"
subpackages="$pkgname-doc $pkgname-mysql $pkgname-postgres $pkgname-pcre
$pkgname-presence $pkgname-mediaproxy $pkgname-unixodbc"
source="http://www.kamailio.org/pub/kamailio/$pkgver/src/$pkgname-$pkgver-notls_src.tar.gz
kamailio.cfg
kamailio.initd
- kamailio.pre-install
- kamailio.post-install
kamailio-backslash.patch
"
@@ -131,6 +129,4 @@ unixodbc() {
md5sums="17eeea5cdc2fdd28b2f9a1bad6598de2 kamailio-1.5.3-notls_src.tar.gz
eb665248ee39cf755a247286affc5cbb kamailio.cfg
81100c479890a2a8c2628db22fdd1a0c kamailio.initd
-c646af2dd31f5c4289a2f802c873d98f kamailio.pre-install
-3fbaf633ff1620d0d526fc4047c7bed9 kamailio.post-install
b0ea6c22e2e40d5d12a547898aef6973 kamailio-backslash.patch"
diff --git a/main/kamailio/kamailio.pre-install b/main/kamailio/kamailio.pre-install
index 78dfa38b..86d84acc 100644
--- a/main/kamailio/kamailio.pre-install
+++ b/main/kamailio/kamailio.pre-install
@@ -1,5 +1,4 @@
#!/bin/sh
-adduser -H -h /var/empty -s /bin/false -D kamailio 2>/dev/null
-
+adduser -h /var/run/kamailio -s /bin/false -S -D -H kamailio 2>/dev/null
exit 0