aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2014-04-04 17:01:55 +0800
committerrafan <rafan@FreeBSD.org>2014-04-04 17:01:55 +0800
commitef8475506859499cda4b97b17bdfdd53e48627d9 (patch)
tree707f8fbae7d777c0e892ab128f589ab5d5aee97c /mail
parent5f7c14d83d79d395a7b65de96cf8ee620fbe6926 (diff)
downloadfreebsd-ports-gnome-ef8475506859499cda4b97b17bdfdd53e48627d9.tar.gz
freebsd-ports-gnome-ef8475506859499cda4b97b17bdfdd53e48627d9.tar.zst
freebsd-ports-gnome-ef8475506859499cda4b97b17bdfdd53e48627d9.zip
- STAGE support
PR: ports/188078 Submitted by: Danilo G. Baio <dbaio at bsd.com.br>
Diffstat (limited to 'mail')
-rw-r--r--mail/mailgraph/Makefile23
-rw-r--r--mail/mailgraph/pkg-plist6
2 files changed, 14 insertions, 15 deletions
diff --git a/mail/mailgraph/Makefile b/mail/mailgraph/Makefile
index 783d32ec6671..ae40c6bc5e4e 100644
--- a/mail/mailgraph/Makefile
+++ b/mail/mailgraph/Makefile
@@ -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>
diff --git a/mail/mailgraph/pkg-plist b/mail/mailgraph/pkg-plist
index f515cf96eb71..cbb4a78f22e6 100644
--- a/mail/mailgraph/pkg-plist
+++ b/mail/mailgraph/pkg-plist
@@ -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%%