aboutsummaryrefslogtreecommitdiffstats
path: root/www/jwchat/Makefile
blob: 83cb851590cddb6d1d754fd7b406ffc008cc0f39 (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
# New ports collection makefile for:    jwchat
# Date created:             June 24 2005
# Whom:                 Lars Eggert <lars.eggert@gmx.net>
#
# $FreeBSD$
#

PORTNAME=   jwchat
PORTVERSION=    1.0.b2
CATEGORIES= www net
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME=   ${PORTNAME}-${PORTVERSION:S,.b,beta,}

MAINTAINER= lars.eggert@gmx.net
COMMENT=    Full featured, web-based Jabber client

USE_APACHE= yes

NO_BUILD=   yes

PLIST_SUB+= WWW_ROOT=www
SUB_FILES=  pkg-message
SUB_LIST=   WWW_ROOT=www PORTNAME=${PORTNAME}

do-install:
    ${MKDIR} ${PREFIX}/www ${DATADIR}
    ${CP} ${WRKSRC}/config.js ${DATADIR}
    ${MV} ${WRKSRC}/config.js ${WRKSRC}/config.js.sample
    ${CP} -R ${WRKSRC}/ ${PREFIX}/www/${PORTNAME}
    [ ! -f ${PREFIX}/www/${PORTNAME}/config.js ] && \
        ${CP} ${DATADIR}/config.js ${PREFIX}/www/${PORTNAME}/config.js || true
    ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/www/${PORTNAME}

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

.include <bsd.port.mk>