diff options
author | Javier Torres | 2015-06-09 17:12:12 +0200 |
---|---|---|
committer | Javier Torres | 2015-06-09 17:12:12 +0200 |
commit | 53d1bf4d4154ca79d901effe0a02baa3f7735622 (patch) | |
tree | 0344d886ed246eef91129baa822a64a82d67f52b | |
download | aur-53d1bf4d4154ca79d901effe0a02baa3f7735622.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 44 | ||||
-rw-r--r-- | apache.patch | 28 | ||||
-rw-r--r-- | kolab-webadmin.install | 7 |
4 files changed, 97 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9d17e9a79d18 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = kolab-webadmin + pkgdesc = Kolab Web Administration Panel + pkgver = 3.2.6 + pkgrel = 1 + url = http://kolab.org + install = kolab-webadmin.install + arch = any + license = GPL3 + depends = php-ldap + depends = pear-net-ldap3 + optdepends = pykolab: configuration tool + source = http://mirror.kolabsys.com/pub/releases/kolab-webadmin-3.2.6.tar.gz + source = apache.patch + sha256sums = c39083cb2862a844aaef380953ce58c937016ae76f0bef4350da4b3206aefd27 + sha256sums = 9f3c03d486a66437fb57ecefc883bd740af6b8b74237b2f819d13ad5df9b034c + +pkgname = kolab-webadmin + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e908469f9418 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Javier Torres <javitonino [at] gmail [dot] com> + +pkgname=kolab-webadmin +pkgver=3.2.6 +pkgrel=1 +pkgdesc='Kolab Web Administration Panel' +arch=('any') +license=('GPL3') +makedepends=() +depends=('php-ldap' 'pear-net-ldap3') +url="http://kolab.org" +install=kolab-webadmin.install +#backup=() +source=("http://mirror.kolabsys.com/pub/releases/${pkgname}-${pkgver}.tar.gz" + "apache.patch") +optdepends=('pykolab: configuration tool') + +sha256sums=('c39083cb2862a844aaef380953ce58c937016ae76f0bef4350da4b3206aefd27' + '9f3c03d486a66437fb57ecefc883bd740af6b8b74237b2f819d13ad5df9b034c') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + patch -p1 < "${srcdir}/apache.patch" +} + +package() { + mkdir -p "${pkgdir}/usr/share/webapps/${pkgname}" + cp -dpr --no-preserve=ownership "$srcdir/${pkgname}-${pkgver}/public_html" "${pkgdir}/usr/share/webapps/${pkgname}" + + # Exclude external dependecies. Use system version instead + cd "$srcdir/${pkgname}-${pkgver}" + find "lib" -type f \( -path "lib/ext/*" -or -exec \ + install -D {} "${pkgdir}/usr/share/webapps/${pkgname}/{}" \; \) + + mkdir -p "${pkgdir}/usr/share/doc" + cp -dpr --no-preserve=ownership "$srcdir/${pkgname}-${pkgver}/doc" "${pkgdir}/usr/share/doc/${pkgname}" + + mkdir -p "${pkgdir}/var/log/${pkgname}" + ln -s "/var/log/${pkgname}" "${pkgdir}/usr/share/webapps/${pkgname}/logs" + + mkdir -p "${pkgdir}/var/cache/${pkgname}" + ln -s "/var/cache/${pkgname}" "${pkgdir}/usr/share/webapps/${pkgname}/cache" +} diff --git a/apache.patch b/apache.patch new file mode 100644 index 000000000000..e437bcde95ea --- /dev/null +++ b/apache.patch @@ -0,0 +1,28 @@ +--- a/doc/hosted-kolab.conf ++++ b/doc/hosted-kolab.conf +@@ -9,9 +9,9 @@ + # See the Kolab Groupware Installation Manual for more information. + # + +-Alias /hosted-kolab /usr/share/kolab-webadmin/hosted/ ++Alias /hosted-kolab /usr/share/webapps/kolab-webadmin/hosted/ + +-<Directory "/usr/share/kolab-webadmin/hosted/"> ++<Directory "/usr/share/webapps/kolab-webadmin/hosted/"> + <IfModule mod_rewrite.c> + RewriteEngine on + # NOTE: This needs to point to the base uri of your installation. +--- a/doc/kolab-webadmin.conf ++++ b/doc/kolab-webadmin.conf +@@ -9,9 +9,9 @@ + # See the Kolab Groupware Installation Manual for more information. + # + +-Alias /kolab-webadmin /usr/share/kolab-webadmin/public_html/ ++Alias /kolab-webadmin /usr/share/webapps/kolab-webadmin/public_html/ + +-<Directory "/usr/share/kolab-webadmin/public_html/"> ++<Directory "/usr/share/webapps/kolab-webadmin/public_html/"> + <IfModule mod_rewrite.c> + RewriteEngine on + # NOTE: This needs to point to the base uri of your installation. diff --git a/kolab-webadmin.install b/kolab-webadmin.install new file mode 100644 index 000000000000..99bd9339f403 --- /dev/null +++ b/kolab-webadmin.install @@ -0,0 +1,7 @@ +post_install() { + chown -R http:http /var/{log,cache}/kolab-webadmin +} + +post_upgrade() { + post_install +} |