Lines 1-4
Link Here
|
1 |
# $FreeBSD: ports/dns/bind99/Makefile,v 1.14 2012/10/10 11:54:44 erwin Exp $ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= bind99 |
3 |
PORTNAME= bind99 |
4 |
PORTVERSION= 9.9.1.4 |
4 |
PORTVERSION= 9.9.1.4 |
Lines 22-47
Link Here
|
22 |
--disable-symtable \ |
22 |
--disable-symtable \ |
23 |
--with-randomdev=/dev/random |
23 |
--with-randomdev=/dev/random |
24 |
|
24 |
|
25 |
CONFLICTS= bind9*-9.[45678].* 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 \ |
|
|
31 |
DLZ_POSTGRESQL DLZ_MYSQL DLZ_BDB DLZ_LDAP DLZ_FILESYSTEM \ |
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 |
45 |
|
54 |
|
46 |
.include <bsd.port.pre.mk> |
55 |
.include <bsd.port.pre.mk> |
47 |
|
56 |
|
Lines 49-130
Link Here
|
49 |
ARCH= x86_64 |
58 |
ARCH= x86_64 |
50 |
.endif |
59 |
.endif |
51 |
|
60 |
|
52 |
.if !defined(WITHOUT_SSL) |
61 |
.if ${PORT_OPTIONS:MSSL} |
53 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} |
62 |
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} |
|
|
63 |
USE_OPENSSL= yes |
54 |
.else |
64 |
.else |
55 |
CONFIGURE_ARGS+= --disable-openssl-version-check |
65 |
CONFIGURE_ARGS+= --disable-openssl-version-check |
56 |
CONFIGURE_ARGS+= --without-openssl |
66 |
CONFIGURE_ARGS+= --without-openssl |
57 |
.endif |
67 |
.endif |
58 |
|
68 |
|
59 |
.if !defined(WITHOUT_XML) |
69 |
.if ${PORT_OPTIONS:MXML} |
60 |
CONFIGURE_ARGS+= --with-libxml2=${LOCALBASE} |
70 |
CONFIGURE_ARGS+= --with-libxml2=${LOCALBASE} |
61 |
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 |
71 |
LIB_DEPENDS+= xml2.5:${PORTSDIR}/textproc/libxml2 |
62 |
.else |
72 |
.else |
63 |
CONFIGURE_ARGS+= --without-libxml2 |
73 |
CONFIGURE_ARGS+= --without-libxml2 |
64 |
.endif |
74 |
.endif |
65 |
|
75 |
|
66 |
.if defined(WITH_IDN) |
76 |
.if ${PORT_OPTIONS:MIDN} |
67 |
CONFIGURE_ARGS+= --with-idn=${LOCALBASE} --with-libiconv=${LOCALBASE} |
77 |
CONFIGURE_ARGS+= --with-idn=${LOCALBASE} --with-libiconv=${LOCALBASE} |
68 |
LIB_DEPENDS+= idnkit.1:${PORTSDIR}/dns/idnkit |
78 |
LIB_DEPENDS+= idnkit.1:${PORTSDIR}/dns/idnkit |
69 |
.else |
79 |
.else |
70 |
CONFIGURE_ARGS+= --without-idn |
80 |
CONFIGURE_ARGS+= --without-idn |
71 |
.endif |
81 |
.endif |
72 |
|
82 |
|
73 |
.if !defined(WITHOUT_LINKS) && !defined(WITH_REPLACE_BASE) |
83 |
.if ${PORT_OPTIONS:MLINKS} && empty(PORT_OPTIONS:MREPLACE_BASE) |
74 |
PLIST_SUB+= LINKS="" |
84 |
PLIST_SUB+= LINKS="" |
75 |
.else |
85 |
.else |
76 |
PLIST_SUB+= LINKS="@comment " |
86 |
PLIST_SUB+= LINKS="@comment " |
77 |
.endif |
87 |
.endif |
78 |
|
88 |
|
79 |
.if defined(WITH_LARGE_FILE) |
89 |
.if ${PORT_OPTIONS:MLARGE_FILE} |
80 |
CONFIGURE_ARGS+= --enable-largefile |
90 |
CONFIGURE_ARGS+= --enable-largefile |
81 |
.endif |
91 |
.endif |
82 |
|
92 |
|
83 |
.if defined(WITH_SIGCHASE) |
93 |
.if ${PORT_OPTIONS:MSIGCHASE} |
84 |
CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1" |
94 |
CONFIGURE_ARGS+= STD_CDEFINES="-DDIG_SIGCHASE=1" |
85 |
.endif |
95 |
.endif |
86 |
|
96 |
|
87 |
.if defined(WITH_IPV6) |
97 |
.if ${PORT_OPTIONS:MIPV6} |
88 |
CONFIGURE_ARGS+= --enable-ipv6 |
98 |
CONFIGURE_ARGS+= --enable-ipv6 |
89 |
.endif |
99 |
.endif |
90 |
|
100 |
|
91 |
.if defined(WITH_DLZ_POSTGRESQL) |
101 |
.if ${PORT_OPTIONS:MTHREADS} |
|
|
102 |
CONFIGURE_ARGS+= --enable-threads |
103 |
.else |
104 |
CONFIGURE_ARGS+= --disable-threads |
105 |
.endif |
106 |
|
107 |
.if ${PORT_OPTIONS:MFIXED_RRSET} |
108 |
CONFIGURE_ARGS+= --enable-fixed-rrset |
109 |
.endif |
110 |
|
111 |
.if ${PORT_OPTIONS:MRPZ_NSIP} |
112 |
CONFIGURE_ARGS+= --enable-rpz-nsip |
113 |
.endif |
114 |
|
115 |
.if ${PORT_OPTIONS:MRPZ_NSDNAME} |
116 |
CONFIGURE_ARGS+= --enable-rpz-nsdname |
117 |
.endif |
118 |
|
119 |
.if ${PORT_OPTIONS:MDLZ_POSTGRESQL} |
92 |
CONFIGURE_ARGS+= --with-dlz-postgres=yes |
120 |
CONFIGURE_ARGS+= --with-dlz-postgres=yes |
93 |
USE_PGSQL= yes |
121 |
USE_PGSQL= yes |
94 |
.endif |
122 |
.endif |
95 |
|
123 |
|
96 |
.if defined(WITH_DLZ_MYSQL) |
124 |
.if ${PORT_OPTIONS:MDLZ_MYSQL} |
97 |
CONFIGURE_ARGS+= --with-dlz-mysql=yes |
125 |
CONFIGURE_ARGS+= --with-dlz-mysql=yes |
98 |
USE_MYSQL= yes |
126 |
USE_MYSQL= yes |
99 |
WITHOUT_THREADS= yes |
127 |
.if ${PORT_OPTIONS:MTHREADS} |
|
|
128 |
@${ECHO_CMD} "Incompatible options: DLZ_MYSQL and THREADS" |
129 |
@${FALSE} |
130 |
.endif |
100 |
.endif |
131 |
.endif |
101 |
|
132 |
|
102 |
.if defined(WITH_DLZ_BDB) |
133 |
.if ${PORT_OPTIONS:MDLZ_BDB} |
103 |
CONFIGURE_ARGS+= --with-dlz-bdb=yes |
134 |
CONFIGURE_ARGS+= --with-dlz-bdb=yes |
104 |
USE_BDB= yes |
135 |
USE_BDB= yes |
105 |
.endif |
136 |
.endif |
106 |
|
137 |
|
107 |
.if defined(WITH_DLZ_LDAP) |
138 |
.if ${PORT_OPTIONS:MDLZ_LDAP} |
108 |
CONFIGURE_ARGS+= --with-dlz-ldap=yes |
139 |
CONFIGURE_ARGS+= --with-dlz-ldap=yes |
109 |
USE_OPENLDAP= yes |
140 |
USE_OPENLDAP= yes |
110 |
.endif |
141 |
.endif |
111 |
|
142 |
|
112 |
.if defined(WITH_DLZ_FILESYSTEM) |
143 |
.if ${PORT_OPTIONS:MDLZ_FILESYSTEM} |
113 |
CONFIGURE_ARGS+= --with-dlz-filesystem=yes |
144 |
CONFIGURE_ARGS+= --with-dlz-filesystem=yes |
114 |
.endif |
145 |
.endif |
115 |
|
146 |
|
116 |
.if defined(WITH_DLZ_STUB) |
147 |
.if ${PORT_OPTIONS:MDLZ_STUB} |
117 |
CONFIGURE_ARGS+= --with-dlz-stub=yes |
148 |
CONFIGURE_ARGS+= --with-dlz-stub=yes |
118 |
.endif |
149 |
.endif |
119 |
|
150 |
|
120 |
# Has to be after the DLZ_MYSQL option |
151 |
.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 |
152 |
PKGNAMESUFFIX= -base |
129 |
PREFIX= /usr |
153 |
PREFIX= /usr |
130 |
BIND_DESTETC= /etc/namedb |
154 |
BIND_DESTETC= /etc/namedb |
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 |
220 |
|
244 |
|