On Thu, Apr 05, 2012 at 12:28:48PM -0400, Brad Smith wrote:
> dnsmasq 2.61 is close to the next release. This release has had a number of
> improvements and some bug fixes mainly with the new DHCPv6 and RA support.
> The ra-names feature now works on OpenBSD.
> 
> Here is rc1 for anyone using dnsmasq that is interested in helping out
> test this and provide any feedback to the author.
 
Here is an updated diff for the rc4 release.

While testing the TFTP server with the pending IPv6 support diff for
tftp(1) I found that the TFTP server was broken over IPv4 back at
version 2.56 when IPv6 support was added. This has now been fixed.


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/dnsmasq/Makefile,v
retrieving revision 1.21
diff -u -p -r1.21 Makefile
--- Makefile    25 Oct 2011 10:20:26 -0000      1.21
+++ Makefile    27 Apr 2012 18:43:33 -0000
@@ -1,10 +1,12 @@
 # $OpenBSD: Makefile,v 1.21 2011/10/25 10:20:26 sthen Exp $
 
-COMMENT=       caching DNS forwarder and DHCP server
+NOT_FOR_ARCHS= ${GCC2_ARCHS}
 
-DISTNAME=      dnsmasq-2.59
+COMMENT=       lightweight caching DNS forwarder, DHCP and TFTP server
+
+DISTNAME=      dnsmasq-2.61rc4
 CATEGORIES=    net
-MASTER_SITES=  http://www.thekelleys.org.uk/dnsmasq/
+MASTER_SITES=  http://www.thekelleys.org.uk/dnsmasq/release-candidates/
 
 HOMEPAGE=      http://www.thekelleys.org.uk/dnsmasq/doc.html
 
