summaryrefslogtreecommitdiffstats
path: root/www/twiki/Makefile
blob: 125be424222a5adcb2f38e29dd7278a90b299a57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Ports collection makefile for:  TWiki
# Date created:			  Fri Mar  7 14:36:05 CST 2003
# Whom:				  Justin Hawkins <justin@hawkins.id.au>
#
# $FreeBSD$
#

PORTNAME=	twiki
PORTVERSION=	20040904
CATEGORIES=	www
MASTER_SITES=	http://twiki.org/swd/ \
		http://www.thoeny.com/peter/twiki/
DISTNAME=	TWiki${PORTVERSION}

MAINTAINER=	justin@hawkins.id.au
COMMENT=	A flexible, powerful, and easy to use Web-based collaboration platform

USE_REINPLACE=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}
NO_BUILD=	yes

WWW_ROOT?=	${WWWOWN}
TWIKIDIR=	${PREFIX}/${WWW_ROOT}/twiki

PLIST_SUB=	WWW_ROOT=${WWW_ROOT}
SUB_LIST=	WWWUSER=${WWWOWN} WWWGROUP=${WWWGRP} TWIKIDIR=${TWIKIDIR} \
		REINPLACE_CMD="${REINPLACE_CMD}"
SUB_FILES=	pkg-install
PKGINSTALL=	${WRKDIR}/pkg-install

pre-everything::
	@${ECHO} "****************************************************************"
	@${ECHO} "*  If you're upgrading, Ctrl-C now and do the upgrade by hand. *"
	@${ECHO} "*  This software can't be upgraded automatically without       *"
	@${ECHO} "*  damaging data in your wiki!                                 *"
	@${ECHO} "****************************************************************"
	@sleep 10

post-extract:
	@# move config to sample
	@${MV} ${WRKSRC}/lib/TWiki.cfg ${WRKSRC}/lib/TWiki.cfg.sample

do-install:
	${INSTALL} -d -m 0755 ${TWIKIDIR}
	(cd ${WRKSRC} && ${FIND} . | \
		${CPIO} -pdmu -R${SHAREOWN}:${SHAREGRP} ${TWIKIDIR})

post-install:
	@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>
OpenPOWER on IntegriCloud