diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2012-11-19 16:36:33 -0200 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2012-11-19 16:36:33 -0200 |
commit | eb742544b8af9e99209dcf3fac82916df504a5b4 (patch) | |
tree | 1e7c8290c9a7a95045398a30a2702ebbfbbb72c4 /pcr/owncloud | |
parent | 1c468b79b50fc6c3de26dd08d05010303fadada6 (diff) | |
parent | b8de81d47176637dfd7b9dca164ceea8afe52b56 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/owncloud')
-rw-r--r-- | pcr/owncloud/PKGBUILD | 35 | ||||
-rw-r--r-- | pcr/owncloud/owncloud.conf | 17 | ||||
-rw-r--r-- | pcr/owncloud/owncloud.install | 17 |
3 files changed, 69 insertions, 0 deletions
diff --git a/pcr/owncloud/PKGBUILD b/pcr/owncloud/PKGBUILD new file mode 100644 index 000000000..7861d0917 --- /dev/null +++ b/pcr/owncloud/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Antonio Rojas <nqn1976 @ gmail.com> +# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov +# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io> + +pkgname=owncloud +pkgver=4.5.2 +pkgrel=1 +pkgdesc="A cloud server to store your files centrally on a hardware controlled by you" +arch=('any') +url="http://owncloud.org/" +license=('GPL') +depends=('php-gd') +optdepends=("php-apache: to use the Apache web server" "php-sqlite: to use the SQLite database backend" "mysql: to use the MySQL database backend") +makedepends=() +source=("http://owncloud.org/releases/$pkgname-$pkgver.tar.bz2" 'owncloud.conf') +backup=('etc/httpd/conf/extra/owncloud.conf') +install=owncloud.install + +package() { +# install license + install -d $pkgdir/usr/share/licenses/$pkgname + cp $srcdir/$pkgname/COPYING-* $pkgdir/usr/share/licenses/$pkgname + +# install project + install -d $pkgdir/usr/share/webapps/ + cp -a $srcdir/$pkgname $pkgdir/usr/share/webapps/ + chown -R http:http $pkgdir/usr/share/webapps/* + +# install apache .conf file + install -d $pkgdir/etc/httpd/conf/extra + install -m 644 $srcdir/owncloud.conf $pkgdir/etc/httpd/conf/extra/ +} + + + diff --git a/pcr/owncloud/owncloud.conf b/pcr/owncloud/owncloud.conf new file mode 100644 index 000000000..5f050f134 --- /dev/null +++ b/pcr/owncloud/owncloud.conf @@ -0,0 +1,17 @@ +<IfModule mod_alias.c> +Alias /owncloud /usr/share/webapps/owncloud/ +</IfModule> +<Directory /usr/share/webapps/owncloud/> + Options FollowSymlinks + Order allow,deny + AllowOverride all + allow from all + php_admin_value open_basedir "/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/" +</Directory> +<VirtualHost *:80> + ServerAdmin foo@foofarm.com + DocumentRoot /usr/share/webapps/owncloud + ServerName owncloud.foo.com + ErrorLog logs/owncloud.foo.info-error_log + CustomLog logs/owncloud.foo.info-access_log common +</VirtualHost>
\ No newline at end of file diff --git a/pcr/owncloud/owncloud.install b/pcr/owncloud/owncloud.install new file mode 100644 index 000000000..327733f97 --- /dev/null +++ b/pcr/owncloud/owncloud.install @@ -0,0 +1,17 @@ +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 xmlrpc.so zip.so gd.so" + echo "and either pdo_sqlite.so sqlite3.so (for the SQLite backend) or mysql.so mysqli.so pdo_mysql.so (for the MySQL backend)" + echo "in /etc/php/php.ini" +} + +post_upgrade() { + echo "owncloud is now installed in /usr/share/webapps/owncloud" + echo "if you want it in /srv/http, add a symlink manually" +}
\ No newline at end of file |