@@ -27,8 +29,8 @@ pre-build:
                ${WRKSRC}/dnsmasq.conf.example
 
 do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/src/dnsmasq ${PREFIX}/sbin
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/dnsmasq
+       ${INSTALL_PROGRAM} ${WRKSRC}/src/dnsmasq ${PREFIX}/sbin
        ${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example 
${PREFIX}/share/examples/dnsmasq
        ${INSTALL_MAN} ${WRKSRC}/man/dnsmasq.8 ${PREFIX}/man/man8
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/dnsmasq/distinfo,v
retrieving revision 1.16
diff -u -p -r1.16 distinfo
--- distinfo    25 Oct 2011 10:20:26 -0000      1.16
+++ distinfo    27 Apr 2012 18:43:33 -0000
@@ -1,5 +1,5 @@
-MD5 (dnsmasq-2.59.tar.gz) = tXV+8te2UXSO7ruIrynX1g==
-RMD160 (dnsmasq-2.59.tar.gz) = 0u2FX0/BcH3zI92sAnq4/QdwuCc=
-SHA1 (dnsmasq-2.59.tar.gz) = kwLzjRLQCCPSDMkScJBQi0h2xa4=
-SHA256 (dnsmasq-2.59.tar.gz) = vcHmYJn6/6sOL9OUwGRscYsk9BfssP8ygzgqIEbxQQs=
-SIZE (dnsmasq-2.59.tar.gz) = 474036
+MD5 (dnsmasq-2.61rc4.tar.gz) = zcTYZlzKwwmWrDx5e8nMwQ==
+RMD160 (dnsmasq-2.61rc4.tar.gz) = mGINzfOloDKyoxfrAZWr/Mm/4Ks=
+SHA1 (dnsmasq-2.61rc4.tar.gz) = 8A1dgRhFebGURqLZfDRA2jlHw5U=
+SHA256 (dnsmasq-2.61rc4.tar.gz) = hPVtSo3Zd1vqsjmSeB116/kCn/xmF7blAnzy2/XJU+8=
+SIZE (dnsmasq-2.61rc4.tar.gz) = 547656
Index: patches/patch-dnsmasq_conf_example
===================================================================
RCS file: /cvs/ports/net/dnsmasq/patches/patch-dnsmasq_conf_example,v
retrieving revision 1.1
diff -u -p -r1.1 patch-dnsmasq_conf_example
--- patches/patch-dnsmasq_conf_example  14 Jun 2009 17:07:25 -0000      1.1
+++ patches/patch-dnsmasq_conf_example  27 Apr 2012 18:43:33 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-dnsmasq_conf_example,v 1.1 2009/06/14 17:07:25 kili Exp $
---- dnsmasq.conf.example.orig  Mon Jun  8 23:05:30 2009
-+++ dnsmasq.conf.example       Sat Jun 13 12:34:06 2009
+--- dnsmasq.conf.example.orig  Mon Apr 16 12:26:19 2012
++++ dnsmasq.conf.example       Mon Apr 16 20:42:36 2012
 @@ -2,7 +2,7 @@
  #
  # Format is one option per line, legal options are the same
@@ -8,5 +8,5 @@ $OpenBSD: patch-dnsmasq_conf_example,v 1
 -# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
 +# "${LOCALBASE}/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
  
- # The following two options make you a better netizen, since they
- # tell dnsmasq to filter out queries which the public DNS cannot
+ # Listen on this specific port instead of the standard DNS port
+ # (53). Setting this to zero completely disables DNS function,
Index: patches/patch-man_dnsmasq_8
===================================================================
RCS file: /cvs/ports/net/dnsmasq/patches/patch-man_dnsmasq_8,v
retrieving revision 1.10
diff -u -p -r1.10 patch-man_dnsmasq_8
--- patches/patch-man_dnsmasq_8 7 Sep 2011 10:34:26 -0000       1.10
+++ patches/patch-man_dnsmasq_8 27 Apr 2012 18:43:33 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-man_dnsmasq_8,v 1.10 2011/09/07 10:34:26 jasper Exp $
---- man/dnsmasq.8.orig Tue Aug  9 11:05:38 2011
-+++ man/dnsmasq.8      Mon Aug 29 17:35:40 2011
+--- man/dnsmasq.8.orig Fri Apr 20 16:28:49 2012
++++ man/dnsmasq.8      Fri Apr 20 23:04:18 2012
 @@ -113,13 +113,12 @@ Specify an alternate path for dnsmasq to record its pr
  .TP
  .B \-u, --user=<username>
@@ -17,7 +17,7 @@ $OpenBSD: patch-man_dnsmasq_8,v 1.10 201
  .TP
  .B \-v, --version
  Print the version number.
-@@ -1206,7 +1205,7 @@ with # are always skipped. This flag may be given on t
+@@ -1430,7 +1429,7 @@ with # are always skipped. This flag may be given on t
  line or in a configuration file.
  .SH CONFIG FILE
  At startup, dnsmasq reads
@@ -26,7 +26,7 @@ $OpenBSD: patch-man_dnsmasq_8,v 1.10 201
  if it exists. (On
  FreeBSD, the file is 
  .I /usr/local/etc/dnsmasq.conf
-@@ -1524,7 +1523,7 @@ dnsmasq has no direct way of determining the charset i
+@@ -1748,7 +1747,7 @@ dnsmasq has no direct way of determining the charset i
  assume that it is the system default. 
   
  .SH FILES
Index: patches/patch-src_config_h
===================================================================
RCS file: /cvs/ports/net/dnsmasq/patches/patch-src_config_h,v
retrieving revision 1.8
diff -u -p -r1.8 patch-src_config_h
--- patches/patch-src_config_h  6 Mar 2011 11:19:53 -0000       1.8
+++ patches/patch-src_config_h  27 Apr 2012 18:43:33 -0000
@@ -1,7 +1,18 @@
 $OpenBSD: patch-src_config_h,v 1.8 2011/03/06 11:19:53 sthen Exp $
---- src/config.h.orig  Fri Feb 18 05:18:39 2011
-+++ src/config.h       Fri Feb 18 15:00:08 2011
-@@ -57,13 +57,13 @@
+--- src/config.h.orig  Tue Feb 14 15:55:25 2012
++++ src/config.h       Wed Feb 15 17:24:57 2012
+@@ -34,8 +34,8 @@
+ #define ETHERSFILE "/etc/ethers"
+ #define RUNFILE "/var/run/dnsmasq.pid"
+ #define DEFLEASE 3600 /* default lease time, 1 hour */
+-#define CHUSER "nobody"
+-#define CHGRP "dip"
++#define CHUSER "_dnsmasq"
++#define CHGRP "_dnsmasq"
+ #define TFTP_MAX_CONNECTIONS 50 /* max simultaneous connections */
+ #define LOG_MAX 5 /* log-queue length */
+ #define RANDFILE "/dev/urandom"
+@@ -145,7 +145,7 @@ RESOLVFILE
  #   if defined(__FreeBSD__)
  #      define CONFFILE "/usr/local/etc/dnsmasq.conf"
  #   else
@@ -10,11 +21,3 @@ $OpenBSD: patch-src_config_h,v 1.8 2011/
  #   endif
  #endif
  
- #define DEFLEASE 3600 /* default lease time, 1 hour */
--#define CHUSER "nobody"
--#define CHGRP "dip"
-+#define CHUSER "_dnsmasq"
-+#define CHGRP "_dnsmasq"
- #define NAMESERVER_PORT 53
- #define DHCP_SERVER_PORT 67
- #define DHCP_CLIENT_PORT 68
Index: patches/patch-src_dnsmasq_h
===================================================================
RCS file: patches/patch-src_dnsmasq_h
diff -N patches/patch-src_dnsmasq_h
--- patches/patch-src_dnsmasq_h 7 Sep 2011 10:34:26 -0000       1.9
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
-$OpenBSD: patch-src_dnsmasq_h,v 1.9 2011/09/07 10:34:26 jasper Exp $
-
-gcc2 fix to struct tftp_file
-
---- src/dnsmasq.h.orig Tue Jun 28 12:08:53 2011
-+++ src/dnsmasq.h      Thu Jul 14 17:02:11 2011
-@@ -596,7 +596,7 @@ struct tftp_file {
-   off_t size;
-   dev_t dev;
-   ino_t inode;
--  char filename[];
-+  char filename[0];
- };
- 
- struct tftp_transfer {
Index: patches/patch-src_tftp_c
===================================================================
RCS file: patches/patch-src_tftp_c
diff -N patches/patch-src_tftp_c
--- patches/patch-src_tftp_c    7 Sep 2011 10:34:26 -0000       1.10
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,33 +0,0 @@
-$OpenBSD: patch-src_tftp_c,v 1.10 2011/09/07 10:34:26 jasper Exp $
-
-gcc2 fixes to struct errmess, struct oackmess, struct datamess
-
---- src/tftp.c.orig    Tue Aug  9 08:41:48 2011
-+++ src/tftp.c Mon Aug 29 17:35:40 2011
-@@ -611,7 +611,7 @@ static ssize_t tftp_err(int err, char *packet, char *m
- {
-   struct errmess {
-     unsigned short op, err;
--    char message[];
-+    char message[0];
-   } *mess = (struct errmess *)packet;
-   ssize_t ret = 4;
-   char *errstr = strerror(errno);
-@@ -638,7 +638,7 @@ static ssize_t get_block(char *packet, struct tftp_tra
-       char *p;
-       struct oackmess {
-       unsigned short op;
--      char data[];
-+      char data[0];
-       } *mess = (struct oackmess *)packet;
-       
-       p = mess->data;
-@@ -661,7 +661,7 @@ static ssize_t get_block(char *packet, struct tftp_tra
-       /* send data packet */
-       struct datamess {
-       unsigned short op, block;
--      unsigned char data[];
-+      unsigned char data[0];
-       } *mess = (struct datamess *)packet;
-       
-       size_t size = transfer->file->size - transfer->offset; 
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/net/dnsmasq/pkg/DESCR,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 DESCR
--- pkg/DESCR   23 May 2005 18:46:58 -0000      1.1.1.1
+++ pkg/DESCR   27 Apr 2012 18:43:33 -0000
@@ -1,14 +1,13 @@
-Dnsmasq is lightweight, easy to configure DNS forwarder and
-DHCP server. It is designed to provide DNS and, optionally,
-DHCP, to a small network. It can serve the names of local
-machines which are not in the global DNS. The DHCP server
-integrates with the DNS server and allows machines with
-DHCP-allocated addresses to appear in the DNS with names
-configured either in each host or in a central configuration
-file. Dnsmasq supports static and dynamic DHCP leases and BOOTP
-for network booting of diskless machines. 
+Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
+It is designed to provide DNS and, optionally, DHCP, to a small network.
+It can serve the names of local machines which are not in the global DNS.
+The DHCP server integrates with the DNS server and allows machines with
+DHCP-allocated addresses to appear in the DNS with names configured either
+in each host or in a central configuration file. Dnsmasq supports static
+and dynamic DHCP leases and BOOTP/TFTP/PXE for network booting of diskless
+machines.
 
-Dnsmasq 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. 
+Dnsmasq 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 smallish network (up to 1000 clients is known to work) where low resource
+use and ease of configuration are important.
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/dnsmasq/pkg/PLIST,v
retrieving revision 1.4
diff -u -p -r1.4 PLIST
--- pkg/PLIST   14 Jun 2009 17:07:25 -0000      1.4
+++ pkg/PLIST   27 Apr 2012 18:43:33 -0000
@@ -6,3 +6,4 @@
 share/examples/dnsmasq/
 share/examples/dnsmasq/dnsmasq.conf.example
 @sample ${SYSCONFDIR}/dnsmasq.conf
+@rcscript ${RCDIR}/dnsmasq
Index: pkg/dnsmasq.rc
===================================================================
RCS file: pkg/dnsmasq.rc
diff -N pkg/dnsmasq.rc
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ pkg/dnsmasq.rc      27 Apr 2012 18:43:33 -0000
@@ -0,0 +1,11 @@
+#!/bin/sh
+#
+# $OpenBSD$
+
+daemon="${TRUEPREFIX}/sbin/dnsmasq"
+
+. /etc/rc.d/rc.subr
+
+rc_reload=NO
+
+rc_cmd $1

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply via email to