diff -ruN bind94/Makefile bind94-geodns/Makefile --- bind94/Makefile 2008-08-02 09:01:20.000000000 +0200 +++ bind94-geodns/Makefile 2008-12-14 12:37:13.000000000 +0100 @@ -38,7 +38,8 @@ OPTIONS= REPLACE_BASE "Replace base BIND with this version" off \ LARGE_FILE "64-bit file support" off \ SIGCHASE "dig/host/nslookup will do DNSSEC validation" off \ - IPV6 "IPv6 Support (autodetected by default)" off + IPV6 "IPv6 Support (autodetected by default)" off \ + GEODNS "Enable GeoDNS BIND patch" off .include @@ -83,6 +84,16 @@ BIND_DESTETC= ${PREFIX}/etc .endif +.if defined(WITH_GEODNS) +PATCHFILES+= bind-9.4.2-P2-geodns.diff +PATCH_SITES+= http://danger.rulez.sk/projects/geodns/ +PATCH_DIST_STRIP=-p1 +LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -lGeoIP +PKGNAMESUFFIX+= -geodns +.endif + PLIST_SUB= BIND_DESTETC="${BIND_DESTETC}" MAN1= dig.1 host.1 nslookup.1 diff -ruN bind94/distinfo bind94-geodns/distinfo --- bind94/distinfo 2008-08-09 09:23:34.000000000 +0200 +++ bind94-geodns/distinfo 2008-12-14 12:09:30.000000000 +0100 @@ -4,3 +4,6 @@ MD5 (bind-9.4.2-P2.tar.gz.asc) = 996776035ce9531fef6c3097dd282502 SHA256 (bind-9.4.2-P2.tar.gz.asc) = 111fa20580d5553d5c40f4d001130f1e33382736b3c32fa6912ffa76d81e73de SIZE (bind-9.4.2-P2.tar.gz.asc) = 486 +MD5 (bind-9.4.2-P2-geodns.diff) = 4cbcd9464080a906920332f3c107b60d +SHA256 (bind-9.4.2-P2-geodns.diff) = dedd3c77f2a06f0c2881b485ba71f4c96a513dda4168c106c70694a3d4a92057 +SIZE (bind-9.4.2-P2-geodns.diff) = 2762