Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 May 2013 08:23:15 GMT
From:      Tatsuki Makino <tatsuki_makino@hotmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/178364: [patch] Port dns/adns add option to apply patch
Message-ID:  <201305060823.r468NFxk086533@oldred.FreeBSD.org>
Resent-Message-ID: <201305060830.r468U0ns093841@freefall.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help

>Number:         178364
>Category:       ports
>Synopsis:       [patch] Port dns/adns add option to apply patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 06 08:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tatsuki Makino
>Release:        FreeBSD 8.4-PRERELEASE i386
>Organization:
>Environment:
FreeBSD T2.test 8.4-PRERELEASE FreeBSD 8.4-PRERELEASE #0 r250138M: Wed May  1 08:08:15 UTC 2013     root@T2.test:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
apply lucab's ipv6 patch to dns/adns.

I test only install and deinstall.
I don't know it can run.
>How-To-Repeat:

>Fix:
I have prepared a patch to change dns/adns.

Patch attached with submission follows:

Index: head/dns/adns/Makefile
===================================================================
--- head/dns/adns/Makefile	(revision 317460)
+++ head/dns/adns/Makefile	(working copy)
@@ -20,8 +20,22 @@
 
 DOCS=		COPYING GPL-vs-LGPL INSTALL LICENCE.WAIVERS README README.html TODO changelog
 
+OPTIONS_DEFINE=	DOCS IPV6PATCH
+OPTIONS_DEFAULT=	DOCS
+IPV6PATCH_DESC=	Apply patches for IPv6 protocol
+
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MIPV6PATCH}
+BUILD_DEPENDS+=	gm4:${PORTSDIR}/devel/m4
+CFLAGS+=	-Ds6_addr16=__u6_addr.__u6_addr16
+CFLAGS+=	-Ds6_addr32=__u6_addr.__u6_addr32
+MAKE_FLAGS+=	M4=gm4
+PATCH_SITES+=	http://people.debian.org/~lucab/deb/adns/:ipv6patch
+PATCHFILES+=	adns-ipv6.patch:ipv6patch
+PATCH_DIST_STRIP+=	-p1
+.endif
+
 post-install:
 	${STRIP_CMD} ${PREFIX}/bin/adnslogres ${PREFIX}/bin/adnshost
 .if ${PORT_OPTIONS:MDOCS}
Index: head/dns/adns/distinfo
===================================================================
--- head/dns/adns/distinfo	(revision 317460)
+++ head/dns/adns/distinfo	(working copy)
@@ -1,2 +1,4 @@
 SHA256 (adns-1.4.tar.gz) = 717b92a39117a5d8b04ea7c652c630659c6eecb35211129a8cee95e6524ca9fe
 SIZE (adns-1.4.tar.gz) = 252668
+SHA256 (adns-ipv6.patch) = 84adcc350ee9a3144e0b48fb12ad8f7e8f028a5316b7948e698acaf57afae2e4
+SIZE (adns-ipv6.patch) = 88709


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201305060823.r468NFxk086533>