View | Details | Raw Unified | Return to bug 172586 | Differences between
and this patch

Collapse All | Expand All

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

Return to bug 172586