ports/119997: [PATCH] dns/bind94: added GeoIP patches

Jui-Nan Lin jnlin at csie.nctu.edu.tw
Sat Jan 26 09:40:01 UTC 2008


>Number:         119997
>Category:       ports
>Synopsis:       [PATCH] dns/bind94: added GeoIP patches
>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:   Sat Jan 26 09:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Jui-Nan Lin
>Release:        FreeBSD 6.2-RELEASE-p9 i386
>Organization:
>Environment:
System: FreeBSD Florence.tamama.org 6.2-RELEASE-p9 FreeBSD 6.2-RELEASE-p9 #0: Fri Nov 30 03:13:43 CST 2007
>Description:
[DESCRIBE CHANGES]

 - Added an option for GeoIP patches. 
   Ref: http://www.caraytech.com/geodns/

Port maintainer (dougb at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- bind94-9.4.2_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/dns/bind94/Makefile /home/jnlin/ports/bind94/Makefile
--- /usr/ports/dns/bind94/Makefile	Wed Dec  5 08:44:01 2007
+++ /home/jnlin/ports/bind94/Makefile	Sat Jan 26 17:25:48 2008
@@ -13,7 +13,7 @@
 
 PORTNAME=	bind94
 PORTVERSION=	9.4.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	dns net ipv6
 MASTER_SITES=	${MASTER_SITE_ISC} \
 		http://dougbarton.us/Downloads/%SUBDIR%/
@@ -39,7 +39,8 @@
 OPTIONS=	REPLACE_BASE "Replace base BIND with this version" off \
 		LARGE_FILE "64-bit file support" off \
 		IPV6 "IPv6 Support (autodetected by default)" off \
-		THREADS	"Compile with thread support" on
+		THREADS	"Compile with thread support" on \
+		GEOIP "Compile with GeoIP support" off
 
 .include <bsd.port.pre.mk>
 
@@ -73,6 +74,21 @@
 BIND_DESTETC=	${PREFIX}/etc
 .endif
 
+.if defined(WITH_GEOIP)
+LIB_DEPENDS+=	GeoIP:${PORTSDIR}/net/GeoIP
+
+CONFIGURE_ENV+=	 CFLAGS="-I${LOCALBASE}/include" \
+		 LDFLAGS="-L${LOCALBASE}/lib" \
+		 LIBS="-L${LOCALBASE}/lib -lGeoIP"
+
+GEOIP_PATCH_VER=	9.4.1
+
+DISTFILES+=	bind-${GEOIP_PATCH_VER}-geodns-patch.tar.gz:geodns
+MASTER_SITES+=	http://www.caraytech.com/geodns/:geodns
+EXTRACT_ONLY+=	bind-${GEOIP_PATCH_VER}-geodns-patch.tar.gz
+EXTRA_PATCHES+=	${WRKDIR}/bind-${GEOIP_PATCH_VER}-geodns-patch/patch.diff
+.endif
+
 PLIST_SUB=	BIND_DESTETC="${BIND_DESTETC}"
 
 MAN1=	dig.1 host.1 nslookup.1
@@ -116,6 +132,12 @@
 
 verify:	checksum
 	gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.asc
+
+pre-patch:
+.if defined(WITH_GEOIP)
+	@${MV} ${WRKDIR}/bind-${GEOIP_PATCH_VER}-geodns-patch/patch.diff ${WRKDIR}/bind-${GEOIP_PATCH_VER}-geodns-patch/patch.diff.Dist
+	@${SED} -e 's#bind-9.4.1-P1[^/]*/##g' ${WRKDIR}/bind-${GEOIP_PATCH_VER}-geodns-patch/patch.diff.Dist > ${WRKDIR}/bind-${GEOIP_PATCH_VER}-geodns-patch/patch.diff
+.endif
 
 post-patch:
 .for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.8 \
diff -ruN --exclude=CVS /usr/ports/dns/bind94/distinfo /home/jnlin/ports/bind94/distinfo
--- /usr/ports/dns/bind94/distinfo	Sun Dec  2 05:53:34 2007
+++ /home/jnlin/ports/bind94/distinfo	Sat Jan 26 17:08:27 2008
@@ -4,3 +4,6 @@
 MD5 (bind-9.4.2.tar.gz.asc) = acbccd025da3e1b6b980ca2a023310b3
 SHA256 (bind-9.4.2.tar.gz.asc) = c6e43af53f0102b7db4f5c2d824f509587323884ecf984a4b2c0c66e510ded01
 SIZE (bind-9.4.2.tar.gz.asc) = 479
+MD5 (bind-9.4.1-geodns-patch.tar.gz) = d3d515bdef525f9a31787b36a105e690
+SHA256 (bind-9.4.1-geodns-patch.tar.gz) = 352413037e4779519c0a5b70aef801c8f84bcf15d1d485b16096d75f83644a65
+SIZE (bind-9.4.1-geodns-patch.tar.gz) = 2057
--- bind94-9.4.2_2.patch ends here ---

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



More information about the freebsd-ports-bugs mailing list