1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/www/tikiwiki/Makefile
Jochen Neumeister 3f3fe103c1 Update to 20.1
Sponsored by:	Netzkommune GmbH
2019-09-23 05:50:53 +00:00

52 lines
1.5 KiB
Makefile

# Created by: Babak Farrokhi <babak@farrokhi.net>
# $FreeBSD$
PORTNAME= tikiwiki
DISTVERSION= 20.1
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME}/Tiki_20.x_Tarazed/${DISTVERSION}/
DISTNAME= tiki-${DISTVERSION}
MAINTAINER= joneum@FreeBSD.org
COMMENT= Powerful PHP based Wiki/CMS/Groupware
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/license.txt
USES= php:web
USE_PHP= calendar dom fileinfo gd gettext intl mbstring mcrypt pcre \
posix session xml zip zlib
NO_BUILD= yes
NO_MTREE= yes
NO_ARCH= yes
TIKIWIKI_DIR?= www/${PORTNAME}-${DISTVERSION}
SUB_FILES= pkg-message
SUB_LIST+= TIKIWIKI_DIR=${TIKIWIKI_DIR}
WRI_DIR= db dump img/trackers img/wiki img/wiki_up modules/cache \
temp temp/cache templates_c templates whelp
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${TIKIWIKI_DIR}
(cd ${WRKSRC} && \
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${TIKIWIKI_DIR})
# pkg-plist would be over 15,000 lines, consuming 1.1Mb
# The benefits of a fixed pkg-plist aren't worth it, autogen!
post-install:
@(cd ${STAGEDIR}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
${SORT} | ${SED} -e 's/^/@(${WWWOWN},${WWWGRP},) /' >> ${TMPPLIST})
@(cd ${STAGEDIR}${PREFIX}; ${FIND} * -type d -empty | \
${SORT} -r | ${SED} -e 's/^/@dir /' >> ${TMPPLIST})
@${ECHO_CMD} "@mode 777" >> ${TMPPLIST}
.for i in ${WRI_DIR} do
@${MKDIR} ${STAGEDIR}${PREFIX}/${TIKIWIKI_DIR}/${i}
@${ECHO_CMD} "@dir ${TIKIWIKI_DIR}/${i}" >> ${TMPPLIST}
.endfor
@${ECHO_CMD} "@mode" >> ${TMPPLIST}
.include <bsd.port.mk>