summaryrefslogtreecommitdiffstats
path: root/net-im
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2005-10-13 11:40:58 +0000
committerflz <flz@FreeBSD.org>2005-10-13 11:40:58 +0000
commitfadd44438a9d32caa878d6366a9bef8de8a5ba9e (patch)
tree4b35a343f86290bb7a456c390793cd8b1a4d5204 /net-im
parentb2119960e3ed15880a844a43789f1348164c5827 (diff)
downloadFreeBSD-ports-fadd44438a9d32caa878d6366a9bef8de8a5ba9e.zip
FreeBSD-ports-fadd44438a9d32caa878d6366a9bef8de8a5ba9e.tar.gz
- Fix permissions.
PR: ports/87317 Submitted by: Denis Shaposhnikov <dsh@vlink.ru> Approved by: maintainer
Diffstat (limited to 'net-im')
-rw-r--r--net-im/jwchat/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/net-im/jwchat/Makefile b/net-im/jwchat/Makefile
index 83cb851..811b8e8 100644
--- a/net-im/jwchat/Makefile
+++ b/net-im/jwchat/Makefile
@@ -7,6 +7,7 @@
PORTNAME= jwchat
PORTVERSION= 1.0.b2
+PORTREVISION= 1
CATEGORIES= www net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -25,12 +26,13 @@ SUB_LIST= WWW_ROOT=www PORTNAME=${PORTNAME}
do-install:
${MKDIR} ${PREFIX}/www ${DATADIR}
- ${CP} ${WRKSRC}/config.js ${DATADIR}
+ ${INSTALL_DATA} ${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}
+ ${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}
post-install:
@${CAT} ${PKGMESSAGE}
OpenPOWER on IntegriCloud