diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-02-11 05:31:10 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-02-11 05:31:10 +0200 |
commit | 226b4ff5619caba916c2931d2977471569921fa6 (patch) | |
tree | e74452a10c907c3bfb87d76b3634113a415fd2b6 /main | |
parent | 753eb46af48e634584122d7ba77f589ee88e6e9f (diff) | |
download | aports-226b4ff5619caba916c2931d2977471569921fa6.tar.bz2 aports-226b4ff5619caba916c2931d2977471569921fa6.tar.xz |
main/asterisk: fix permissions more
Diffstat (limited to 'main')
-rw-r--r-- | main/asterisk/APKBUILD | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD index 1f03feb4d0..177d47a015 100644 --- a/main/asterisk/APKBUILD +++ b/main/asterisk/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Timo Teras <timo.teras@iki.fi> pkgname=asterisk pkgver=10.1.2 -pkgrel=1 +pkgrel=2 pkgdesc="Asterisk: A Module Open Source PBX System" pkgusers="asterisk" pkggroups="asterisk" @@ -78,14 +78,15 @@ package() { cd "$_builddir" make -j1 DESTDIR="$pkgdir" install - install -o asterisk -g asterisk -d "$pkgdir"/var/run/asterisk - install -o asterisk -g asterisk -d "$pkgdir"/var/lib/asterisk + install -d "$pkgdir"/var/run/asterisk + install -d "$pkgdir"/var/lib/asterisk install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname install -m644 -D "$srcdir"/$pkgname.logrotate \ "$pkgdir"/etc/logrotate.d/$pkgname + chown -R asterisk:asterisk "$pkgdir"/var/*/asterisk chown -R asterisk:asterisk "$pkgdir"/etc/asterisk chmod -R u=rwX,g=rX,o= "$pkgdir"/etc/asterisk } @@ -149,6 +150,10 @@ sample() { cd "$_builddir" mkdir -p "$subpkgdir"/var/lib/asterisk/phoneprov make -j1 samples DESTDIR="$subpkgdir" + + chown -R asterisk:asterisk "$subpkgdir"/var/*/asterisk + chown -R asterisk:asterisk "$subpkgdir"/etc/asterisk + chmod -R u=rwX,g=rX,o= "$subpkgdir"/etc/asterisk } sound_moh() { @@ -157,6 +162,7 @@ sound_moh() { depends= install= _move_dir var/lib/asterisk/moh + chown -R asterisk:asterisk "$subpkgdir"/var/*/asterisk } sound_en() { @@ -165,6 +171,7 @@ sound_en() { depends= install= _move_dir var/lib/asterisk/sounds/en + chown -R asterisk:asterisk "$subpkgdir"/var/*/asterisk } md5sums="5d3e92795e03eaf94421a8fa5518f3df asterisk-10.1.2.tar.gz |