aboutsummaryrefslogtreecommitdiff
path: root/dns/totd
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-03-25 21:21:40 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-03-25 21:21:40 +0000
commit9a49082dc38613a51c308afbe25fd839460e7d22 (patch)
tree8bfa52ef2f4192dde6e80544f96855dbe8943d9b /dns/totd
parentbf377710f9834970b947e9d9f3cad3a025ae7148 (diff)
Notes
Diffstat (limited to 'dns/totd')
-rw-r--r--dns/totd/Makefile17
-rw-r--r--dns/totd/files/patch-Makefile.in11
-rw-r--r--dns/totd/files/totd.in (renamed from dns/totd/files/totd.sh)0
-rw-r--r--dns/totd/pkg-plist3
4 files changed, 14 insertions, 17 deletions
diff --git a/dns/totd/Makefile b/dns/totd/Makefile
index 30164d0eff5c..c30f275d99d2 100644
--- a/dns/totd/Makefile
+++ b/dns/totd/Makefile
@@ -13,30 +13,19 @@ MASTER_SITES= ftp://ftp.pasta.cs.uit.no/pub/Vermicelli/
MAINTAINER= ed@fxq.nl
COMMENT= DNS proxy that supports IPv6 <==> IPv4 record translation
-USE_RC_SUBR= yes
+USE_RC_SUBR= totd
GNU_CONFIGURE= yes
MAN8= totd.8
+PLIST_FILES= etc/totd.conf.sample sbin/totd
-RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500000
EXTRA_PATCHES= ${FILESDIR}/extra-patch-ne_mesg.c \
${FILESDIR}/extra-patch-tcp_response.c
-.endif
post-patch:
@${REINPLACE_CMD} -e '/^CC/d' ${WRKSRC}/${MAKEFILE}.in
-.if ${OSVERSION} < 500000
- @${REINPLACE_CMD} -e 's/%zd/%d/g' ${WRKSRC}/*.c
-.endif
post-install:
${INSTALL_DATA} ${FILESDIR}/totd.conf.sample ${PREFIX}/etc
- @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
- ${FILESDIR}/totd.sh > ${PREFIX}/etc/rc.d/totd.sh
- @${CHMOD} ${BINMODE} ${PREFIX}/etc/rc.d/totd.sh
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/dns/totd/files/patch-Makefile.in b/dns/totd/files/patch-Makefile.in
new file mode 100644
index 000000000000..7b9925da3fc0
--- /dev/null
+++ b/dns/totd/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in Tue Mar 20 07:13:19 2007
++++ Makefile.in Tue Mar 20 07:14:28 2007
+@@ -18,7 +18,7 @@
+
+ INSTALL = /usr/bin/install
+
+-CFLAGS = @CFLAGS@ @DEFS@ -Werror -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
++CFLAGS = @CFLAGS@ @DEFS@ -Wall -DTOTCONF=\"$(TOT_CONFIG_FILE)\" @OPTFLAGS@ $(INCLUDEPATH)
+
+ # When debugging is enabled by --enable-malloc-debug flag to the configure
+ # script, the @DBMALLOC@ substitution will contain the empty string, thus
diff --git a/dns/totd/files/totd.sh b/dns/totd/files/totd.in
index 287f20207e9f..287f20207e9f 100644
--- a/dns/totd/files/totd.sh
+++ b/dns/totd/files/totd.in
diff --git a/dns/totd/pkg-plist b/dns/totd/pkg-plist
deleted file mode 100644
index 7b2812b412dc..000000000000
--- a/dns/totd/pkg-plist
+++ /dev/null
@@ -1,3 +0,0 @@
-sbin/totd
-etc/rc.d/totd.sh
-etc/totd.conf.sample