aboutsummaryrefslogtreecommitdiffstats
path: root/www/twiki/Makefile
blob: 5c1ad71bf0071d3dfd72380fde65398d0a6930d5 (plain) (blame)
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
# 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=    20040902
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

NO_WRKSUBDIR=   yes
NO_BUILD=   yes

USE_ZIP=    yes

LTWIKIDIR=  www/twiki

TWIKIDIR=   ${PREFIX}/${LTWIKIDIR}

WWW_ROOT?=  www
PLIST_SUB+= WWW_ROOT=${WWW_ROOT}

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} "****************************************************************"

pre-configure:
# move config file to sample
    @${MV} ${WRKSRC}/lib/TWiki.cfg ${WRKSRC}/lib/TWiki.cfg.sample

do-install:
    ${MKDIR} ${TWIKIDIR}
    ${CP} -R ${WRKSRC}/* ${TWIKIDIR}/

post-install:
    PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>