Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2016 15:50:27 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424429 - head/net-mgmt/ezradius
Message-ID:  <201610211550.u9LFoRMY049094@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Fri Oct 21 15:50:27 2016
New Revision: 424429
URL: https://svnweb.freebsd.org/changeset/ports/424429

Log:
  Use the right way to give files to www:www.
  
  Sponsored by:	Absolight

Modified:
  head/net-mgmt/ezradius/Makefile   (contents, props changed)
  head/net-mgmt/ezradius/pkg-plist   (contents, props changed)

Modified: head/net-mgmt/ezradius/Makefile
==============================================================================
--- head/net-mgmt/ezradius/Makefile	Fri Oct 21 15:33:53 2016	(r424428)
+++ head/net-mgmt/ezradius/Makefile	Fri Oct 21 15:50:27 2016	(r424429)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	ezradius
-PORTVERSION=	0.2.1.2
+PORTVERSION=	1.2.1.2
 PORTREVISION=	1
 CATEGORIES=	net-mgmt
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-0.2.1stable
@@ -21,14 +21,10 @@ USE_MYSQL=	yes
 USE_PHP=	mysql session xml
 WANT_PHP_WEB=	yes
 IGNORE_WITH_PHP=	70
+PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${WWWDIR}
-	@cd ${WRKSRC} && \
-	${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${WWWDIR}/{} \; \
-		-exec ${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/{} \;
-	@cd ${WRKSRC} && \
-	${FIND} . \! -type d -exec ${INSTALL_DATA} {} ${STAGEDIR}${WWWDIR}/{} \; \
-		-exec ${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}/{} \;
+	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
 
 .include <bsd.port.mk>

Modified: head/net-mgmt/ezradius/pkg-plist
==============================================================================
--- head/net-mgmt/ezradius/pkg-plist	Fri Oct 21 15:33:53 2016	(r424428)
+++ head/net-mgmt/ezradius/pkg-plist	Fri Oct 21 15:50:27 2016	(r424429)
@@ -1,3 +1,5 @@
+@owner %%WWWOWN%%
+@group %%WWWGRP%%
 %%WWWDIR%%/resources/mysql-dump/radius.sql
 %%WWWDIR%%/resources/hotspotlogin-without-popup/Connections/conStatus.php
 %%WWWDIR%%/resources/hotspotlogin-without-popup/get-status.js



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610211550.u9LFoRMY049094>