summaryrefslogtreecommitdiff
path: root/dns/dnsmasq
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2003-06-03 02:03:40 +0000
committerWill Andrews <will@FreeBSD.org>2003-06-03 02:03:40 +0000
commit0521957a163a60ae2be5902ae888a4bf5585462b (patch)
treeb7f16e0ec691c877e7a81a850da3706e60a7478e /dns/dnsmasq
parentUnlink due to repo copy move (diff)
Add dnsmasq 1.12, a caching DNS forwarder.
PR: 52840 Submitted by: Steven Honson <shonson@isoproplex.net>
Notes
Notes: svn path=/head/; revision=82078
Diffstat (limited to 'dns/dnsmasq')
-rw-r--r--dns/dnsmasq/Makefile29
-rw-r--r--dns/dnsmasq/distinfo1
-rw-r--r--dns/dnsmasq/files/patch-Makefile11
-rw-r--r--dns/dnsmasq/files/patch-config.h12
-rw-r--r--dns/dnsmasq/files/patch-dnsmasq.h11
-rw-r--r--dns/dnsmasq/pkg-descr10
-rw-r--r--dns/dnsmasq/pkg-plist1
7 files changed, 75 insertions, 0 deletions
diff --git a/dns/dnsmasq/Makefile b/dns/dnsmasq/Makefile
new file mode 100644
index 000000000000..d9ccc65bf3c0
--- /dev/null
+++ b/dns/dnsmasq/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: dnsmasq
+# Date created: 1 June 2003
+# Whom: Steven Honson <shonson@isoproplex.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dnsmasq
+PORTVERSION= 1.12
+CATEGORIES= net
+MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/
+
+MAINTAINER= shonson@isoproplex.net
+COMMENT= A caching DNS forwarder
+
+.if defined(WITH_IPV6)
+CFLAGS += -DWITH_IPV6
+.endif
+
+MAN8= dnsmasq.8
+
+pre-fetch:
+.if !defined(WITH_IPV6)
+ @${ECHO_CMD} ""
+ @${ECHO_CMD} "Define WITH_IPV6 to build dnsmasq with IPv6 support."
+ @${ECHO_CMD} ""
+.endif
+
+.include <bsd.port.mk>
diff --git a/dns/dnsmasq/distinfo b/dns/dnsmasq/distinfo
new file mode 100644
index 000000000000..18c0494a2abb
--- /dev/null
+++ b/dns/dnsmasq/distinfo
@@ -0,0 +1 @@
+MD5 (dnsmasq-1.12.tar.gz) = 41f4ef37bb38e7b50430d00de92d5789
diff --git a/dns/dnsmasq/files/patch-Makefile b/dns/dnsmasq/files/patch-Makefile
new file mode 100644
index 000000000000..6c1b93c0cc64
--- /dev/null
+++ b/dns/dnsmasq/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig Mon Jun 2 22:22:30 2003
++++ Makefile Mon Jun 2 22:22:35 2003
+@@ -3,7 +3,7 @@
+ MANDIR = /usr/local/man
+
+ CC = gcc
+-CFLAGS = -O2
++CFLAGS += -O2
+
+ all : dnsmasq
+
diff --git a/dns/dnsmasq/files/patch-config.h b/dns/dnsmasq/files/patch-config.h
new file mode 100644
index 000000000000..67739248f578
--- /dev/null
+++ b/dns/dnsmasq/files/patch-config.h
@@ -0,0 +1,12 @@
+--- config.h.orig Mon Jun 2 22:04:52 2003
++++ config.h Mon Jun 2 22:05:03 2003
+@@ -35,7 +35,7 @@
+ /* We assume that systems which don't have IPv6
+ headers don't have ntop and pton either */
+
+-#if defined(INET6_ADDRSTRLEN)
++#if defined(INET6_ADDRSTRLEN) && defined(WITH_IPV6)
+ # define HAVE_IPV6
+ # define ADDRSTRLEN INET6_ADDRSTRLEN
+ #elif defined(INET_ADDRSTRLEN)
+
diff --git a/dns/dnsmasq/files/patch-dnsmasq.h b/dns/dnsmasq/files/patch-dnsmasq.h
new file mode 100644
index 000000000000..bb09ba8ccac8
--- /dev/null
+++ b/dns/dnsmasq/files/patch-dnsmasq.h
@@ -0,0 +1,11 @@
+--- dnsmasq.h.orig Mon Jun 2 00:17:58 2003
++++ dnsmasq.h Mon Jun 2 00:18:08 2003
+@@ -16,7 +16,7 @@
+ #include <sys/types.h>
+ #include <netinet/in.h>
+ /* and this for C library versions */
+-#include <libio.h>
++/* #include <libio.h> */
+
+ #include "config.h"
+
diff --git a/dns/dnsmasq/pkg-descr b/dns/dnsmasq/pkg-descr
new file mode 100644
index 000000000000..e75bbab945d4
--- /dev/null
+++ b/dns/dnsmasq/pkg-descr
@@ -0,0 +1,10 @@
+Dnsmasq is a caching DNS forwarder designed to provide DNS service on a
+small network. It is targeted at home networks using NAT and connected to
+the internet via a modem, cable-modem or ADSL connection but would be a
+good choice for any small network where low resource use and ease of
+configuration are important.
+
+WWW: http://www.thekelleys.org.uk/dnsmasq/doc.html
+
+- Steven Honson
+shonson@isoproplex.net
diff --git a/dns/dnsmasq/pkg-plist b/dns/dnsmasq/pkg-plist
new file mode 100644
index 000000000000..0f121782ec19
--- /dev/null
+++ b/dns/dnsmasq/pkg-plist
@@ -0,0 +1 @@
+sbin/dnsmasq