2005-07-15 12:17:36 -04:00
|
|
|
# New ports collection makefile for: jwchat
|
|
|
|
# Date created: June 24 2005
|
|
|
|
# Whom: Lars Eggert <lars.eggert@gmx.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jwchat
|
2005-10-01 16:12:54 -04:00
|
|
|
PORTVERSION= 1.0.b2
|
2005-10-13 07:40:58 -04:00
|
|
|
PORTREVISION= 1
|
2005-11-09 18:11:38 -05:00
|
|
|
CATEGORIES= net-im www
|
2005-07-15 12:17:36 -04:00
|
|
|
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:
|
2005-10-01 16:12:54 -04:00
|
|
|
${MKDIR} ${PREFIX}/www ${DATADIR}
|
2005-10-13 07:40:58 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/config.js ${DATADIR}
|
2005-10-01 16:12:54 -04:00
|
|
|
${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
|
2005-10-13 07:40:58 -04:00
|
|
|
${FIND} ${PREFIX}/www/${PORTNAME} ! -name config.js -print0 | ${XARGS} -0 ${CHOWN} ${SHAREOWN}:${SHAREGRP}
|
|
|
|
${FIND} ${PREFIX}/www/${PORTNAME} -type f -and ! -name config.js -print0 -type f | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
2005-07-15 12:17:36 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|