Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2003 05:40:08 -0700 (PDT)
From:      Steven Honson <shonson@isoproplex.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/52840: New Port: net/dnsmasq
Message-ID:  <200306021240.h52Ce849058548@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/52840; it has been noted by GNATS.

From: Steven Honson <shonson@isoproplex.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: ports/52840: New Port: net/dnsmasq
Date: Mon, 2 Jun 2003 22:32:31 +1000

 Hi All,
 
 I discovered a bug with dnsmasq on IPv4 only systems where dnsmasq thought the user had IPv6 support when infact they 
 didn't.
 I have updated the port to allow the user to specifiy if they have a IPv6 capable machine.
 Please find the updated shar file below, and disregard the previous shar i sent.
 
 Cheers,
 Steven Honson
 
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #       dnsmasq
 #       dnsmasq/Makefile
 #       dnsmasq/files
 #       dnsmasq/files/patch-dnsmasq.h
 #       dnsmasq/files/patch-config.h
 #       dnsmasq/files/patch-Makefile
 #       dnsmasq/distinfo
 #       dnsmasq/pkg-plist
 #       dnsmasq/pkg-descr
 #
 echo c - dnsmasq
 mkdir -p dnsmasq > /dev/null 2>&1
 echo x - dnsmasq/Makefile
 sed 's/^X//' >dnsmasq/Makefile << 'END-of-dnsmasq/Makefile'
 X# New ports collection makefile for:   dnsmasq
 X# Date created:        1 June 2003
 X# Whom:                Steven Honson <shonson@isoproplex.net>
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=      dnsmasq
 XPORTVERSION=   1.12
 XCATEGORIES=    net
 XMASTER_SITES=  http://www.thekelleys.org.uk/dnsmasq/
 X
 XMAINTAINER=    shonson@isoproplex.net
 XCOMMENT=       A caching DNS forwarder
 X
 X.if defined(WITH_IPV6)
 XCFLAGS +=      -DWITH_IPV6
 X.endif
 X
 XMAN8=          dnsmasq.8
 X
 Xpre-fetch:
 X.if !defined(WITH_IPV6)
 X       @${ECHO_CMD} ""
 X       @${ECHO_CMD} "Define WITH_IPV6 to build dnsmasq with IPv6 support."
 X       @${ECHO_CMD} ""
 X.endif
 X
 X.include <bsd.port.mk>
 END-of-dnsmasq/Makefile
 echo c - dnsmasq/files
 mkdir -p dnsmasq/files > /dev/null 2>&1
 echo x - dnsmasq/files/patch-dnsmasq.h
 sed 's/^X//' >dnsmasq/files/patch-dnsmasq.h << 'END-of-dnsmasq/files/patch-dnsmasq.h'
 X--- dnsmasq.h.orig       Mon Jun  2 00:17:58 2003
 X+++ dnsmasq.h   Mon Jun  2 00:18:08 2003
 X@@ -16,7 +16,7 @@
 X #include <sys/types.h>
 X #include <netinet/in.h>
 X /* and this for C library versions */
 X-#include <libio.h> 
 X+/* #include <libio.h> */
 X 
 X #include "config.h"
 X
 END-of-dnsmasq/files/patch-dnsmasq.h
 echo x - dnsmasq/files/patch-config.h
 sed 's/^X//' >dnsmasq/files/patch-config.h << 'END-of-dnsmasq/files/patch-config.h'
 X--- config.h.orig       Mon Jun  2 22:04:52 2003
 X+++ config.h    Mon Jun  2 22:05:03 2003
 X@@ -35,7 +35,7 @@
 X /* We assume that systems which don't have IPv6
 X    headers don't have ntop and pton either */
 X 
 X-#if defined(INET6_ADDRSTRLEN)
 X+#if defined(INET6_ADDRSTRLEN) && defined(WITH_IPV6)
 X #  define HAVE_IPV6
 X #  define ADDRSTRLEN INET6_ADDRSTRLEN
 X #elif defined(INET_ADDRSTRLEN)
 X
 END-of-dnsmasq/files/patch-config.h
 echo x - dnsmasq/files/patch-Makefile
 sed 's/^X//' >dnsmasq/files/patch-Makefile << 'END-of-dnsmasq/files/patch-Makefile'
 X--- Makefile.orig       Mon Jun  2 22:22:30 2003
 X+++ Makefile    Mon Jun  2 22:22:35 2003
 X@@ -3,7 +3,7 @@
 X MANDIR = /usr/local/man
 X 
 X CC = gcc
 X-CFLAGS = -O2
 X+CFLAGS += -O2
 X 
 X all : dnsmasq
 X 
 END-of-dnsmasq/files/patch-Makefile
 echo x - dnsmasq/distinfo
 sed 's/^X//' >dnsmasq/distinfo << 'END-of-dnsmasq/distinfo'
 XMD5 (dnsmasq-1.12.tar.gz) = 41f4ef37bb38e7b50430d00de92d5789
 END-of-dnsmasq/distinfo
 echo x - dnsmasq/pkg-plist
 sed 's/^X//' >dnsmasq/pkg-plist << 'END-of-dnsmasq/pkg-plist'
 Xsbin/dnsmasq
 X
 END-of-dnsmasq/pkg-plist
 echo x - dnsmasq/pkg-descr
 sed 's/^X//' >dnsmasq/pkg-descr << 'END-of-dnsmasq/pkg-descr'
 XDnsmasq is a caching DNS forwarder designed to provide DNS service on a 
 Xsmall network. It is targeted at home networks using NAT and connected to 
 Xthe internet via a modem, cable-modem or ADSL connection but would be a 
 Xgood choice for any small network where low resource use and ease of 
 Xconfiguration are important.
 X
 XWWW: http://www.thekelleys.org.uk/dnsmasq/doc.html
 X
 X- Steven Honson
 Xshonson@isoproplex.net
 END-of-dnsmasq/pkg-descr
 exit
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306021240.h52Ce849058548>