aboutsummaryrefslogtreecommitdiff
path: root/dns/totd
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2005-07-27 14:50:16 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2005-07-27 14:50:16 +0000
commitc73d9b3298c525ed176e885987f9f08ac93fea9b (patch)
tree2af0d3866cc94abd223d81dbc1046f1ed9465342 /dns/totd
parente9b75968a48dbb6a62a3b57652c8282caf357086 (diff)
downloadports-c73d9b3298c525ed176e885987f9f08ac93fea9b.tar.gz
ports-c73d9b3298c525ed176e885987f9f08ac93fea9b.zip
- replace %zd with %d and unbreak this port on 4.x
Notes
Notes: svn path=/head/; revision=140238
Diffstat (limited to 'dns/totd')
-rw-r--r--dns/totd/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/dns/totd/Makefile b/dns/totd/Makefile
index 38121c0f656e..95fce5477284 100644
--- a/dns/totd/Makefile
+++ b/dns/totd/Makefile
@@ -16,9 +16,13 @@ MAN8= totd.8
USE_RC_SUBR= YES
GNU_CONFIGURE= YES
+USE_REINPLACE= YES
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
+post-patch:
+ @${REINPLACE_CMD} -e 's/%zd/%d/g' ${WRKSRC}/*.c
+
post-install:
${INSTALL_DATA} ${FILESDIR}/totd.conf.sample ${PREFIX}/etc
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \