aboutsummaryrefslogtreecommitdiffstats
path: root/net/dnsmasq
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2003-06-03 10:03:40 +0800
committerwill <will@FreeBSD.org>2003-06-03 10:03:40 +0800
commitaa830dbe4101fe7d5a466cce8ee07bb8aa4c3807 (patch)
treeb6988f1ba337251657533a7df343979b4259c9f3 /net/dnsmasq
parent0695c590921a808c5d85a18ff7a2ef2d0e7e2de6 (diff)
downloadfreebsd-ports-gnome-aa830dbe4101fe7d5a466cce8ee07bb8aa4c3807.tar.gz
freebsd-ports-gnome-aa830dbe4101fe7d5a466cce8ee07bb8aa4c3807.tar.zst
freebsd-ports-gnome-aa830dbe4101fe7d5a466cce8ee07bb8aa4c3807.zip
Add dnsmasq 1.12, a caching DNS forwarder.
PR: 52840 Submitted by: Steven Honson <shonson@isoproplex.net>
Diffstat (limited to 'net/dnsmasq')
-rw-r--r--net/dnsmasq/Makefile29
-rw-r--r--net/dnsmasq/distinfo1
-rw-r--r--net/dnsmasq/files/patch-Makefile11
-rw-r--r--net/dnsmasq/files/patch-config.h12
-rw-r--r--net/dnsmasq/files/patch-dnsmasq.h11
-rw-r--r--net/dnsmasq/pkg-descr10
-rw-r--r--net/dnsmasq/pkg-plist1
7 files changed, 75 insertions, 0 deletions
diff --git a/net/dnsmasq/Makefile b/net/dnsmasq/Makefile
new file mode 100644
index 000000000000..d9ccc65bf3c0
--- /dev/null
+++ b/net/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/net/dnsmasq/distinfo b/net/dnsmasq/distinfo
new file mode 100644
index 000000000000..18c0494a2abb
--- /dev/null
+++ b/net/dnsmasq/distinfo
@@ -0,0 +1 @@
+MD5 (dnsmasq-1.12.tar.gz) = 41f4ef37bb38e7b50430d00de92d5789
diff --git a/net/dnsmasq/files/patch-Makefile b/net/dnsmasq/files/patch-Makefile
new file mode 100644
index 000000000000..6c1b93c0cc64
--- /dev/null
+++ b/net/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/net/dnsmasq/files/patch-config.h b/net/dnsmasq/files/patch-config.h
new file mode 100644
index 000000000000..67739248f578
--- /dev/null
+++ b/net/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/net/dnsmasq/files/patch-dnsmasq.h b/net/dnsmasq/files/patch-dnsmasq.h
new file mode 100644
index 000000000000..bb09ba8ccac8
--- /dev/null
+++ b/net/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/net/dnsmasq/pkg-descr b/net/dnsmasq/pkg-descr
new file mode 100644
index 000000000000..e75bbab945d4
--- /dev/null
+++ b/net/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/net/dnsmasq/pkg-plist b/net/dnsmasq/pkg-plist
new file mode 100644
index 000000000000..0f121782ec19
--- /dev/null
+++ b/net/dnsmasq/pkg-plist
@@ -0,0 +1 @@
+sbin/dnsmasq