Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 09:01:55 +0000 (UTC)
From:      Rong-En Fan <rafan@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350069 - head/mail/mailgraph
Message-ID:  <201404040901.s3491tOf090489@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rafan
Date: Fri Apr  4 09:01:55 2014
New Revision: 350069
URL: http://svnweb.freebsd.org/changeset/ports/350069
QAT: https://qat.redports.org/buildarchive/r350069/

Log:
  - STAGE support
  
  PR:		ports/188078
  Submitted by:	Danilo G. Baio <dbaio at bsd.com.br>

Modified:
  head/mail/mailgraph/Makefile
  head/mail/mailgraph/pkg-plist

Modified: head/mail/mailgraph/Makefile
==============================================================================
--- head/mail/mailgraph/Makefile	Fri Apr  4 08:53:00 2014	(r350068)
+++ head/mail/mailgraph/Makefile	Fri Apr  4 09:01:55 2014	(r350069)
@@ -32,7 +32,6 @@ DOCS=		README CHANGES
 PORTDOCS=	${DOCS}
 .endif
 
-NO_STAGE=	yes
 pre-everything::
 	@${ECHO_MSG} ""
 	@${ECHO_MSG} "You may set following options:"
@@ -47,23 +46,17 @@ post-patch:
 	@${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/mailgraph.cgi
 
 do-install:
-	${MKDIR} ${CGIDIR}
-	${MKDIR} ${WWWROOT}/mailgraph
-	${MKDIR} ${DATADIR}
-	@${CHOWN} -R ${MAILGRAPH_USER}:${MAILGRAPH_GROUP} ${DATADIR}
-	@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${PREFIX}/sbin
-	@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${CGIDIR}
-	@${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${WWWROOT}/mailgraph
+	${MKDIR} ${STAGEDIR}${CGIDIR}
+	${MKDIR} ${STAGEDIR}${WWWROOT}/mailgraph
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl ${STAGEDIR}${PREFIX}/sbin
+	@${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi ${STAGEDIR}${CGIDIR}
+	@${INSTALL_DATA} ${WRKSRC}/mailgraph.css ${STAGEDIR}${WWWROOT}/mailgraph
 .if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	for f in ${DOCS}; do \
-	  ${INSTALL_DATA} ${WRKSRC}/$$f ${DOCSDIR}; \
+	  ${INSTALL_DATA} ${WRKSRC}/$$f ${STAGEDIR}${DOCSDIR}; \
 	done
 .endif
 
-post-install:
-	@${ECHO_MSG} ""
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_MSG} ""
-
 .include <bsd.port.mk>

Modified: head/mail/mailgraph/pkg-plist
==============================================================================
--- head/mail/mailgraph/pkg-plist	Fri Apr  4 08:53:00 2014	(r350068)
+++ head/mail/mailgraph/pkg-plist	Fri Apr  4 09:01:55 2014	(r350069)
@@ -1,6 +1,12 @@
+@owner www
+@group www
+%%DATADIR%%
+@group
+@owner
 %%CGIDIR%%/mailgraph.cgi
 %%WWWROOT%%/mailgraph/mailgraph.css
 sbin/mailgraph.pl
+@dirrmtry %%DATADIR%%
 @dirrmtry %%CGIDIR%%
 @dirrmtry %%WWWROOT%%/mailgraph
 @dirrmtry %%WWWROOT%%



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