aboutsummaryrefslogtreecommitdiffstats
path: root/www/jspwiki/Makefile
blob: 8ca9d077b6e036621311c5984e8da4dc5fd19799 (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
# New ports collection makefile for:    jspwiki
# Date created:         29 April, 2009
# Whom:                 wenheping@gmail.com
#
# $FreeBSD$
#

PORTNAME=   jspwiki
PORTVERSION=    2.8.4
CATEGORIES= www java
MASTER_SITES=   http://www.ecyrd.com/~jalkanen/JSPWiki/${PORTVERSION}/
DISTNAME=   JSPWiki-${PORTVERSION}-bin

MAINTAINER= ports@FreeBSD.org
COMMENT=    A feature-rich and extensible Wiki engine built around J2EE

RUN_DEPENDS=    ${TOMCATDIR}:${PORTSDIR}/www/tomcat55

USE_ZIP=    yes
USE_JAVA=   1.5+

NO_BUILD=   yes
TOMCATVER=  tomcat5.5
TOMCATDIR=  ${PREFIX}/${TOMCATVER}
TOMCATOWN=  www
TOMCATGRP=  www
WEBAPPDIR=  ${TOMCATDIR}/webapps
PORTDOCS=   LICENSE README ReleaseNotes
PLIST_FILES=    ${TOMCATVER}/webapps/JSPWiki.war
WRKSRC=     ${WRKDIR}/JSPWiki

do-install:
    cd ${WRKSRC} && \
        ${INSTALL} -g ${TOMCATGRP} -o ${TOMCATOWN} -m 444 JSPWiki.war ${WEBAPPDIR};

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>