Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Sep 2014 16:56:49 +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: r368046 - head/www/lilurl
Message-ID:  <201409121656.s8CGunBV041776@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Fri Sep 12 16:56:48 2014
New Revision: 368046
URL: http://svnweb.freebsd.org/changeset/ports/368046
QAT: https://qat.redports.org/buildarchive/r368046/

Log:
  - Allow staging as a regular user
  - Bump portrevision as files were not packaged with intended owner

Modified:
  head/www/lilurl/Makefile

Modified: head/www/lilurl/Makefile
==============================================================================
--- head/www/lilurl/Makefile	Fri Sep 12 16:45:35 2014	(r368045)
+++ head/www/lilurl/Makefile	Fri Sep 12 16:56:48 2014	(r368046)
@@ -3,6 +3,7 @@
 
 PORTNAME=	lilurl
 PORTVERSION=	0.1.1
+PORTREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}.tar.gz
 
@@ -19,25 +20,24 @@ PKGMESSAGE=	${WRKDIR}/pkg-message
 SUB_FILES=	pkg-message
 PLIST=		${WRKDIR}/pkg-plist
 
-.include <bsd.port.pre.mk>
-
 post-extract:
 	@${MV} ${WRKSRC}/includes/conf.php ${WRKSRC}/includes/conf.php.sample
 
 pre-install:
+	@${ECHO_CMD} -e "@owner ${WWWOWN}\n@group ${WWWGRP}" > ${PLIST}
 	@cd ${WRKSRC} && ${FIND} -s . -type f | \
-		${SED} -e 's|^./||;s|^|${LILURL_DIR}/|' > ${PLIST} \
+		${SED} -e 's|^./||;s|^|${LILURL_DIR}/|' >> ${PLIST} \
 		&& ${FIND} -d * -type d | \
 		${SED} -e 's|^|@dirrm ${LILURL_DIR}/|' >> ${PLIST} \
 		&& ${ECHO_CMD} @dirrm ${LILURL_DIR} >> ${PLIST}
+	@${ECHO_CMD} -e "@owner root\n@group wheel" >> ${PLIST}
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/${LILURL_DIR}
 	@${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${LILURL_DIR}
-	@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${LILURL_DIR}
 
 post-install:
 	@${SED} -e 's,%%PREFIX%%,${PREFIX},; s,%%LILURL_DIR%%,${LILURL_DIR},g' \
 		${PKGMESSAGE}
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



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