aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
-rw-r--r--net/Makefile1
-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
15 files changed, 151 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
diff --git a/net/Makefile b/net/Makefile
index 370c826f8416..a9e970f434a2 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -113,6 +113,7 @@
SUBDIR += dlint
SUBDIR += dnrd
SUBDIR += dns_balance
+ SUBDIR += dnsmasq
SUBDIR += dnssecwalker
SUBDIR += dnstop
SUBDIR += dnstracer
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