svn commit: r405547 - head/www/photo_gallery

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri Jan 8 13:49:00 UTC 2016


Author: amdmi3
Date: Fri Jan  8 13:48:58 2016
New Revision: 405547
URL: https://svnweb.freebsd.org/changeset/ports/405547

Log:
  - Fix extra whitespace
  - Switch to COPYTREE_SHARE
  - Add NO_ARCH
  - Modernize plist
  
  PR:		205142
  Submitted by:	amdmi3
  Approved by:	maintainer timeout (bob at bomar.us, 1 month)

Modified:
  head/www/photo_gallery/Makefile
  head/www/photo_gallery/pkg-plist

Modified: head/www/photo_gallery/Makefile
==============================================================================
--- head/www/photo_gallery/Makefile	Fri Jan  8 12:25:16 2016	(r405546)
+++ head/www/photo_gallery/Makefile	Fri Jan  8 13:48:58 2016	(r405547)
@@ -1,15 +1,15 @@
 # Created by: Bob Bomar <bob at bomar.us>
 # $FreeBSD$
 
-PORTNAME=		photo_gallery
-PORTVERSION=		1.5
+PORTNAME=	photo_gallery
+PORTVERSION=	1.5
 PORTREVISION=	7
-CATEGORIES=		www
-MASTER_SITES=		http://www.capybara.org/~dfraser/photo_gallery/
-DISTNAME=		${PORTNAME}_${PORTVERSION}
+CATEGORIES=	www
+MASTER_SITES=	http://www.capybara.org/~dfraser/photo_gallery/
+DISTNAME=	${PORTNAME}_${PORTVERSION}
 
-MAINTAINER=		bob at bomar.us
-COMMENT=		Simple web based photo gallery
+MAINTAINER=	bob at bomar.us
+COMMENT=	Simple web based photo gallery
 
 RUN_DEPENDS=	anytopnm:${PORTSDIR}/graphics/netpbm\
 		p5-Image-Info>=0:${PORTSDIR}/graphics/p5-Image-Info\
@@ -20,10 +20,11 @@ USES=		perl5 shebangfix tar
 SHEBANG_FILES=	index.cgi
 perl_OLD_CMD=	/usr/pkg/bin/perl
 NO_BUILD=	yes
+NO_ARCH=	yes
+PLIST_SUB=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
 
 do-install:
-		${MKDIR} ${STAGEDIR}${WWWDIR}/
-		@cd ${WRKSRC}; ${FIND} . \
-			| ${CPIO} -pdm -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
+	${MKDIR} ${STAGEDIR}${WWWDIR}/
+	cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
 
 .include <bsd.port.mk>

Modified: head/www/photo_gallery/pkg-plist
==============================================================================
--- head/www/photo_gallery/pkg-plist	Fri Jan  8 12:25:16 2016	(r405546)
+++ head/www/photo_gallery/pkg-plist	Fri Jan  8 13:48:58 2016	(r405547)
@@ -1,5 +1,9 @@
-%%WWWDIR%%/index.cgi
+ at owner %%WWWOWN%%
+ at group %%WWWOWN%%
+@(,,755) %%WWWDIR%%/index.cgi
 %%WWWDIR%%/readme.html
 %%WWWDIR%%/.header.html
 %%WWWDIR%%/.footer.html
- at dirrm %%WWWDIR%%
+ at dir %%WWWDIR%%
+ at owner
+ at group


More information about the svn-ports-head mailing list