aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-09-22 08:10:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-09-22 08:10:20 +0000
commitd04fddf1c58ad1e82939b7cdca22bb94373ccca8 (patch)
treef767a480e5cb411783c2700d0556375e6620bc7e /main
parent0616de25f2b0775ce9a5956079df623479d59284 (diff)
downloadaports-d04fddf1c58ad1e82939b7cdca22bb94373ccca8.tar.bz2
aports-d04fddf1c58ad1e82939b7cdca22bb94373ccca8.tar.xz
main/asterisk: add asterisk user to dialout group
fixes #170
Diffstat (limited to 'main')
-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