aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/owncloud/Makefile40
-rw-r--r--www/owncloud/distinfo2
-rw-r--r--www/owncloud/files/pkg-message.in21
-rw-r--r--www/owncloud/pkg-descr4
5 files changed, 68 insertions, 0 deletions
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 <kevlo@FreeBSD.org>
+#
+# $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 <bsd.port.mk>
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
+ <Directory %%WWWDIR%%>
+ AllowOverride All
+ Order Allow,Deny
+ Allow from all
+ </Directory>
+
+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