From 2fd9514fd6b2268c8e03c104b9f2ce7f08bb041f Mon Sep 17 00:00:00 2001 From: cippaciong Date: Sat, 9 Nov 2013 20:03:59 +0100 Subject: [PATCH] aur/owncloud to 5.0.13-1 --- aur/owncloud/PKGBUILD | 18 +++++++++++------- aur/owncloud/owncloud.conf | 2 +- aur/owncloud/owncloud.install | 10 +++++----- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/aur/owncloud/PKGBUILD b/aur/owncloud/PKGBUILD index 92afe11e9..a75380867 100644 --- a/aur/owncloud/PKGBUILD +++ b/aur/owncloud/PKGBUILD @@ -4,7 +4,7 @@ # ALARM Maintainer: Tommaso Sardelli pkgname=owncloud -pkgver=5.0.12 +pkgver=5.0.13 pkgrel=1 pkgdesc="A cloud server to store your files centrally on a hardware controlled by you" arch=('any') @@ -14,10 +14,12 @@ depends=('php-gd' 'php-intl') optdepends=("php-apache: to use the Apache web server" "php-sqlite: to use the SQLite database backend" "php-pgsql: to use the PostgreSQL database backend" "mariadb: to use the MySQL database backend" "smbclient: to mount SAMBA shares") makedepends=() source=("http://download.owncloud.org/community/$pkgname-$pkgver.tar.bz2" 'owncloud.conf') -backup=('etc/httpd/conf/extra/owncloud.conf') +if [[ -n $(which httpd 2> /dev/null) ]]; then + backup=('etc/httpd/conf/extra/owncloud.conf') +fi install=owncloud.install -md5sums=('32472783cc6de04e74703b48b758a22f' - '12c893e4a6a2af4b085c592ded741eaf') +md5sums=('4ce4cf5de3fdf1f70666549c5ecfda7a' + 'c1d49a3c0d8433bed6bffcd21ebb0064') package() { # install license @@ -29,8 +31,10 @@ package() { cp -a $srcdir/$pkgname $pkgdir/usr/share/webapps/ chown -R http:http $pkgdir/usr/share/webapps/owncloud/{apps,config} -# install apache .conf file - install -d $pkgdir/etc/httpd/conf/extra - install -m 644 $srcdir/owncloud.conf $pkgdir/etc/httpd/conf/extra/ +# install apache .conf file if apache is installed + if [[ -n $(which httpd 2> /dev/null) ]]; then + install -d $pkgdir/etc/httpd/conf/extra + install -m 644 $srcdir/owncloud.conf $pkgdir/etc/httpd/conf/extra/ + fi } diff --git a/aur/owncloud/owncloud.conf b/aur/owncloud/owncloud.conf index 8e482a328..5f050f134 100644 --- a/aur/owncloud/owncloud.conf +++ b/aur/owncloud/owncloud.conf @@ -14,4 +14,4 @@ Alias /owncloud /usr/share/webapps/owncloud/ ServerName owncloud.foo.com ErrorLog logs/owncloud.foo.info-error_log CustomLog logs/owncloud.foo.info-access_log common - + \ No newline at end of file diff --git a/aur/owncloud/owncloud.install b/aur/owncloud/owncloud.install index 173e87813..94f3a6e4a 100644 --- a/aur/owncloud/owncloud.install +++ b/aur/owncloud/owncloud.install @@ -1,12 +1,12 @@ pkgname=ownCloud post_install() { - echo "Add the following lines into /etc/httpd/conf/httpd.conf:" - echo "Include /etc/httpd/conf/extra/owncloud.conf" - echo "LoadModule php5_module modules/libphp5.so" - echo "Include conf/extra/php5_module.conf" - echo echo "Uncomment extensions gd.so intl.so iconv.so openssl.so xmlrpc.so zip.so" echo "and either pdo_sqlite.so sqlite3.so (for the SQLite backend), pdo_pgsql.so pgsql.so (for the PostgreSQL backend) or mysqli.so pdo_mysql.so (for the MySQL backend)" echo "in /etc/php/php.ini" + echo + echo "If using Apache, add the following lines into /etc/httpd/conf/httpd.conf:" + echo "Include /etc/httpd/conf/extra/owncloud.conf" + echo "LoadModule php5_module modules/libphp5.so" + echo "Include conf/extra/php5_module.conf" }