aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/asterisk/APKBUILD4
-rw-r--r--main/asterisk/asterisk.pre-install3
l---------main/asterisk/asterisk.pre-upgrade1
3 files changed, 6 insertions, 2 deletions
diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD
index 657f61714f..e9591379ea 100644
--- a/main/asterisk/APKBUILD
+++ b/main/asterisk/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=asterisk
pkgver=1.6.0.15
-pkgrel=1
+pkgrel=2
pkgdesc="Asterisk: A Module Open Source PBX System"
url="http://www.asterisk.org/"
license="GPL"
@@ -10,7 +10,7 @@ depends=
makedepends="autoconf automake libtool ncurses-dev popt-dev newt-dev zlib-dev
postgresql-dev unixodbc-dev dahdi-tools-dev libpri-dev tar
freetds-dev openssl-dev lua-dev"
-install="$pkgname.pre-install $pkgname.post-install"
+install="$pkgname.pre-install $pkgname.pre-upgrade $pkgname.post-install"
subpackages="$pkgname-dev $pkgname-doc $pkgname-pgsql $pkgname-odbc
$pkgname-tds"
source="http://downloads.digium.com/pub/asterisk/releases/$pkgname-$pkgver.tar.gz
diff --git a/main/asterisk/asterisk.pre-install b/main/asterisk/asterisk.pre-install
index f4724251f3..09985d7cdb 100644
--- a/main/asterisk/asterisk.pre-install
+++ b/main/asterisk/asterisk.pre-install
@@ -5,5 +5,8 @@ home=/var/lib/asterisk
adduser -h $home -s /bin/false -D $user 2>/dev/null
mkdir -p $home
chown $user:$user $home
+
+addgroup dialout 2>/dev/null
+addgroup $user dialout 2>/dev/null
exit 0
diff --git a/main/asterisk/asterisk.pre-upgrade b/main/asterisk/asterisk.pre-upgrade
new file mode 120000
index 0000000000..1765e9ca55
--- /dev/null
+++ b/main/asterisk/asterisk.pre-upgrade
@@ -0,0 +1 @@
+asterisk.pre-install \ No newline at end of file