aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-07-27 22:50:16 +0800
committerleeym <leeym@FreeBSD.org>2005-07-27 22:50:16 +0800
commit203538378093c6a7e2cbda1a9cdeb44063ee921c (patch)
tree4e98e1a0b575d6aebecc6dfbe1ec0f6c381656ce /dns
parent55f48ed8a5b3b04e8e928d477fde459e62588e68 (diff)
downloadfreebsd-ports-graphics-203538378093c6a7e2cbda1a9cdeb44063ee921c.tar.gz
freebsd-ports-graphics-203538378093c6a7e2cbda1a9cdeb44063ee921c.tar.zst
freebsd-ports-graphics-203538378093c6a7e2cbda1a9cdeb44063ee921c.zip
- replace %zd with %d and unbreak this port on 4.x
Diffstat (limited to 'dns')
-rw-r--r--dns/totd/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/dns/totd/Makefile b/dns/totd/Makefile
index 38121c0f656..95fce547728 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/=/%%!/} \