From 6329d2f43b2c54b0bd553b7f78d739e08a02ad15 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Fri, 3 Aug 2012 06:52:23 +0000 Subject: testing/owncloud: move to main --- main/owncloud/APKBUILD | 54 ++++++++++++++++++++++++++++++++++ main/owncloud/owncloud.config.php | 11 +++++++ main/owncloud/owncloud.post-install | 8 +++++ testing/owncloud/APKBUILD | 54 ---------------------------------- testing/owncloud/owncloud.config.php | 11 ------- testing/owncloud/owncloud.post-install | 8 ----- 6 files changed, 73 insertions(+), 73 deletions(-) create mode 100644 main/owncloud/APKBUILD create mode 100644 main/owncloud/owncloud.config.php create mode 100644 main/owncloud/owncloud.post-install delete mode 100644 testing/owncloud/APKBUILD delete mode 100644 testing/owncloud/owncloud.config.php delete mode 100644 testing/owncloud/owncloud.post-install diff --git a/main/owncloud/APKBUILD b/main/owncloud/APKBUILD new file mode 100644 index 000000000..905ee8cda --- /dev/null +++ b/main/owncloud/APKBUILD @@ -0,0 +1,54 @@ +# Maintainer: Leonardo Arena +pkgname=owncloud +pkgver=4.0.5 +pkgrel=0 +pkgdesc="Your own WebDAV-based cloud service" +url="http://owncloud.org" +arch="noarch" +license="AGPL" +depends="php php-ctype php-gd php-json php-zip" +depends_dev= +makedepends="$depends_dev" +install="$pkgname.post-install" +subpackages="$pkgname-pgsql $pkgname-sqlite" +source="http://download.owncloud.org/releases/$pkgname-$pkgver.tar.bz2 + owncloud.config.php" + + +_builddir="$srcdir"/$pkgname + +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/etc/owncloud + mkdir -p "$pkgdir"/var/lib/owncloud/data + mkdir -p "$pkgdir"/usr/share/webapps/owncloud + rm -rf config data + mv * "$pkgdir"/usr/share/webapps/owncloud + ln -s /etc/owncloud "$pkgdir"/usr/share/webapps/owncloud/config || exit 1 + #ln -s /var/lib/owncloud/data "$pkgdir"/usr/share/webapps/owncloud/data || exit 1 + install -m640 ../owncloud.config.php "$pkgdir"/etc/owncloud/config.php +} + +pgsql() { + pkgdesc="ownCloud PostgreSQL support" + depends="owncloud php-pgsql php-pdo_pgsql" + mkdir -p "$subpkgdir"/usr/share/webapps/owncloud +} + +sqlite() { + pkgdesc="ownCloud SQLite support" + depends="owncloud php-sqlite php-pdo_sqlite" + mkdir -p "$subpkgdir"/usr/share/webapps/owncloud +} + +md5sums="08960fcc66d48760cbb8a6e4a68978bb owncloud-4.0.5.tar.bz2 +ffca86e31918c3b73878e72148ba9134 owncloud.config.php" diff --git a/main/owncloud/owncloud.config.php b/main/owncloud/owncloud.config.php new file mode 100644 index 000000000..c8878450b --- /dev/null +++ b/main/owncloud/owncloud.config.php @@ -0,0 +1,11 @@ + '/var/lib/owncloud/data', +"version" => '4.0.4', +"dbname" => 'owncloud', +"dbhost" => 'localhost', +"dbuser" => 'owncloud', +"installed" => false, +"loglevel" => '0', +); +?> diff --git a/main/owncloud/owncloud.post-install b/main/owncloud/owncloud.post-install new file mode 100644 index 000000000..c7288ac82 --- /dev/null +++ b/main/owncloud/owncloud.post-install @@ -0,0 +1,8 @@ +#!/bin/sh +echo -------------------------------------------------------------------------- +echo Please give ownership to the web server user, the following directories: +echo +echo /etc/owncloud/config +echo /var/lib/owncloud/data +echo /usr/share/webapps/owncloud/apps +echo -------------------------------------------------------------------------- diff --git a/testing/owncloud/APKBUILD b/testing/owncloud/APKBUILD deleted file mode 100644 index 905ee8cda..000000000 --- a/testing/owncloud/APKBUILD +++ /dev/null @@ -1,54 +0,0 @@ -# Maintainer: Leonardo Arena -pkgname=owncloud -pkgver=4.0.5 -pkgrel=0 -pkgdesc="Your own WebDAV-based cloud service" -url="http://owncloud.org" -arch="noarch" -license="AGPL" -depends="php php-ctype php-gd php-json php-zip" -depends_dev= -makedepends="$depends_dev" -install="$pkgname.post-install" -subpackages="$pkgname-pgsql $pkgname-sqlite" -source="http://download.owncloud.org/releases/$pkgname-$pkgver.tar.bz2 - owncloud.config.php" - - -_builddir="$srcdir"/$pkgname - -prepare() { - cd "$_builddir" - # apply patches here -} - -build() { - cd "$_builddir" -} - -package() { - cd "$_builddir" - mkdir -p "$pkgdir"/etc/owncloud - mkdir -p "$pkgdir"/var/lib/owncloud/data - mkdir -p "$pkgdir"/usr/share/webapps/owncloud - rm -rf config data - mv * "$pkgdir"/usr/share/webapps/owncloud - ln -s /etc/owncloud "$pkgdir"/usr/share/webapps/owncloud/config || exit 1 - #ln -s /var/lib/owncloud/data "$pkgdir"/usr/share/webapps/owncloud/data || exit 1 - install -m640 ../owncloud.config.php "$pkgdir"/etc/owncloud/config.php -} - -pgsql() { - pkgdesc="ownCloud PostgreSQL support" - depends="owncloud php-pgsql php-pdo_pgsql" - mkdir -p "$subpkgdir"/usr/share/webapps/owncloud -} - -sqlite() { - pkgdesc="ownCloud SQLite support" - depends="owncloud php-sqlite php-pdo_sqlite" - mkdir -p "$subpkgdir"/usr/share/webapps/owncloud -} - -md5sums="08960fcc66d48760cbb8a6e4a68978bb owncloud-4.0.5.tar.bz2 -ffca86e31918c3b73878e72148ba9134 owncloud.config.php" diff --git a/testing/owncloud/owncloud.config.php b/testing/owncloud/owncloud.config.php deleted file mode 100644 index c8878450b..000000000 --- a/testing/owncloud/owncloud.config.php +++ /dev/null @@ -1,11 +0,0 @@ - '/var/lib/owncloud/data', -"version" => '4.0.4', -"dbname" => 'owncloud', -"dbhost" => 'localhost', -"dbuser" => 'owncloud', -"installed" => false, -"loglevel" => '0', -); -?> diff --git a/testing/owncloud/owncloud.post-install b/testing/owncloud/owncloud.post-install deleted file mode 100644 index c7288ac82..000000000 --- a/testing/owncloud/owncloud.post-install +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -echo -------------------------------------------------------------------------- -echo Please give ownership to the web server user, the following directories: -echo -echo /etc/owncloud/config -echo /var/lib/owncloud/data -echo /usr/share/webapps/owncloud/apps -echo -------------------------------------------------------------------------- -- cgit v1.2.3