summaryrefslogtreecommitdiffstats
path: root/dns/totd
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2005-07-27 14:50:16 +0000
committerleeym <leeym@FreeBSD.org>2005-07-27 14:50:16 +0000
commit203538378093c6a7e2cbda1a9cdeb44063ee921c (patch)
tree4e98e1a0b575d6aebecc6dfbe1ec0f6c381656ce /dns/totd
parent55f48ed8a5b3b04e8e928d477fde459e62588e68 (diff)
downloadFreeBSD-ports-203538378093c6a7e2cbda1a9cdeb44063ee921c.zip
FreeBSD-ports-203538378093c6a7e2cbda1a9cdeb44063ee921c.tar.gz
- replace %zd with %d and unbreak this port on 4.x
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 38121c0..95fce54 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/=/%%!/} \
OpenPOWER on IntegriCloud