diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-07-26 23:19:30 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-07-27 15:30:37 +0200 |
commit | d825a8394c494b9768c60df29658ca82db674327 (patch) | |
tree | f12de2e4e764e37e8f57aaf962bed8fc2246e87a /community/roundcubemail | |
parent | b7b8a7c59b48aee29668ff44d561a50590854a2d (diff) | |
download | aports-d825a8394c494b9768c60df29658ca82db674327.tar.bz2 aports-d825a8394c494b9768c60df29658ca82db674327.tar.xz |
community/roundcubemail: copy plugin configs into /etc
Diffstat (limited to 'community/roundcubemail')
-rw-r--r-- | community/roundcubemail/APKBUILD | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/community/roundcubemail/APKBUILD b/community/roundcubemail/APKBUILD index 357a4fc017..4c3a6e9997 100644 --- a/community/roundcubemail/APKBUILD +++ b/community/roundcubemail/APKBUILD @@ -89,6 +89,8 @@ prepare() { } package() { + local config plugname + mkdir -p "$pkgdir/$_destdir" cd "$pkgdir" @@ -98,6 +100,7 @@ package() { # on upgrades. mkdir -p ./etc/ mv ./$_destdir/config ./etc/roundcube + mkdir ./etc/roundcube/plugins local file; for file in CHANGELOG INSTALL README.md UPGRADING; do _mv ./$_destdir/$file ./usr/share/doc/roundcube/ @@ -108,6 +111,17 @@ package() { install -m 644 -D "$srcdir"/$pkgname.logrotate ./etc/logrotate.d/$pkgname install -d -m 750 -o roundcube -g roundcube ./var/log/roundcube + + # Copy plugin configs into /etc and symlink them back. + cd ./$_destdir/plugins + for config in */config.inc.php.dist; do + plugname=${config%/*} + + install -m 644 -g roundcube $config -D \ + "$pkgdir"/etc/roundcube/plugins/$plugname.inc.php + ln -s /etc/roundcube/plugins/$plugname.inc.php \ + $plugname/config.inc.php + done } installer() { |