Commit 00761133 authored by Natanael Copa's avatar Natanael Copa

main/kamailio: add the missing pre-install script

fixes #298
(cherry picked from commit cf99941b)
parent cb34ce28
......@@ -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"
#!/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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment