summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMartiMcFly2018-05-31 00:42:16 +0200
committerMartiMcFly2018-05-31 00:42:16 +0200
commitaf14ad56e74d0d130f8a6963b2d26fd9976c1c93 (patch)
tree6079ee1e2e046a1b0732bebd1c27af6144404070 /PKGBUILD
parent851f1f4a23823cc5b85421355657c1059513c636 (diff)
downloadaur-af14ad56e74d0d130f8a6963b2d26fd9976c1c93.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 21 insertions, 19 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2512012897a..7baab574562 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,25 +5,24 @@
pkgname=z-push
groups=('zarafa'
'kopano')
-pkgver=2.3.4
-_pkgrel=2.3
+pkgver=2.4.1
pkgrel=1
pkgdesc="open-source implementation of the ActiveSync protocol"
arch=('any')
url="http://z-push.sf.net/"
license=('AGPL3')
+makedepends=('git'
+ 'php-composer')
depends=('nginx'
'php'
- 'zarafa-server' # php-mapi
+ 'kopano-core' # php-mapi
'php-fpm')
-optdepends=('apache'
- 'zarafa-server')
install='install'
backup=('etc/webapps/z-push/nginx-location.conf'
'etc/php/conf.d/z-push.ini'
'etc/php/fpm.d/z-push.conf')
options=('!strip')
-source=("${pkgname}-${pkgver}.tar.gz::http://download.z-push.org/final/${_pkgrel}/${pkgname}-${pkgver}.tar.gz"
+source=("${pkgname}-${pkgver}::git+https://stash.z-hub.io/scm/zp/z-push.git#tag=${pkgver}"
"apache.example.conf"
"htaccess"
"z-push.ini"
@@ -33,24 +32,25 @@ source=("${pkgname}-${pkgver}.tar.gz::http://download.z-push.org/final/${_pkgrel
"php-fpm.example.conf"
"z-push-admin"
"z-push-top")
-md5sums=('35416c418c6e029b98eea7581e297648'
- '32a459bd61135b6c5e99e82e3a6b0007'
- '1091aa1ba272ef05bf628f73b05c527a'
- 'fee38ae6ba98ae7afcb49b1edbc31d8e'
- 'b61c194ee4e3e3bf8bfa6a72e6f38019'
- '9637d4164f85cb3fb9a886654645a46c'
- '1bdab5b1e4473c1b0f6ce2e5c8f1da61'
- 'cacf375cabab0eaf7792d2d3a1a6b11a'
- '626a81889bebd6184d8f90deb00f6119'
- 'dfa0d3eceef2433ded6229b6611c5e02')
+md5sums=('SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP'
+ 'SKIP')
package() {
# according to https://wiki.archlinux.org/index.php/Web_application_package_guidelines
mkdir -p ${pkgdir}/usr/share/webapps/z-push
- cp -r ${srcdir}/${pkgname}-${pkgver}/* ${pkgdir}/usr/share/webapps/z-push/
+ cp -r ${srcdir}/${pkgname}-${pkgver}/src/* ${pkgdir}/usr/share/webapps/z-push/
cp ${srcdir}/htaccess ${pkgdir}/usr/share/webapps/z-push/.htaccess
rm ${pkgdir}/usr/share/webapps/z-push/config.php
- sed -i -e "s|\('MAPI_SERVER', \).*$|\1'file:///var/run/zarafad/server.sock'\);|" ${pkgdir}/usr/share/webapps/z-push/backend/kopano/config.php
+ rm ${pkgdir}/usr/share/webapps/z-push/policies.ini
+ sed -i -e "s|\('MAPI_SERVER', \).*$|\1'file:///var/run/kopano/server.sock'\);|" ${pkgdir}/usr/share/webapps/z-push/backend/kopano/config.php
mkdir -p ${pkgdir}/usr/bin
cp ${srcdir}/z-push-admin ${pkgdir}/usr/bin
@@ -61,10 +61,12 @@ package() {
cp ${srcdir}/php-fpm.example.conf ${pkgdir}/etc/webapps/z-push/
cp ${srcdir}/nginx-ssl.example.conf ${pkgdir}/etc/webapps/z-push/
cp ${srcdir}/nginx-location.conf ${pkgdir}/etc/webapps/z-push/
- cp ${srcdir}/${pkgname}-${pkgver}/config.php ${pkgdir}/etc/webapps/z-push/config.example.php
+ cp ${srcdir}/${pkgname}-${pkgver}/src/config.php ${pkgdir}/etc/webapps/z-push/config.example.php
+ cp ${srcdir}/${pkgname}-${pkgver}/src/policies.ini ${pkgdir}/etc/webapps/z-push/policies.ini
sed -i -e "s|\('BACKEND_PROVIDER', \).*$|\1'BackendKopano'\);|" ${pkgdir}/etc/webapps/z-push/config.example.php
ln -s /etc/webapps/z-push/config.php ${pkgdir}/usr/share/webapps/z-push/config.php
+ ln -s /etc/webapps/z-push/policies.ini ${pkgdir}/usr/share/webapps/z-push/policies.ini
mkdir -p ${pkgdir}/etc/php/conf.d
cp ${srcdir}/z-push.ini ${pkgdir}/etc/php/conf.d