Lines 13-19
Link Here
|
13 |
|
13 |
|
14 |
PORTNAME= bind94 |
14 |
PORTNAME= bind94 |
15 |
PORTVERSION= 9.4.2 |
15 |
PORTVERSION= 9.4.2 |
16 |
PORTREVISION= 1 |
16 |
PORTREVISION= 2 |
17 |
CATEGORIES= dns net ipv6 |
17 |
CATEGORIES= dns net ipv6 |
18 |
MASTER_SITES= ${MASTER_SITE_ISC} \ |
18 |
MASTER_SITES= ${MASTER_SITE_ISC} \ |
19 |
http://dougbarton.us/Downloads/%SUBDIR%/ |
19 |
http://dougbarton.us/Downloads/%SUBDIR%/ |
Lines 39-45
Link Here
|
39 |
OPTIONS= REPLACE_BASE "Replace base BIND with this version" off \ |
39 |
OPTIONS= REPLACE_BASE "Replace base BIND with this version" off \ |
40 |
LARGE_FILE "64-bit file support" off \ |
40 |
LARGE_FILE "64-bit file support" off \ |
41 |
IPV6 "IPv6 Support (autodetected by default)" off \ |
41 |
IPV6 "IPv6 Support (autodetected by default)" off \ |
42 |
THREADS "Compile with thread support" on |
42 |
THREADS "Compile with thread support" on \ |
|
|
43 |
GEOIP "Compile with GeoIP support" off |
43 |
|
44 |
|
44 |
.include <bsd.port.pre.mk> |
45 |
.include <bsd.port.pre.mk> |
45 |
|
46 |
|
Lines 73-78
Link Here
|
73 |
BIND_DESTETC= ${PREFIX}/etc |
74 |
BIND_DESTETC= ${PREFIX}/etc |
74 |
.endif |
75 |
.endif |
75 |
|
76 |
|
|
|
77 |
.if defined(WITH_GEOIP) |
78 |
LIB_DEPENDS+= GeoIP:${PORTSDIR}/net/GeoIP |
79 |
|
80 |
CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" \ |
81 |
LDFLAGS="-L${LOCALBASE}/lib" \ |
82 |
LIBS="-L${LOCALBASE}/lib -lGeoIP" |
83 |
|
84 |
GEOIP_PATCH_VER= 9.4.1 |
85 |
|
86 |
DISTFILES+= bind-${GEOIP_PATCH_VER}-geodns-patch.tar.gz:geodns |
87 |
MASTER_SITES+= http://www.caraytech.com/geodns/:geodns |
88 |
EXTRACT_ONLY+= bind-${GEOIP_PATCH_VER}-geodns-patch.tar.gz |
89 |
EXTRA_PATCHES+= ${WRKDIR}/bind-${GEOIP_PATCH_VER}-geodns-patch/patch.diff |
90 |
.endif |
91 |
|
76 |
PLIST_SUB= BIND_DESTETC="${BIND_DESTETC}" |
92 |
PLIST_SUB= BIND_DESTETC="${BIND_DESTETC}" |
77 |
|
93 |
|
78 |
MAN1= dig.1 host.1 nslookup.1 |
94 |
MAN1= dig.1 host.1 nslookup.1 |
Lines 116-121
Link Here
|
116 |
|
132 |
|
117 |
verify: checksum |
133 |
verify: checksum |
118 |
gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.asc |
134 |
gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.asc |
|
|
135 |
|
136 |
pre-patch: |
137 |
.if defined(WITH_GEOIP) |
138 |
@${MV} ${WRKDIR}/bind-${GEOIP_PATCH_VER}-geodns-patch/patch.diff ${WRKDIR}/bind-${GEOIP_PATCH_VER}-geodns-patch/patch.diff.Dist |
139 |
@${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 |
140 |
.endif |
119 |
|
141 |
|
120 |
post-patch: |
142 |
post-patch: |
121 |
.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.8 \ |
143 |
.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.8 \ |