aboutsummaryrefslogtreecommitdiffstats
path: root/mail/couriergraph/Makefile
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-07-08 19:52:24 +0800
committerdanfe <danfe@FreeBSD.org>2014-07-08 19:52:24 +0800
commitb1fd4afe86659520d8bf1ad61ca02e7558bdb86a (patch)
tree6f297d627f05d51e1b8dd2085e154a659c5347ee /mail/couriergraph/Makefile
parent237ae43ed6816b193d564c11ca2a1e6d5895b911 (diff)
downloadfreebsd-ports-gnome-b1fd4afe86659520d8bf1ad61ca02e7558bdb86a.tar.gz
freebsd-ports-gnome-b1fd4afe86659520d8bf1ad61ca02e7558bdb86a.tar.zst
freebsd-ports-gnome-b1fd4afe86659520d8bf1ad61ca02e7558bdb86a.zip
- Stagify; cleanup installation routine; fix whitespace
- Add missing USE_PERL5 (run) - Explain the need for non-obvious move (post-extract) - Point MASTER_SITES and WWW line to a working website
Diffstat (limited to 'mail/couriergraph/Makefile')
-rw-r--r--mail/couriergraph/Makefile52
1 files changed, 26 insertions, 26 deletions
diff --git a/mail/couriergraph/Makefile b/mail/couriergraph/Makefile
index 675ea900ddd6..3f70be9aeeba 100644
--- a/mail/couriergraph/Makefile
+++ b/mail/couriergraph/Makefile
@@ -1,60 +1,60 @@
-# Created by: Xavier Beaudouin (kiwi@oav.net)
+# Created by: Xavier Beaudouin <kiwi@oav.net>
# $FreeBSD$
PORTNAME= couriergraph
PORTVERSION= 20060202
PORTREVISION= 3
CATEGORIES= mail
-MASTER_SITES= ftp://ftp.oav.net/couriergraph/
-DIST_SUBDIR= ${PORTNAME}
+MASTER_SITES= http://www.arschkrebs.de/postfix/${PORTNAME}/
+DISTNAME= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= RRDtool frontend for Courier statistics
-RUN_DEPENDS= rrdtool>=0:${PORTSDIR}/databases/rrdtool \
+RUN_DEPENDS= rrdtool>=0:${PORTSDIR}/databases/rrdtool \
p5-File-Tail>=0:${PORTSDIR}/devel/p5-File-Tail
-NO_BUILD= yes
USES= perl5
+USE_PERL5= run
+USE_RC_SUBR= ${PORTNAME}
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DATADIR?= /var/db/couriergraph
COURIERGRAPH_USER?= ${WWWOWN}
COURIERGRAPH_GROUP?= ${WWWGRP}
-USE_RC_SUBR= ${PORTNAME}
-SUB_LIST+= COURIERGRAPH_USER=${COURIERGRAPH_USER} COURIERGRAPH_GROUP=${COURIERGRAPH_GROUP}
-
+SUB_LIST= COURIERGRAPH_USER=${COURIERGRAPH_USER} \
+ COURIERGRAPH_GROUP=${COURIERGRAPH_GROUP}
STARTUP_FILE= ${PREFIX}/etc/rc.d/couriergraph.sh
SUB_FILES= pkg-message
-NO_STAGE= yes
pre-everything::
@${ECHO_MSG}
- @${ECHO_MSG} "You may set following options:"
+ @${ECHO_MSG} "You may set the following options:"
@${ECHO_MSG}
- @${ECHO_MSG} "DATADIR=/var/db/couriergraph Where do you put RRD databases?"
- @${ECHO_MSG} "COURIERGRAPH_USER=www User to run couriergraph (Default: ${WWWOWN})"
- @${ECHO_MSG} "COURIERGRAPH_GROUP=www Group to run couriergraph (Default: ${WWWGRP})"
+ @${ECHO_MSG} "DATADIR=/var/db/couriergraph Where do you put RRD databases?"
+ @${ECHO_MSG} "COURIERGRAPH_USER=www User to run couriergraph (default: ${WWWOWN})"
+ @${ECHO_MSG} "COURIERGRAPH_GROUP=www Group to run couriergraph (default: ${WWWGRP})"
@${ECHO_MSG}
+# To avoid conflict between default WRKSRC and RC_SUBR file being the same
post-extract:
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
post-patch:
- @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/couriergraph.cgi
- @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," ${WRKSRC}/couriergraph.pl
+ @${REINPLACE_CMD} -e "s,%%DATADIR%%,${DATADIR}," \
+ ${WRKSRC}/couriergraph.cgi ${WRKSRC}/couriergraph.pl
do-install:
- ${MKDIR} ${PREFIX}/www/cgi-bin
- ${MKDIR} ${DATADIR}
- @${CHOWN} -R ${COURIERGRAPH_USER}:${COURIERGRAPH_GROUP} ${DATADIR}
- @${INSTALL_SCRIPT} ${WRKSRC}/couriergraph.pl ${PREFIX}/sbin
- @${INSTALL_SCRIPT} ${WRKSRC}/couriergraph.cgi ${PREFIX}/www/cgi-bin
-
-post-install:
- @${ECHO}
- @${CAT} ${PKGMESSAGE}
- @${ECHO}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/www/cgi-bin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ @${CHOWN} -R ${COURIERGRAPH_USER}:${COURIERGRAPH_GROUP} \
+ ${STAGEDIR}${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/couriergraph.pl \
+ ${STAGEDIR}${PREFIX}/sbin
+ ${INSTALL_SCRIPT} ${WRKSRC}/couriergraph.cgi \
+ ${STAGEDIR}${PREFIX}/www/cgi-bin
.include <bsd.port.mk>