Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2014 16:13:52 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r371197 - head/www/e107
Message-ID:  <201410191613.s9JGDqGY025591@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Sun Oct 19 16:13:52 2014
New Revision: 371197
URL: https://svnweb.freebsd.org/changeset/ports/371197
QAT: https://qat.redports.org/buildarchive/r371197/

Log:
  - Allow staging as a regular user
  - Bump portrevision as the @exec chown was not applied to the right files

Modified:
  head/www/e107/Makefile

Modified: head/www/e107/Makefile
==============================================================================
--- head/www/e107/Makefile	Sun Oct 19 16:02:25 2014	(r371196)
+++ head/www/e107/Makefile	Sun Oct 19 16:13:52 2014	(r371197)
@@ -3,6 +3,7 @@
 
 PORTNAME=	e107
 PORTVERSION=	1.0.4
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}%20v${PORTVERSION}
 DISTNAME=	${PORTNAME}_${PORTVERSION}_full
@@ -28,20 +29,13 @@ post-extract:
 	@cd ${WRKDIR} && ${MV} e107.robots.txt ${WRKSRC}
 
 pre-install:
-	@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${E107DIR}#g" >${PLIST}
-	@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s#${WRKSRC}#@dirrm ${E107DIR}#g" >> ${PLIST}
+	@${ECHO_CMD} -e '@owner ${WWWOWN}\n@group ${WWWGRP}' > ${PLIST}
+	@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s#${WRKSRC}#${E107DIR}#g" >> ${PLIST}
+	@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s#${WRKSRC}#@dir ${E107DIR}#g" >> ${PLIST}
+	@${ECHO_CMD} -e '@owner\n@group' >> ${PLIST}
 
 do-install:
 	@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
 	@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
 
-	@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' \
-		>> ${TMPPLIST}
-	@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}' \
-		>> ${TMPPLIST}
-
-post-install:
-	@${CAT} ${PKGMESSAGE}
-
 .include <bsd.port.mk>



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