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

Collapse All | Expand All

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

Return to bug 172586