aboutsummaryrefslogtreecommitdiff
path: root/www/nextcloud/Makefile
diff options
context:
space:
mode:
authorBernard Spil <brnrd@FreeBSD.org>2018-10-14 15:27:57 +0000
committerBernard Spil <brnrd@FreeBSD.org>2018-10-14 15:27:57 +0000
commit6f621ac7463d274d02f4521343fd6f82f2695328 (patch)
tree928986e76b6da39511da7355b28cf6ac9a44a7e7 /www/nextcloud/Makefile
parent549d8bbf51adfe2d9612e1312eb79a2bee4e308b (diff)
downloadports-6f621ac7463d274d02f4521343fd6f82f2695328.tar.gz
ports-6f621ac7463d274d02f4521343fd6f82f2695328.zip
Notes
Diffstat (limited to 'www/nextcloud/Makefile')
-rw-r--r--www/nextcloud/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/www/nextcloud/Makefile b/www/nextcloud/Makefile
index bfcb0636a743..e92fd00ca715 100644
--- a/www/nextcloud/Makefile
+++ b/www/nextcloud/Makefile
@@ -2,6 +2,7 @@
PORTNAME= nextcloud
DISTVERSION= 14.0.1
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= https://download.nextcloud.com/server/releases/
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
@@ -22,7 +23,7 @@ NEXTCLOUD_GROUPNAME?= ${WWWGRP}
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
NO_ARCH= yes
-SUB_FILES= pkg-message
+SUB_FILES= config.sample.php pkg-message
PLIST_SUB= NEXTCLOUD_USERNAME=${NEXTCLOUD_USERNAME} \
NEXTCLOUD_GROUPNAME=${NEXTCLOUD_GROUPNAME}
@@ -67,15 +68,21 @@ RUN_DEPENDS+= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/apcu.so:devel/pecl-APCu4@${PHP
. endif
.endif
+post-extract:
+ @${MV} ${WRKSRC}/config/config.sample.php ${WRKSRC}/config/config.documented.php
+
post-patch:
- @${REINPLACE_CMD} -e 's|/var/www/${PORTNAME}|${WWWDIR}|' ${WRKSRC}/config/config.sample.php
+ @${REINPLACE_CMD} -e 's|/var/www/${PORTNAME}|${WWWDIR}|;s|/var/log/|/var/log/${PORTNAME}/|' \
+ ${WRKSRC}/config/config.documented.php
@${MV} ${WRKSRC}/apps ${WRKSRC}/apps-pkg
do-install:
@${MKDIR} -m 0755 ${STAGEDIR}${WWWDIR}
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
+ @${INSTALL_SCRIPT} ${WRKDIR}/config.sample.php ${STAGEDIR}${WWWDIR}/config/config.sample.php
@${RM} ${STAGEDIR}${WWWDIR}/updater/updater.phar
@${MKDIR} ${STAGEDIR}${WWWDIR}/data
@${MKDIR} ${STAGEDIR}${WWWDIR}/apps
+ @${MKDIR} ${STAGEDIR}/var/log/${PORTNAME}
.include <bsd.port.post.mk>