Lines 1-4
Link Here
|
1 |
# $FreeBSD: ports/dns/bind98/Makefile,v 1.20 2012/10/10 11:54:44 erwin Exp $ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= bind98 |
3 |
PORTNAME= bind98 |
4 |
PORTVERSION= 9.8.3.4 |
4 |
PORTVERSION= 9.8.3.4 |
Lines 22-130
Link Here
|
22 |
--disable-symtable \ |
22 |
--disable-symtable \ |
23 |
--with-randomdev=/dev/random |
23 |
--with-randomdev=/dev/random |
24 |
|
24 |
|
25 |
CONFLICTS= bind9*-9.[45679].* bind9-sdb-* host-* bind-tools-9.* |
25 |
CONFLICTS= bind9*-9.[45789].* bind9*-sdb-9.[45789].* bind-tools-9.* |
26 |
|
26 |
|
27 |
OPTIONS= SSL "Building without OpenSSL removes DNSSEC" on \ |
27 |
.include <bsd.port.options.mk> |
28 |
LINKS "Create conf file symlinks in ${PREFIX}" on \ |
|
|
29 |
XML "Support for xml statistics output" on \ |
30 |
IDN "Add IDN support to dig, host, etc." off \ |
31 |
REPLACE_BASE "Replace base BIND with this version" off \ |
32 |
LARGE_FILE "64-bit file support" off \ |
33 |
SIGCHASE "dig/host/nslookup will do DNSSEC validation" off \ |
34 |
IPV6 "IPv6 Support (autodetected by default)" off \ |
35 |
THREADS "Compile with thread support" on \ |
36 |
DLZ_POSTGRESQL "DLZ Postgres driver" off \ |
37 |
DLZ_MYSQL "DLZ MySQL driver (single-threaded BIND)" off \ |
38 |
DLZ_BDB "DLZ BDB driver" off \ |
39 |
DLZ_LDAP "DLZ LDAP driver" off \ |
40 |
DLZ_FILESYSTEM "DLZ filesystem driver" off \ |
41 |
DLZ_STUB "DLZ stub driver" off |
42 |
|
28 |
|
43 |
# Just in case |
29 |
OPTIONS_DEFINE= SSL LINKS XML IDN REPLACE_BASE LARGE_FILE SIGCHASE \ |
44 |
USE_OPENSSL= yes |
30 |
IPV6 THREADS FIXED_RRSET RPZ_NSIP RPZ_NSDNAME \ |
45 |
|
31 |
DLZ_POSTGRESQL DLZ_MYSQL DLZ_BDB DLZ_LDAP DLZ_FILESYSTEM \ |
46 |
.include <bsd.port.pre.mk> |
32 |
DLZ_STUB |
|
|
33 |
|
34 |
OPTIONS_DEFAULT=SSL LINKS XML THREADS |
35 |
|
36 |
SSL_DESC= Building without OpenSSL removes DNSSEC |
37 |
LINKS_DESC= Create conf file symlinks in ${PREFIX} |
38 |
XML_DESC= Support for xml statistics output |
39 |
IDN_DESC= Add IDN support to dig, host, etc. |
40 |
REPLACE_BASE_DESC= Replace base BIND with this version |
41 |
LARGE_FILE_DESC= 64-bit file support |
42 |
SIGCHASE_DESC= dig/host/nslookup will do DNSSEC validation |
43 |
IPV6_DESC= IPv6 Support (autodetected by default) |
44 |
THREADS_DESC= Compile with thread support |
45 |
FIXED_RRSET_DESC= Enable fixed rrset ordering |
46 |
RPZ_NSIP_DESC= Enable RPZ NSIP trigger rules |
47 |
RPZ_NSDNAME_DESC= Enable RPZ NSDNAME policy records |
48 |
DLZ_POSTGRESQL_DESC= DLZ Postgres driver |
49 |
DLZ_MYSQL_DESC= DLZ MySQL driver (single-threaded BIND) |
50 |
DLZ_BDB_DESC= DLZ BDB driver |
51 |
DLZ_LDAP_DESC= DLZ LDAP driver |
52 |
DLZ_FILESYSTEM_DESC= DLZ filesystem driver |
53 |
DLZ_STUB_DESC= DLZ stub driver |
47 |
|
54 |
|
48 |
.if (${ARCH} == "amd64") |
55 |
.if (${ARCH} == "amd64") |
49 |
ARCH= x86_64 |
56 |
ARCH= x86_64 |
50 |
.endif |
57 |
.endif |
51 |
|
58 |
|
52 |
.if !defined(WITHOUT_SSL) |
59 |
.if ${PORT_OPTIONS:MSSL} |
53 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} |
60 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} |
|
|
61 |
USE_OPENSSL= yes |
54 |
.else |
62 |
.else |
55 |
CONFIGURE_ARGS+= --disable-openssl-version-check |
63 |
CONFIGURE_ARGS+= --disable-openssl-version-check |
56 |
CONFIGURE_ARGS+= --without-openssl |
64 |
CONFIGURE_ARGS+= --without-openssl |
57 |
.endif |
65 |
.endif |
58 |
|
66 |
|
59 |
.if !defined(WITHOUT_XML) |
67 |
.if ${PORT_OPTIONS:MXML} |
60 |
CONFIGURE_ARGS+= --with-libxml2=${LOCALBASE} |
68 |
CONFIGURE_ARGS+= --with-libxml2=${LOCALBASE} |
61 |
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 |
69 |
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 |
62 |
.else |
70 |
.else |
63 |
CONFIGURE_ARGS+= --without-libxml2 |
71 |
CONFIGURE_ARGS+= --without-libxml2 |
64 |
.endif |
72 |
.endif |
65 |
|
73 |
|
66 |
.if defined(WITH_IDN) |
74 |
.if ${PORT_OPTIONS:MIDN} |
67 |
CONFIGURE_ARGS+= --with-idn=${LOCALBASE} --with-libiconv=${LOCALBASE} |
75 |
CONFIGURE_ARGS+= --with-idn=${LOCALBASE} --with-libiconv=${LOCALBASE} |
68 |
LIB_DEPENDS+= idnkit.1:${PORTSDIR}/dns/idnkit |
76 |
LIB_DEPENDS+= idnkit.1:${PORTSDIR}/dns/idnkit |
69 |
.else |
77 |
.else |
70 |
CONFIGURE_ARGS+= --without-idn |
78 |
CONFIGURE_ARGS+= --without-idn |
71 |
.endif |
79 |
.endif |
72 |
|
80 |
|
73 |
.if !defined(WITHOUT_LINKS) && !defined(WITH_REPLACE_BASE) |
81 |
.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE) |
74 |
PLIST_SUB+= LINKS="" |
82 |
PLIST_SUB+= LINKS="" |
75 |
.else |
83 |
.else |
76 |
PLIST_SUB+= LINKS="@comment " |
84 |
PLIST_SUB+= LINKS="@comment " |
77 |
.endif |
85 |
.endif |
78 |
|
86 |
|
79 |
.if defined(WITH_LARGE_FILE) |
87 |
.if ${PORT_OPTIONS:MLARGE_FILE} |
80 |
CONFIGURE_ARGS+= --enable-largefile |
88 |
CONFIGURE_ARGS+= --enable-largefile |
81 |
.endif |
89 |
.endif |
82 |
|
90 |
|
83 |
.if defined(WITH_SIGCHASE) |
91 |
.if ${PORT_OPTIONS:MSIGCHASE} |
84 |
CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1" |
92 |
CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1" |
85 |
.endif |
93 |
.endif |
86 |
|
94 |
|
87 |
.if defined(WITH_IPV6) |
95 |
.if ${PORT_OPTIONS:MIPV6} |
88 |
CONFIGURE_ARGS+= --enable-ipv6 |
96 |
CONFIGURE_ARGS+= --enable-ipv6 |
89 |
.endif |
97 |
.endif |
90 |
|
98 |
|
91 |
.if defined(WITH_DLZ_POSTGRESQL) |
99 |
.if ${PORT_OPTIONS:MTHREADS} |
|
|
100 |
CONFIGURE_ARGS+= --enable-threads |
101 |
.else |
102 |
CONFIGURE_ARGS+= --disable-threads |
103 |
.endif |
104 |
|
105 |
.if ${PORT_OPTIONS:MFIXED_RRSET} |
106 |
CONFIGURE_ARGS+= --enable-fixed-rrset |
107 |
.endif |
108 |
|
109 |
.if ${PORT_OPTIONS:MRPZ_NSIP} |
110 |
CONFIGURE_ARGS+= --enable-rpz-nsip |
111 |
.endif |
112 |
|
113 |
.if ${PORT_OPTIONS:MRPZ_NSDNAME} |
114 |
CONFIGURE_ARGS+= --enable-rpz-nsdname |
115 |
.endif |
116 |
|
117 |
.if ${PORT_OPTIONS:MDLZ_POSTGRESQL} |
92 |
CONFIGURE_ARGS+= --with-dlz-postgres=yes |
118 |
CONFIGURE_ARGS+= --with-dlz-postgres=yes |
93 |
USE_PGSQL= yes |
119 |
USE_PGSQL= yes |
94 |
.endif |
120 |
.endif |
95 |
|
121 |
|
96 |
.if defined(WITH_DLZ_MYSQL) |
122 |
.if ${PORT_OPTIONS:MDLZ_MYSQL} |
97 |
CONFIGURE_ARGS+= --with-dlz-mysql=yes |
123 |
CONFIGURE_ARGS+= --with-dlz-mysql=yes |
98 |
USE_MYSQL= yes |
124 |
USE_MYSQL= yes |
99 |
WITHOUT_THREADS= yes |
125 |
.if ${PORT_OPTIONS:MTHREADS} |
|
|
126 |
@${ECHO_CMD} "Incompatible options: DLZ_MYSQL and THREADS" |
127 |
@${FALSE} |
128 |
.endif |
100 |
.endif |
129 |
.endif |
101 |
|
130 |
|
102 |
.if defined(WITH_DLZ_BDB) |
131 |
.if ${PORT_OPTIONS:MDLZ_BDB} |
103 |
CONFIGURE_ARGS+= --with-dlz-bdb=yes |
132 |
CONFIGURE_ARGS+= --with-dlz-bdb=yes |
104 |
USE_BDB= yes |
133 |
USE_BDB= yes |
105 |
.endif |
134 |
.endif |
106 |
|
135 |
|
107 |
.if defined(WITH_DLZ_LDAP) |
136 |
.if ${PORT_OPTIONS:MDLZ_LDAP} |
108 |
CONFIGURE_ARGS+= --with-dlz-ldap=yes |
137 |
CONFIGURE_ARGS+= --with-dlz-ldap=yes |
109 |
USE_OPENLDAP= yes |
138 |
USE_OPENLDAP= yes |
110 |
.endif |
139 |
.endif |
111 |
|
140 |
|
112 |
.if defined(WITH_DLZ_FILESYSTEM) |
141 |
.if ${PORT_OPTIONS:MDLZ_FILESYSTEM} |
113 |
CONFIGURE_ARGS+= --with-dlz-filesystem=yes |
142 |
CONFIGURE_ARGS+= --with-dlz-filesystem=yes |
114 |
.endif |
143 |
.endif |
115 |
|
144 |
|
116 |
.if defined(WITH_DLZ_STUB) |
145 |
.if ${PORT_OPTIONS:MDLZ_STUB} |
117 |
CONFIGURE_ARGS+= --with-dlz-stub=yes |
146 |
CONFIGURE_ARGS+= --with-dlz-stub=yes |
118 |
.endif |
147 |
.endif |
119 |
|
148 |
|
120 |
# Has to be after the DLZ_MYSQL option |
149 |
.if ${PORT_OPTIONS:MREPLACE_BASE} |
121 |
.if !defined(WITHOUT_THREADS) |
|
|
122 |
CONFIGURE_ARGS+= --enable-threads |
123 |
.else |
124 |
CONFIGURE_ARGS+= --disable-threads |
125 |
.endif |
126 |
|
127 |
.if defined(WITH_REPLACE_BASE) |
128 |
PKGNAMESUFFIX= -base |
150 |
PKGNAMESUFFIX= -base |
129 |
PREFIX= /usr |
151 |
PREFIX= /usr |
130 |
BIND_DESTETC= /etc/namedb |
152 |
BIND_DESTETC= /etc/namedb |
Lines 181-186
Link Here
|
181 |
verify: checksum |
203 |
verify: checksum |
182 |
gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.asc |
204 |
gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.asc |
183 |
|
205 |
|
|
|
206 |
.include <bsd.port.pre.mk> |
207 |
|
184 |
post-patch: |
208 |
post-patch: |
185 |
.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.1 \ |
209 |
.for FILE in check/named-checkconf.8 named/named.8 nsupdate/nsupdate.1 \ |
186 |
rndc/rndc.8 |
210 |
rndc/rndc.8 |
Lines 214-220
Link Here
|
214 |
${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \ |
238 |
${CP} ${WRKSRC}/CHANGES ${WRKSRC}/COPYRIGHT ${WRKSRC}/FAQ \ |
215 |
${WRKSRC}/HISTORY ${WRKSRC}/README ${DOCSDIR}/ |
239 |
${WRKSRC}/HISTORY ${WRKSRC}/README ${DOCSDIR}/ |
216 |
.endif |
240 |
.endif |
217 |
.if !defined(WITHOUT_LINKS) && !defined(WITH_REPLACE_BASE) |
241 |
.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE) |
218 |
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
242 |
PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL |
219 |
.endif |
243 |
.endif |