diff options
author | Michael Gerber | 2016-01-02 15:55:36 +0100 |
---|---|---|
committer | Michael Gerber | 2016-01-02 15:55:36 +0100 |
commit | 816131d1f4377beb64e79698a1ef391eb9c048cc (patch) | |
tree | 71082befe402067e2cf8538b87d3b794eeeb4c35 | |
download | aur-open-xchange-dav.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | open-xchange-dav.install | 14 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f13ec89a09cd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Sat Jan 2 14:55:35 UTC 2016 +pkgbase = open-xchange-dav + pkgdesc = The Open-Xchange CardDAV and CalDAV implementation + pkgver = 7.8.0 + pkgrel = 6 + url = http://www.ox.io/ + install = open-xchange-dav.install + arch = any + license = GPLv2 + depends = open-xchange-core + depends = open-xchange-freebusy + provides = open-xchange-dav + source = https://software.open-xchange.com/products/appsuite/stable/debs/DebianJessie/all/open-xchange-dav_7.8.0-6_all.deb + sha256sums = 30725e82c74e300d4314630fd6fe123da6455a16d352bfe6510667a13520dbe5 + +pkgname = open-xchange-dav + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f7fa85db0983 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Michael Gerber <aur at lynxcore dot org > +pkgname=open-xchange-dav +pkgver=7.8.0 +pkgrel=6 +pkgdesc='The Open-Xchange CardDAV and CalDAV implementation' +groups=() +install='open-xchange-dav.install' +arch=('any') +url='http://www.ox.io/' +license=('GPLv2') +depends=('open-xchange-core' 'open-xchange-freebusy') +makedepends=() +conflicts=() +provides=('open-xchange-dav') +source=('https://software.open-xchange.com/products/appsuite/stable/debs/DebianJessie/all/open-xchange-dav_7.8.0-6_all.deb') +sha256sums=('30725e82c74e300d4314630fd6fe123da6455a16d352bfe6510667a13520dbe5') + +package() { + if test -f "data.tar.xz"; then + tar xf data.tar.xz + cp -a $(find . -mindepth 1 -maxdepth 1 -type d) "$pkgdir" + fi + + if test -f "data.tar.gz"; then + tar xf data.tar.gz + cp -a $(find . -mindepth 1 -maxdepth 1 -type d) "$pkgdir" + fi +} diff --git a/open-xchange-dav.install b/open-xchange-dav.install new file mode 100644 index 000000000000..27ab8bbd33a0 --- /dev/null +++ b/open-xchange-dav.install @@ -0,0 +1,14 @@ +# This is a default template for a post-install scriptlet. +# Uncomment only required functions and remove any functions +# you don't need (and this header). + +pre_install() { + if ! id -u "open-xchange" >/dev/null 2>&1; then + echo "user open-xchange does not exist. Creating it now" + useradd -U -s /usr/bin/false -d /opt/open-xchange open-xchange + fi +} + +post_install() { + chown -R open-xchange:open-xchange /opt/open-xchange +} |