diff options
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | install | 23 |
3 files changed, 29 insertions, 10 deletions
@@ -1,13 +1,14 @@ # Generated by mksrcinfo v8 -# Tue Aug 9 14:55:14 UTC 2016 +# Fri Aug 19 13:34:21 UTC 2016 pkgbase = sabre-zarafa pkgdesc = provide a full CardDav backend for SabreDAV to connect with Zarafa groupware pkgver = 0.23 - pkgrel = 95 + pkgrel = 77 url = https://github.com/1afa/sabre-zarafa install = install arch = any groups = zarafa + groups = kopano license = AGPL3 makedepends = php-composer makedepends = git @@ -1,9 +1,10 @@ -# Maintainer: MartiMcFly martimcfly@autorisation.de +# Maintainer: MartiMcFly <martimcfly [at] autorisation.de> pkgname=sabre-zarafa -groups=('zarafa') +groups=('zarafa' + 'kopano') pkgver=0.23 -pkgrel=95 +pkgrel=77 pkgdesc="provide a full CardDav backend for SabreDAV to connect with Zarafa groupware" arch=('any') url="https://github.com/1afa/sabre-zarafa" @@ -82,6 +83,6 @@ package() { rm /tmp/composer.ini # perform settings - # => replace carddav_root_uri - sed -i -e "s/\(CARDDAV_ROOT_URI', '\)\(.*\)\('.*$\)/\1\/carddav\3/" ${pkgdir}/etc/webapps/${pkgname}/config.example.inc.php + sed -i -e "s|\(CARDDAV_ROOT_URI', '\)\(.*\)\('.*$\)|\1/carddav\3|" ${pkgdir}/etc/webapps/${pkgname}/config.example.inc.php + sed -i -e "s|\(ZARAFA_SERVER', '\)\(.*\)\('.*$\)|\1file:///var/run/zarafad/server.sock\3|" ${pkgdir}/etc/webapps/${pkgname}/config.example.inc.php } @@ -1,6 +1,23 @@ +#!/bin/bash + +# care about existing files +function installdir() { + local owner="$1" + local moddir="$2" + local modfile="$3" + local directory="$4" + + mkdir -p "$directory" + find $directory -exec chown "$owner" {} \; + find $directory -type f -exec chmod "$modfile" {} \; + find $directory -type d -exec chmod "$moddir" {} \; +} + + post_install() { - cp -n /etc/webapps/sabre-zarafa/config.example.inc.php /etc/webapps/sabre-zarafa/config.inc.php - chown -R http:http /var/log/sabre-zarafa - chown -R http:http /var/lib/sabre-zarafa + cp -n /etc/webapps/sabre-zarafa/config.example.inc.php /etc/webapps/sabre-zarafa/config.inc.php + + installdir http:http 0700 0600 /var/log/sabre-zarafa + installdir http:http 0700 0600 /var/lib/sabre-zarafa } |