From c9c5f38dcd7b93ca3c9010ee4b5b15fbbba1e421 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Fri, 14 Oct 2011 10:32:33 +0000 Subject: [PATCH] Initial import of owncloud. Owncloud is a personal cloud which runs on your own server. --- www/Makefile | 1 + www/owncloud/Makefile | 40 +++++++++++++++++++++++++++++++ www/owncloud/distinfo | 2 ++ www/owncloud/files/pkg-message.in | 21 ++++++++++++++++ www/owncloud/pkg-descr | 4 ++++ 5 files changed, 68 insertions(+) create mode 100644 www/owncloud/Makefile create mode 100644 www/owncloud/distinfo create mode 100644 www/owncloud/files/pkg-message.in create mode 100644 www/owncloud/pkg-descr diff --git a/www/Makefile b/www/Makefile index 933ccdf8fb84..3d336c1ace7b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -605,6 +605,7 @@ SUBDIR += opera-linuxplugins SUBDIR += orangehrm SUBDIR += oscommerce + SUBDIR += owncloud SUBDIR += p5-AMF-Perl SUBDIR += p5-Acme-Monta SUBDIR += p5-AnyEvent-HTTP diff --git a/www/owncloud/Makefile b/www/owncloud/Makefile new file mode 100644 index 000000000000..079fdc6f42aa --- /dev/null +++ b/www/owncloud/Makefile @@ -0,0 +1,40 @@ +# New ports collection makefile for: owncloud +# Date created: 14 October 2011 +# Whom: Kevin Lo +# +# $FreeBSD$ +# + +PORTNAME= owncloud +PORTVERSION= 2 +CATEGORIES= www +MASTER_SITES= http://owncloud.org/releases/ + +MAINTAINER= kevlo@FreeBSD.org +COMMENT= A personal cloud which runs on your own server + +BUILD_DEPENDS= mp3info:${PORTSDIR}/audio/mp3info +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_BZIP2= yes +USE_PHP= ctype curl hash json mbstring mysql session simplexml sqlite zip + +WWWDOCROOT?= www + +WRKSRC= ${WRKDIR}/${PORTNAME} +NO_BUILD= yes +SUB_FILES= pkg-message + +do-install: + ${MKDIR} ${WWWDIR} + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} + ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR} + +post-install: + @${CAT} ${PKGMESSAGE} + @${FIND} -s -d ${WWWDIR} -type f -print | \ + ${SED} -e "s#${PREFIX}/##g" >> ${TMPPLIST} + @${FIND} -s -d ${WWWDIR} -type d -print | \ + ${SED} -E -e "s#${PREFIX}/#@dirrm #g" >> ${TMPPLIST} + +.include diff --git a/www/owncloud/distinfo b/www/owncloud/distinfo new file mode 100644 index 000000000000..cce62d1fefe1 --- /dev/null +++ b/www/owncloud/distinfo @@ -0,0 +1,2 @@ +SHA256 (owncloud-2.tar.bz2) = 728410817b10ad78bcbcfc22e1a28a1949b60af04834719babbfef4204d2a8c1 +SIZE (owncloud-2.tar.bz2) = 1169660 diff --git a/www/owncloud/files/pkg-message.in b/www/owncloud/files/pkg-message.in new file mode 100644 index 000000000000..e10bc7d9a7aa --- /dev/null +++ b/www/owncloud/files/pkg-message.in @@ -0,0 +1,21 @@ + +*********************************************************************** +* POST INSTALL CONFIGURATION * +*********************************************************************** + +Please note that everything has been installed in %%WWWDIR%%. + +Read %%WWWDIR%%/README. + +You will probably want to add an alias to your httpd.conf file, something +like this: + + Alias /owncloud %%WWWDIR%% + AcceptPathInfo On + + AllowOverride All + Order Allow,Deny + Allow from all + + +And restart Apache. diff --git a/www/owncloud/pkg-descr b/www/owncloud/pkg-descr new file mode 100644 index 000000000000..472c6da40a7d --- /dev/null +++ b/www/owncloud/pkg-descr @@ -0,0 +1,4 @@ +Owncloud is a system for the creation and management of personal +cloud resources. + +WWW: http://owncloud.org