diff options
author | David Spencer <baildon.research@googlemail.com> | 2014-09-15 00:38:13 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-09-15 00:38:13 +0700 |
commit | 9b50e9048616b76100e15b2ab11db3d96e54e0df (patch) | |
tree | 670dca0d1b1bde45dd278f799768740126a012ec /network/owncloud-server | |
parent | 43a9c81f958e16024af400172becb341552f4a97 (diff) | |
download | slackbuilds-9b50e9048616b76100e15b2ab11db3d96e54e0df.tar.gz |
network/owncloud-server: Added (ownCloud sync & share server).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/owncloud-server')
-rw-r--r-- | network/owncloud-server/README | 40 | ||||
-rw-r--r-- | network/owncloud-server/owncloud-server.SlackBuild | 73 | ||||
-rw-r--r-- | network/owncloud-server/owncloud-server.info | 10 | ||||
-rw-r--r-- | network/owncloud-server/slack-desc | 19 |
4 files changed, 142 insertions, 0 deletions
diff --git a/network/owncloud-server/README b/network/owncloud-server/README new file mode 100644 index 0000000000..014e51aefb --- /dev/null +++ b/network/owncloud-server/README @@ -0,0 +1,40 @@ +ownCloud gives you universal access to your files through a web interface +or WebDAV. It also provides a platform to easily view & sync your contacts, +calendars and bookmarks across all your devices and enables basic editing +right on the web. + + +SlackBuild defaults +------------------- + +This SlackBuild uses the following defaults: +* DOCROOT=/srv/httpd/htdocs +* PHPUSER=root +* PHPGROUP=apache + +You can change the defaults at build time: +# DOCROOT=/your/preferred/directory \ + PHPUSER=youruser \ + PHPGROUP=yourgroup \ + ./owncloud-server.SlackBuild + + +Configuration +------------- + +(1) Add the following in /etc/httpd/httpd.conf + + <Directory "/srv/httpd/htdocs/owncloud"> + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Require all granted + </Directory> + +(2) In /etc/httpd/httpd.conf, enable mod_rewrite and PHP by uncommenting +"LoadModule rewrite_module ..." and "Include /etc/httpd/mod_php.conf", +then restart httpd. + +(3) After installation, **and after every upgrade**, you need to complete +setup by visiting this page: + + http://localhost/owncloud/ diff --git a/network/owncloud-server/owncloud-server.SlackBuild b/network/owncloud-server/owncloud-server.SlackBuild new file mode 100644 index 0000000000..2b34766227 --- /dev/null +++ b/network/owncloud-server/owncloud-server.SlackBuild @@ -0,0 +1,73 @@ +#!/bin/sh + +# Slackware build script for Owncloud server + +# Copyright 2014 David Spencer, Baildon, West Yorkshire, U.K. +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=owncloud-server +SRCNAM=owncloud +VERSION=${VERSION:-7.0.2} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +DOCROOT=${DOCROOT:-/srv/httpd/htdocs} +PHPUSER=${PHPUSER:-root} +PHPGROUP=${PHPGROUP:-apache} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT + +mkdir -p $PKG/$DOCROOT +cd $PKG/$DOCROOT +tar xvf $CWD/$SRCNAM-$VERSION.tar.?z* +cd $SRCNAM +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir data + +chown -R $PHPUSER:$PHPGROUP apps/ data/ config/ +chmod -R g+w apps/ data/ config/ +chmod -R o-rwx data/ + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYING-AGPL 3rdparty/'LICENSE INFO' 3rdparty/PEAR-LICENSE \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/network/owncloud-server/owncloud-server.info b/network/owncloud-server/owncloud-server.info new file mode 100644 index 0000000000..647fd74c6f --- /dev/null +++ b/network/owncloud-server/owncloud-server.info @@ -0,0 +1,10 @@ +PRGNAM="owncloud-server" +VERSION="7.0.2" +HOMEPAGE="http://owncloud.org/" +DOWNLOAD="http://download.owncloud.org/community/owncloud-7.0.2.tar.bz2" +MD5SUM="4af57e093878917d80004f7151f9282e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="David Spencer" +EMAIL="baildon.research@googlemail.com" diff --git a/network/owncloud-server/slack-desc b/network/owncloud-server/slack-desc new file mode 100644 index 0000000000..61ec649a69 --- /dev/null +++ b/network/owncloud-server/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +owncloud-server: owncloud-server (ownCloud sync & share server) +owncloud-server: +owncloud-server: ownCloud gives you universal access to your files through a web +owncloud-server: interface or WebDAV. It also provides a platform to easily view & sync +owncloud-server: your contacts, calendars and bookmarks across all your devices and +owncloud-server: enables basic editing right on the web. +owncloud-server: +owncloud-server: Homepage: http://owncloud.org/ +owncloud-server: +owncloud-server: +owncloud-server: |