aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
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%%