svn commit: r424429 - head/net-mgmt/ezradius
Mathieu Arnold
mat at FreeBSD.org
Fri Oct 21 15:50:28 UTC 2016
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 @@
+ at owner %%WWWOWN%%
+ at group %%WWWGRP%%
%%WWWDIR%%/resources/mysql-dump/radius.sql
%%WWWDIR%%/resources/hotspotlogin-without-popup/Connections/conStatus.php
%%WWWDIR%%/resources/hotspotlogin-without-popup/get-status.js
More information about the svn-ports-all
mailing list