summaryrefslogtreecommitdiff
path: root/dns
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-08-15 01:04:30 +0000
committerDoug Barton <dougb@FreeBSD.org>2012-08-15 01:04:30 +0000
commitf9b6bb72bd478b12951f554e3e87ee3a3ad40716 (patch)
treeb03e7cfe150ed1b6857b68211969a31d1b599c54 /dns
parentChange configuration directory to ${PREFIX}/etc/c-icap (diff)
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.
Notes
Notes: svn path=/head/; revision=302555
Diffstat (limited to 'dns')
-rw-r--r--dns/dualserver/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/dns/dualserver/Makefile b/dns/dualserver/Makefile
index e9266018788a..f329d2aa8337 100644
--- a/dns/dualserver/Makefile
+++ b/dns/dualserver/Makefile
@@ -14,11 +14,13 @@ COMMENT= Combined DHCP/DNS server for small LANs
USE_DOS2UNIX= yes
USE_RC_SUBR= dualserver
-WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_FILES= sbin/dualserver etc/dualserver.conf.sample
.include <bsd.port.pre.mk>
+post-extract:
+ @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
+
pre-patch:
${REINPLACE_CMD} 's|/etc/dualserver.ini|${PREFIX}/etc/dualserver.conf|' ${WRKSRC}/dualserver.cpp
${REINPLACE_CMD} 's|/etc/dualserver.state|/var/run/dualserver.state|' ${WRKSRC}/dualserver.cpp