aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2021-06-10 12:06:53 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2021-06-10 13:11:40 +0000
commitb87bb459000ef5d23d2a1c7e53d524a34bf76e57 (patch)
tree8dceee4544dcbe9885993227b11009072adda126
parentb881d448f7906ee654d95cbd75c3d1b723b65b4f (diff)
downloadaports-b87bb459000ef5d23d2a1c7e53d524a34bf76e57.tar.gz
aports-b87bb459000ef5d23d2a1c7e53d524a34bf76e57.tar.bz2
aports-b87bb459000ef5d23d2a1c7e53d524a34bf76e57.tar.xz
main/asterisk: logrotate creates file with the same permissions as installed
Fixes #11142 /var/log/asterisk has 755 asterisk:asterisk permissions log files in asterisk log dir are created with 0644 permissions with this patch, logrotate keeps the 0644 permissions as installed.
-rw-r--r--main/asterisk/APKBUILD8
-rw-r--r--main/asterisk/asterisk.logrotate2
2 files changed, 6 insertions, 4 deletions
diff --git a/main/asterisk/APKBUILD b/main/asterisk/APKBUILD
index c3d50e6c0f..26a058f20a 100644
--- a/main/asterisk/APKBUILD
+++ b/main/asterisk/APKBUILD
@@ -4,7 +4,7 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=asterisk
pkgver=18.2.2
-pkgrel=0
+pkgrel=1
pkgdesc="Modular Open Source PBX System"
pkgusers="asterisk"
pkggroups="asterisk"
@@ -191,7 +191,8 @@ sound_en() {
chown -R asterisk:asterisk "$subpkgdir"/var/*/asterisk
}
-sha512sums="e15fe3c7f46d49991bcb6f6f565f15e4af0d658b4cd6b091079209dd95a8027858effdc2f2314d72ed46a73cdebc089d3c27d5cf8db50d2d21f3c317a8a4a546 asterisk-18.2.2.tar.gz
+sha512sums="
+e15fe3c7f46d49991bcb6f6f565f15e4af0d658b4cd6b091079209dd95a8027858effdc2f2314d72ed46a73cdebc089d3c27d5cf8db50d2d21f3c317a8a4a546 asterisk-18.2.2.tar.gz
aacef3f4796fb1abd33266998b53909cb4b36e7cc5ad2f7bac68bdc43e9a9072d9a4e2e7e681bddfa31f3d04575eb248afe6ea95da780c67e4829c1e22adfe1b asterisk-addon-mp3-r201.patch.gz
771237ba6d42ab62d914f2702234b23fd0bc8c22f2aa33b0e745c9170163c8046f6d48ecb299faab3d6fb397f1aa046421083c3cc88510c9779861c522f357dd 10-musl-mutex-init.patch
0fae11b42894ab3d405bc50e9275b9084712b482fbf9b4259ea938667fc5cbe413655f3ff83da0f607151bb2b6e49c2f741b5ada6944dbb478f076ef8d86380a 20-musl-astmm-fix.patch
@@ -199,4 +200,5 @@ aacef3f4796fb1abd33266998b53909cb4b36e7cc5ad2f7bac68bdc43e9a9072d9a4e2e7e681bddf
ba33f11169284f190b7dabab1da7d2751cb65d7976408db635a892fa17d7552e1660350017e7aada3464ecc7d9d6e99d6ad76d66c0036de062a386cffbc948e6 40-asterisk-cdefs.patch
0044c5db468ec8f2385d18d476f89976f6d036448583a4ef8017ce7a6f8f72105337e6b20037ffe47f561d2877fc9c86720aef23ab037df89b36dc140a5924c4 asterisk.initd
ab6b6f08ff43268cbb1abb7ed7d678949991ba495682a644bbaeb017d6adbff0a43297905fd73ae8db1786a28d5b5904f1bc253209a0e388c8a27f26c6ce14ed asterisk.confd
-7591d2faf539d05d9ee4e431c78a5e20686721fd79221ad94dffeeaff9282220b09cb9aec214bd7a8d12affaec0276c9c91e6e21af8b6712c0a9502b60b02f2b asterisk.logrotate"
+449b5808d90c813c23432274fba47e53227e3a924a55719d2f9e5a90fd2dfb33660a5c85c7e8f11fbb1cd93387e5c68329ed5583f7a64c2451fadad62a9f87dd asterisk.logrotate
+"
diff --git a/main/asterisk/asterisk.logrotate b/main/asterisk/asterisk.logrotate
index 30836c5c11..a3cfdc6c05 100644
--- a/main/asterisk/asterisk.logrotate
+++ b/main/asterisk/asterisk.logrotate
@@ -2,7 +2,7 @@
missingok
rotate 5
weekly
- create 0640 asterisk asterisk
+ create 0644 asterisk asterisk
postrotate
/usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
endscript