aboutsummaryrefslogtreecommitdiffstats
path: root/mail/couriergraph
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2012-08-15 09:04:30 +0800
committerdougb <dougb@FreeBSD.org>2012-08-15 09:04:30 +0800
commit320cd1ea2d17c86179fa69a8da5584397ab2a2e1 (patch)
treeb03e7cfe150ed1b6857b68211969a31d1b599c54 /mail/couriergraph
parent5a2fb644bcdcc0667463dfc374adb0058abbdd9d (diff)
downloadfreebsd-ports-gnome-320cd1ea2d17c86179fa69a8da5584397ab2a2e1.tar.gz
freebsd-ports-gnome-320cd1ea2d17c86179fa69a8da5584397ab2a2e1.tar.zst
freebsd-ports-gnome-320cd1ea2d17c86179fa69a8da5584397ab2a2e1.zip
Fix problem introduced in r302141. The directory for the unpacked source
files is unversioned, so it conflicts with the name of the rc.d script in WRKDIR after SUB_FILES is applied.
Diffstat (limited to 'mail/couriergraph')
-rw-r--r--mail/couriergraph/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/couriergraph/Makefile b/mail/couriergraph/Makefile
index 2c3bcb98913e..1bb49bb9a11b 100644
--- a/mail/couriergraph/Makefile
+++ b/mail/couriergraph/Makefile
@@ -20,7 +20,6 @@ RUN_DEPENDS= rrdtool>=0:${PORTSDIR}/databases/rrdtool \
NO_BUILD= yes
USE_PERL5= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}
DATADIR?= /var/db/couriergraph
COURIERGRAPH_USER?= ${WWWOWN}
@@ -42,6 +41,9 @@ pre-everything::
@${ECHO_MSG} "COURIERGRAPH_GROUP=www Group to run couriergraph (Default: ${WWWGRP})"
@${ECHO_MSG}
+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