diff options
author | Michael Gerber | 2016-01-02 15:56:02 +0100 |
---|---|---|
committer | Michael Gerber | 2016-01-02 15:56:02 +0100 |
commit | 63eb6c9433343ec09567d977b8776adcdf833a13 (patch) | |
tree | b0af061a345fb9256b920884612d5dc50c7119f7 | |
download | aur-63eb6c9433343ec09567d977b8776adcdf833a13.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | open-xchange-oauth.install | 14 |
3 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9e1f13c17beb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +# Generated by mksrcinfo v8 +# Sat Jan 2 14:56:02 UTC 2016 +pkgbase = open-xchange-oauth + pkgdesc = The Open-Xchange OAuth implementation + pkgver = 7.8.0 + pkgrel = 6 + url = http://www.ox.io/ + install = open-xchange-oauth.install + arch = any + license = GPLv2 + depends = open-xchange-core + provides = open-xchange-oauth + source = https://software.open-xchange.com/products/appsuite/stable/debs/DebianJessie/all/open-xchange-oauth_7.8.0-6_all.deb + sha256sums = 0121bcd6eac9fc52095414e6ec62e79d0831858c9f0d2f7328af8f44bd9c4c42 + +pkgname = open-xchange-oauth + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4cda1da73f1e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Michael Gerber <aur at lynxcore dot org > +pkgname=open-xchange-oauth +pkgver=7.8.0 +pkgrel=6 +pkgdesc='The Open-Xchange OAuth implementation' +groups=() +install='open-xchange-oauth.install' +arch=('any') +url='http://www.ox.io/' +license=('GPLv2') +depends=('open-xchange-core') +makedepends=() +conflicts=() +provides=('open-xchange-oauth') +source=('https://software.open-xchange.com/products/appsuite/stable/debs/DebianJessie/all/open-xchange-oauth_7.8.0-6_all.deb') +sha256sums=('0121bcd6eac9fc52095414e6ec62e79d0831858c9f0d2f7328af8f44bd9c4c42') + +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-oauth.install b/open-xchange-oauth.install new file mode 100644 index 000000000000..27ab8bbd33a0 --- /dev/null +++ b/open-xchange-oauth.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 +} |