head	1.33;
access;
symbols
	perseant-exfatfs-base-20250801:1.33
	perseant-exfatfs-base-20240630:1.33
	perseant-exfatfs:1.33.0.24
	perseant-exfatfs-base:1.33
	cjep_sun2x:1.33.0.22
	cjep_sun2x-base:1.33
	cjep_staticlib_x-base1:1.33
	cjep_staticlib_x:1.33.0.20
	cjep_staticlib_x-base:1.33
	phil-wifi-20200421:1.33
	phil-wifi-20200411:1.33
	phil-wifi-20200406:1.33
	pgoyette-compat-merge-20190127:1.33
	pgoyette-compat-20190127:1.33
	pgoyette-compat-20190118:1.33
	pgoyette-compat-1226:1.33
	pgoyette-compat-1126:1.33
	pgoyette-compat-1020:1.33
	pgoyette-compat-0930:1.33
	pgoyette-compat-0906:1.33
	pgoyette-compat-0728:1.33
	pgoyette-compat-0625:1.33
	pgoyette-compat-0521:1.33
	pgoyette-compat-0502:1.33
	pgoyette-compat-0422:1.33
	pgoyette-compat-0415:1.33
	pgoyette-compat-0407:1.33
	pgoyette-compat-0330:1.33
	pgoyette-compat-0322:1.33
	pgoyette-compat-0315:1.33
	pgoyette-compat:1.33.0.18
	pgoyette-compat-base:1.33
	perseant-stdc-iso10646:1.33.0.16
	perseant-stdc-iso10646-base:1.33
	prg-localcount2-base3:1.33
	prg-localcount2-base2:1.33
	prg-localcount2-base1:1.33
	prg-localcount2:1.33.0.14
	prg-localcount2-base:1.33
	pgoyette-localcount-20170426:1.33
	bouyer-socketcan-base1:1.33
	pgoyette-localcount-20170320:1.33
	bouyer-socketcan:1.33.0.12
	bouyer-socketcan-base:1.33
	pgoyette-localcount-20170107:1.33
	pgoyette-localcount-20161104:1.33
	localcount-20160914:1.33
	pgoyette-localcount-20160806:1.33
	pgoyette-localcount-20160726:1.33
	pgoyette-localcount:1.33.0.10
	pgoyette-localcount-base:1.33
	netbsd-5-2-3-RELEASE:1.32.4.1
	netbsd-5-1-5-RELEASE:1.32.12.1
	yamt-pagecache-base9:1.33
	yamt-pagecache-tag8:1.33
	tls-earlyentropy:1.33.0.6
	tls-earlyentropy-base:1.33
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.33
	riastradh-drm2-base3:1.33
	netbsd-5-2-2-RELEASE:1.32.4.1
	netbsd-5-1-4-RELEASE:1.32.12.1
	netbsd-5-2-1-RELEASE:1.32.4.1
	netbsd-5-1-3-RELEASE:1.32.12.1
	agc-symver:1.33.0.8
	agc-symver-base:1.33
	tls-maxphys-base:1.33
	yamt-pagecache-base8:1.33
	netbsd-5-2:1.32.4.1.0.2
	yamt-pagecache-base7:1.33
	netbsd-5-2-RELEASE:1.32.4.1
	netbsd-5-2-RC1:1.32.4.1
	yamt-pagecache-base6:1.33
	yamt-pagecache-base5:1.33
	yamt-pagecache-base4:1.33
	netbsd-5-1-2-RELEASE:1.32.12.1
	netbsd-5-1-1-RELEASE:1.32.12.1
	yamt-pagecache-base3:1.33
	yamt-pagecache-base2:1.33
	yamt-pagecache:1.33.0.4
	yamt-pagecache-base:1.33
	bouyer-quota2-nbase:1.33
	bouyer-quota2:1.33.0.2
	bouyer-quota2-base:1.33
	matt-nb5-mips64-premerge-20101231:1.32
	matt-nb5-pq3:1.32.0.14
	matt-nb5-pq3-base:1.32
	netbsd-5-1:1.32.0.12
	netbsd-5-1-RELEASE:1.32
	netbsd-5-1-RC4:1.32
	matt-nb5-mips64-k15:1.32
	netbsd-5-1-RC3:1.32
	netbsd-5-1-RC2:1.32
	netbsd-5-1-RC1:1.32
	netbsd-5-0-2-RELEASE:1.32
	matt-nb5-mips64-premerge-20091211:1.32
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.32
	matt-nb4-mips64-k7-u2a-k9b:1.32
	matt-nb5-mips64-u1-k1-k5:1.32
	matt-nb5-mips64:1.32.0.10
	netbsd-5-0-1-RELEASE:1.32
	jym-xensuspend-nbase:1.33
	netbsd-5-0:1.32.0.8
	netbsd-5-0-RELEASE:1.32
	netbsd-5-0-RC4:1.32
	netbsd-5-0-RC3:1.32
	netbsd-5-0-RC2:1.32
	jym-xensuspend:1.32.0.6
	jym-xensuspend-base:1.33
	netbsd-5-0-RC1:1.32
	netbsd-5:1.32.0.4
	netbsd-5-base:1.32
	matt-mips64-base2:1.32
	matt-mips64:1.28.0.6
	netbsd-4-0-1-RELEASE:1.25.2.3.2.1
	wrstuden-revivesa-base-3:1.32
	wrstuden-revivesa-base-2:1.32
	wrstuden-fixsa-newbase:1.25.2.4
	wrstuden-revivesa-base-1:1.31
	yamt-pf42-base4:1.31
	yamt-pf42-base3:1.31
	hpcarm-cleanup-nbase:1.31
	yamt-pf42-baseX:1.31
	yamt-pf42-base2:1.31
	wrstuden-revivesa:1.31.0.8
	wrstuden-revivesa-base:1.31
	yamt-pf42:1.31.0.6
	yamt-pf42-base:1.31
	keiichi-mipv6-nbase:1.31
	keiichi-mipv6:1.31.0.4
	keiichi-mipv6-base:1.31
	matt-armv6-nbase:1.31
	matt-armv6-prevmlocking:1.28.4.1
	wrstuden-fixsa-base-1:1.25.2.3
	netbsd-4-0:1.25.2.3.0.2
	netbsd-4-0-RELEASE:1.25.2.3
	cube-autoconf:1.31.0.2
	cube-autoconf-base:1.31
	netbsd-4-0-RC5:1.25.2.3
	netbsd-4-0-RC4:1.25.2.3
	netbsd-4-0-RC3:1.25.2.2
	netbsd-4-0-RC2:1.25.2.2
	netbsd-4-0-RC1:1.25.2.2
	matt-armv6:1.28.0.4
	matt-armv6-base:1.31
	matt-mips64-base:1.28
	hpcarm-cleanup:1.28.0.2
	hpcarm-cleanup-base:1.31
	netbsd-3-1-1-RELEASE:1.19.2.5
	netbsd-3-0-3-RELEASE:1.19.2.1.2.2
	wrstuden-fixsa:1.25.0.4
	wrstuden-fixsa-base:1.25.2.4
	abandoned-netbsd-4-base:1.23
	abandoned-netbsd-4:1.23.0.2
	netbsd-3-1:1.19.2.5.0.2
	netbsd-3-1-RELEASE:1.19.2.5
	netbsd-3-0-2-RELEASE:1.19.2.1.2.1
	netbsd-3-1-RC4:1.19.2.5
	netbsd-3-1-RC3:1.19.2.5
	netbsd-3-1-RC2:1.19.2.5
	netbsd-3-1-RC1:1.19.2.4
	netbsd-4:1.25.0.2
	netbsd-4-base:1.25
	netbsd-3-0-1-RELEASE:1.19.2.1
	netbsd-3-0:1.19.2.1.0.2
	netbsd-3-0-RELEASE:1.19.2.1
	netbsd-3-0-RC6:1.19.2.1
	netbsd-3-0-RC5:1.19.2.1
	netbsd-3-0-RC4:1.19.2.1
	netbsd-3-0-RC3:1.19.2.1
	netbsd-3-0-RC2:1.19.2.1
	netbsd-3-0-RC1:1.19.2.1
	netbsd-2-0-3-RELEASE:1.15
	netbsd-2-1:1.15.0.6
	netbsd-2-1-RELEASE:1.15
	netbsd-2-1-RC6:1.15
	netbsd-2-1-RC5:1.15
	netbsd-2-1-RC4:1.15
	netbsd-2-1-RC3:1.15
	netbsd-2-1-RC2:1.15
	netbsd-2-1-RC1:1.15
	netbsd-2-0-2-RELEASE:1.15
	netbsd-3:1.19.0.2
	netbsd-3-base:1.19
	netbsd-2-0-1-RELEASE:1.15
	netbsd-2:1.15.0.4
	netbsd-2-base:1.15
	netbsd-2-0-RELEASE:1.15
	netbsd-2-0-RC5:1.15
	netbsd-2-0-RC4:1.15
	netbsd-2-0-RC3:1.15
	netbsd-2-0-RC2:1.15
	netbsd-2-0-RC1:1.15
	bind-9-3-0-beta3:1.1.1.2
	bind-8-latest:1.15
	netbsd-2-0:1.15.0.2
	netbsd-2-0-base:1.15
	netbsd-1-6-PATCH002-RELEASE:1.12
	netbsd-1-6-PATCH002:1.12
	netbsd-1-6-PATCH002-RC4:1.12
	netbsd-1-6-PATCH002-RC3:1.12
	netbsd-1-6-PATCH002-RC2:1.12
	netbsd-1-6-PATCH002-RC1:1.12
	netbsd-1-6-PATCH001:1.12
	netbsd-1-6-PATCH001-RELEASE:1.12
	netbsd-1-6-PATCH001-RC3:1.12
	netbsd-1-6-PATCH001-RC2:1.12
	netbsd-1-6-PATCH001-RC1:1.12
	fvdl_fs64_base:1.13
	netbsd-1-6-RELEASE:1.12
	netbsd-1-6-RC3:1.12
	netbsd-1-6-RC2:1.12
	netbsd-1-6-RC1:1.12
	netbsd-1-6:1.12.0.2
	netbsd-1-6-base:1.12
	netbsd-1-5-PATCH003:1.6.4.2
	netbsd-1-5-PATCH002:1.6.4.1
	netbsd-1-5-PATCH001:1.6.4.1
	netbsd-1-5-RELEASE:1.6.4.1
	netbsd-1-5-BETA2:1.6.4.1
	netbsd-1-5-BETA:1.6.4.1
	netbsd-1-4-PATCH003:1.3.2.3
	netbsd-1-5-ALPHA2:1.6
	netbsd-1-5:1.6.0.4
	netbsd-1-5-base:1.6
	minoura-xpg4dl-base:1.6
	minoura-xpg4dl:1.6.0.2
	netbsd-1-4-PATCH002:1.3.2.2
	wrstuden-devbsize-19991221:1.5
	wrstuden-devbsize:1.3.0.6
	wrstuden-devbsize-base:1.5
	comdex-fall-1999:1.3.0.4
	comdex-fall-1999-base:1.3
	netbsd-1-4-PATCH001:1.3
	netbsd-1-4-RELEASE:1.3
	netbsd-1-4:1.3.0.2
	netbsd-1-4-base:1.3
	bind-8-1-2:1.1.1.1
	ISC:1.1.1;
locks; strict;
comment	@# @;


1.33
date	2009.04.18.13.01.19;	author christos;	state dead;
branches;
next	1.32;

1.32
date	2008.08.29.00.02.24;	author gmcgarry;	state Exp;
branches
	1.32.4.1
	1.32.6.1
	1.32.8.1
	1.32.12.1;
next	1.31;

1.31
date	2007.11.05.18.43.42;	author tls;	state Exp;
branches
	1.31.8.1;
next	1.30;

1.30
date	2007.11.05.04.58.52;	author tls;	state Exp;
branches;
next	1.29;

1.29
date	2007.11.04.23.28.20;	author tls;	state Exp;
branches;
next	1.28;

1.28
date	2007.05.28.12.06.33;	author tls;	state Exp;
branches
	1.28.4.1;
next	1.27;

1.27
date	2007.05.08.06.23.44;	author martin;	state Exp;
branches;
next	1.26;

1.26
date	2007.01.27.21.36.13;	author christos;	state Exp;
branches;
next	1.25;

1.25
date	2006.10.08.17.52.29;	author peter;	state Exp;
branches
	1.25.2.1
	1.25.4.1;
next	1.24;

1.24
date	2006.08.28.15.37.05;	author jdc;	state Exp;
branches;
next	1.23;

1.23
date	2006.06.25.03.02.19;	author mrg;	state Exp;
branches
	1.23.2.1;
next	1.22;

1.22
date	2006.05.11.23.16.30;	author mrg;	state Exp;
branches;
next	1.21;

1.21
date	2006.05.06.17.51.46;	author christos;	state Exp;
branches;
next	1.20;

1.20
date	2005.10.10.13.26.28;	author rpaulo;	state Exp;
branches;
next	1.19;

1.19
date	2005.01.10.03.01.18;	author lukem;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	2004.05.23.03.16.40;	author lukem;	state Exp;
branches;
next	1.17;

1.17
date	2004.05.23.02.49.26;	author lukem;	state Exp;
branches;
next	1.16;

1.16
date	2004.05.18.00.10.39;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	2004.01.03.13.46.30;	author lukem;	state Exp;
branches;
next	1.14;

1.14
date	2003.10.22.05.56.36;	author itojun;	state Exp;
branches;
next	1.13;

1.13
date	2002.09.18.03.54.27;	author lukem;	state Exp;
branches;
next	1.12;

1.12
date	2001.05.27.04.40.38;	author itojun;	state Exp;
branches;
next	1.11;

1.11
date	2001.05.27.04.08.04;	author itojun;	state Exp;
branches;
next	1.10;

1.10
date	2001.02.11.06.45.59;	author itojun;	state Exp;
branches;
next	1.9;

1.9
date	2001.01.27.08.14.43;	author itojun;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.07.08.00.57;	author enami;	state Exp;
branches;
next	1.7;

1.7
date	2000.10.11.20.23.48;	author is;	state Exp;
branches;
next	1.6;

1.6
date	2000.03.01.10.50.01;	author itojun;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	99.11.20.20.42.39;	author veego;	state Exp;
branches;
next	1.4;

1.4
date	99.11.20.19.47.10;	author veego;	state Exp;
branches;
next	1.3;

1.3
date	99.01.04.00.04.04;	author tron;	state Exp;
branches
	1.3.2.1
	1.3.6.1;
next	1.2;

1.2
date	98.10.09.19.30.02;	author tron;	state Exp;
branches;
next	1.1;

1.1
date	98.10.05.18.01.57;	author tron;	state Exp;
branches
	1.1.1.1;
next	;

1.32.4.1
date	2011.01.06.21.42.49;	author riz;	state Exp;
branches
	1.32.4.1.2.1;
next	1.32.4.2;

1.32.4.2
date	2014.12.25.23.19.10;	author he;	state Exp;
branches;
next	;
commitid	zBbt4WCJbPHuEt3y;

1.32.4.1.2.1
date	2014.12.25.23.30.59;	author he;	state Exp;
branches;
next	;
commitid	YvjNPkMzedCnHt3y;

1.32.6.1
date	2009.05.13.19.20.16;	author jym;	state dead;
branches;
next	;

1.32.8.1
date	2011.01.10.00.42.21;	author riz;	state Exp;
branches;
next	1.32.8.2;

1.32.8.2
date	2014.12.25.23.52.00;	author he;	state Exp;
branches;
next	;
commitid	0wimxx5s3ocMPt3y;

1.32.12.1
date	2011.01.09.20.43.30;	author riz;	state Exp;
branches;
next	1.32.12.2;

1.32.12.2
date	2014.12.25.23.57.50;	author he;	state Exp;
branches;
next	;
commitid	d6SdZIecy9kHRt3y;

1.31.8.1
date	2008.09.18.04.30.00;	author wrstuden;	state Exp;
branches;
next	;

1.28.4.1
date	2007.11.06.23.36.20;	author matt;	state Exp;
branches;
next	;

1.25.2.1
date	2007.05.17.00.43.53;	author jdc;	state Exp;
branches;
next	1.25.2.2;

1.25.2.2
date	2007.05.17.05.57.54;	author jdc;	state Exp;
branches;
next	1.25.2.3;

1.25.2.3
date	2007.11.04.09.53.09;	author pavel;	state Exp;
branches
	1.25.2.3.2.1;
next	1.25.2.4;

1.25.2.4
date	2008.07.16.01.57.12;	author snj;	state Exp;
branches;
next	1.25.2.5;

1.25.2.5
date	2011.01.23.21.47.51;	author bouyer;	state Exp;
branches;
next	;

1.25.2.3.2.1
date	2008.07.16.03.10.54;	author snj;	state Exp;
branches;
next	1.25.2.3.2.2;

1.25.2.3.2.2
date	2011.01.23.21.52.34;	author bouyer;	state Exp;
branches;
next	;

1.25.4.1
date	2007.06.03.17.26.11;	author wrstuden;	state Exp;
branches;
next	1.25.4.2;

1.25.4.2
date	2008.01.06.05.01.16;	author wrstuden;	state Exp;
branches;
next	1.25.4.3;

1.25.4.3
date	2008.09.04.08.46.51;	author skrll;	state Exp;
branches;
next	;

1.23.2.1
date	2006.09.01.21.18.38;	author tron;	state Exp;
branches;
next	;

1.19.2.1
date	2005.10.15.16.45.21;	author riz;	state Exp;
branches
	1.19.2.1.2.1;
next	1.19.2.2;

1.19.2.2
date	2006.07.13.22.02.30;	author tron;	state Exp;
branches;
next	1.19.2.3;

1.19.2.3
date	2006.07.13.22.19.06;	author tron;	state Exp;
branches;
next	1.19.2.4;

1.19.2.4
date	2006.07.13.22.19.33;	author tron;	state Exp;
branches;
next	1.19.2.5;

1.19.2.5
date	2006.08.29.09.33.14;	author ghen;	state Exp;
branches
	1.19.2.5.2.1;
next	1.19.2.6;

1.19.2.6
date	2008.07.24.22.09.20;	author ghen;	state Exp;
branches;
next	;

1.19.2.1.2.1
date	2006.08.29.09.38.44;	author ghen;	state Exp;
branches;
next	1.19.2.1.2.2;

1.19.2.1.2.2
date	2007.02.10.19.21.07;	author tron;	state Exp;
branches;
next	1.19.2.1.2.3;

1.19.2.1.2.3
date	2008.07.24.22.18.16;	author ghen;	state Exp;
branches;
next	;

1.19.2.5.2.1
date	2008.07.24.22.24.43;	author ghen;	state Exp;
branches;
next	;

1.6.4.1
date	2000.10.17.19.50.19;	author tv;	state Exp;
branches;
next	1.6.4.2;

1.6.4.2
date	2002.07.01.17.17.05;	author he;	state Exp;
branches;
next	;

1.3.2.1
date	99.12.04.17.10.41;	author he;	state Exp;
branches;
next	1.3.2.2;

1.3.2.2
date	2000.03.01.14.02.07;	author he;	state Exp;
branches;
next	1.3.2.3;

1.3.2.3
date	2000.10.19.17.04.51;	author he;	state Exp;
branches;
next	;

1.3.6.1
date	99.12.27.18.37.22;	author wrstuden;	state Exp;
branches;
next	;

1.1.1.1
date	98.10.05.18.01.57;	author tron;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2004.05.18.00.06.57;	author christos;	state Exp;
branches;
next	;


desc
@@


1.33
log
@delete old bind
@
text
@#	$NetBSD: Makefile.inc,v 1.32 2008/08/29 00:02:24 gmcgarry Exp $

.if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes

USE_FORT?= yes	# network client/server

WARNS?=	1

.include <bsd.own.mk>

.if ${MKCRYPTO} == "no"
NAMED_USE_OPENSSL?=no
.endif

NAMED_USE_PTHREADS?=yes

NAMED_USE_OPENSSL?=yes

IDIST=		${NETBSDSRCDIR}/dist/bind
BIND_SRCDIR=	${NETBSDSRCDIR}/usr.sbin/bind
BIND_HTMLDIR=	/usr/share/doc/html/bind9

.include "${IDIST}/version"

VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
SYSCONFDIR=/etc
LOCALSTATEDIR=/var

CPPFLAGS+=-I${BIND_SRCDIR}/include \
	-I${IDIST} \
	-I${IDIST}/lib/dns/include -I${IDIST}/lib/dns/unix/include \
	-I${IDIST}/lib/isc/include -I${IDIST}/lib/isc/unix/include \
	-I${IDIST}/lib/bind9/include \
	-I${IDIST}/lib/isccfg/include \
	-I${IDIST}/lib/isccc/include \
	-I${IDIST}/lib/lwres/include -I${IDIST}/lib/lwres/unix/include \
	-I${IDIST}/lib/dns/sec/dst/include \
	-DNS_LOCALSTATEDIR=\"${LOCALSTATEDIR}\" \
	-DNS_SYSCONFDIR=\"${SYSCONFDIR}\" \
	-DVERSION=\"${VERSION}\"

.if (${USE_INET6} != "no")
CPPFLAGS+=	-DWANT_IPV6
.endif

.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
COPTS+=	-Wno-pointer-sign
.endif

.if !defined(LIB) || empty(LIB)
# NOTE: the order of these libraries is important...
LDADD+=		-lbind9 -ldns -llwres -lisccfg -lisccc -lisc
DPADD+=		${LIBBIND9} ${LIBDNS} ${LIBLWRES}
DPADD+=		${LIBISCCFG} ${LIBISCCC} ${LIBISC}
.else
CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
	   -DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE}
.endif

.if ${NAMED_USE_PTHREADS} == "yes"
.if !defined (LIB) || empty(LIB)
LDADD+= -lpthread
DPADD+= ${LIBPTHREAD}
.else
LIBDPLIBS+=      pthread  ${.CURDIR}/../libpthread
.endif
.endif

.if ${NAMED_USE_OPENSSL} == "yes"
CPPFLAGS+=-DOPENSSL
.if !defined (LIB) || empty(LIB)
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
.else
LIBDPLIBS+=	crypto	${.CURDIR}/../libcrypto
.endif
.endif

.if ${NAMED_USE_PTHREADS} == "yes"
CPPFLAGS+=-DISC_PLATFORM_USETHREADS -I${IDIST}/lib/isc/pthreads/include
.else
CPPFLAGS+=-I${IDIST}/lib/isc/nothreads/include
.endif

.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
.endif
@


1.32
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.31 2007/11/05 18:43:42 tls Exp $
@


1.32.8.1
log
@Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32 2008/08/29 00:02:24 gmcgarry Exp $
a40 1
	-DSESSION_KEYFILE=\"${LOCALSTATEDIR}/run/named/session.key\" \
@


1.32.8.2
log
@Apply fix for BIND, backported from the patch for 9.8.8 from ISC.
This is a fix for CVE-2014-8500, where a maliciously constructed
setup can cause BIND to issue an unlimited sequence of queries to
follow a delegation.
[spz, ticket #1937]
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32.8.1 2011/01/10 00:42:21 riz Exp $
d26 1
a26 4
# Packager suffix, for local patches past end of support from ISC
PSUFFIX=nb5

VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}${PSUFFIX}
@


1.32.12.1
log
@Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32 2008/08/29 00:02:24 gmcgarry Exp $
a40 1
	-DSESSION_KEYFILE=\"${LOCALSTATEDIR}/run/named/session.key\" \
@


1.32.12.2
log
@Apply fix for BIND, backported from the patch for 9.8.8 from ISC.
This is a fix for CVE-2014-8500, where a maliciously constructed
setup can cause BIND to issue an unlimited sequence of queries to
follow a delegation.
[spz, ticket #1937]
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32.12.1 2011/01/09 20:43:30 riz Exp $
d26 1
a26 4
# Packager suffix, for local patches past end of support from ISC
PSUFFIX=nb5

VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}${PSUFFIX}
@


1.32.4.1
log
@Apply patches (requested by spz in ticket #1517):

Update bind to 9.7.2-P3.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32 2008/08/29 00:02:24 gmcgarry Exp $
a40 1
	-DSESSION_KEYFILE=\"${LOCALSTATEDIR}/run/named/session.key\" \
@


1.32.4.1.2.1
log
@Apply fix for BIND, backported from the patch for 9.8.8 from ISC.
This is a fix for CVE-2014-8500, where a maliciously constructed
setup can cause BIND to issue an unlimited sequence of queries to
follow a delegation.
[spz, ticket #1937]
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32.4.1 2011/01/06 21:42:49 riz Exp $
d26 1
a26 4
# Packager suffix, for local patches past end of support from ISC
PSUFFIX=nb5

VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}${PSUFFIX}
@


1.32.4.2
log
@Apply fix for BIND, backported from the patch for 9.8.8 from ISC.
This is a fix for CVE-2014-8500, where a maliciously constructed
setup can cause BIND to issue an unlimited sequence of queries to
follow a delegation.
[spz, ticket #1937]
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32.4.1 2011/01/06 21:42:49 riz Exp $
d26 1
a26 4
# Packager suffix, for local patches past end of support from ISC
PSUFFIX=nb5

VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}${PSUFFIX}
@


1.32.6.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.32 2008/08/29 00:02:24 gmcgarry Exp $
@


1.31
log
@Sigh.  Fix dependency problem for libcrypto as well; not sure why the
previous build didn't turn this up.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.30 2007/11/05 04:58:52 tls Exp $
d47 1
a47 1
.if ${HAVE_GCC} == 4
@


1.31.8.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.31 2007/11/05 18:43:42 tls Exp $
d47 1
a47 1
.if defined(HAVE_GCC) && ${HAVE_GCC} == 4
@


1.30
log
@Describe libpthread dependency correctly and put bind libs in list of
dependent libs after .WAIT barrier in lib/Makefile.  Fixed build lossage
pointed out by smb.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.29 2007/11/04 23:28:20 tls Exp $
d72 1
d74 4
a77 1
DPADD+= ${LIBCRYPTO}	# XXX see above
@


1.29
log
@Remove MKPRIVATELIB from BIND libraries; move library reachover
directories and Makefiles from src/usr.sbin/bind to src/lib; make
BIND libraries build shared.  Saves about 1MB-1.5MB per installed
executable, about 5MB for a base+etc minimal installation of NetBSD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.28 2007/05/28 12:06:33 tls Exp $
d62 1
d64 4
a67 1
DPADD+= ${LIBPTHREAD}	# XXX defined in bsd.prog.mk doesn't work for src/lib
@


1.28
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.27 2007/05/08 06:23:44 martin Exp $
d51 1
a51 1
.if !defined(LIB) || empty(LIB)						# {
d53 7
a59 8
.for _LL in	bind9 dns lwres isccfg isccc isc
.if !defined(BOBJDIR.${_LL})
BOBJDIR.${_LL}!=cd ${BIND_SRCDIR}/lib${_LL} && ${PRINTOBJDIR}
.MAKEOVERRIDES+=BOBJDIR.${_LL}
.endif
LDADD+=		-L${BOBJDIR.${_LL}} -l${_LL}
DPADD+=		${BOBJDIR.${_LL}}/lib${_LL}.a
.endfor
d63 1
a63 6
DPADD+= ${LIBPTHREAD}
.endif
.else									# }
MKPRIVATELIB=yes
CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
	-DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE}
d69 1
a69 1
DPADD+= ${LIBCRYPTO}
@


1.28.4.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.31 2007/11/05 18:43:42 tls Exp $
d51 1
a51 1
.if !defined(LIB) || empty(LIB)
d53 8
a60 7
LDADD+=		-lbind9 -ldns -llwres -lisccfg -lisccc -lisc
DPADD+=		${LIBBIND9} ${LIBDNS} ${LIBLWRES}
DPADD+=		${LIBISCCFG} ${LIBISCCC} ${LIBISC}
.else
CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
	   -DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE}
.endif
a62 1
.if !defined (LIB) || empty(LIB)
a64 2
.else
LIBDPLIBS+=      pthread  ${.CURDIR}/../libpthread
d66 4
a73 1
.if !defined (LIB) || empty(LIB)
a75 3
.else
LIBDPLIBS+=	crypto	${.CURDIR}/../libcrypto
.endif
@


1.27
log
@Make named use threads on sparc and sparc64 again
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26 2007/01/27 21:36:13 christos Exp $
d6 2
@


1.26
log
@Changes for bind-9.4.0-rc2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25 2006/10/08 17:52:29 peter Exp $
a13 3
.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64")
NAMED_USE_PTHREADS?=no
.else
a14 1
.endif
@


1.25
log
@WFORMAT is no more...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.24 2006/08/28 15:37:05 jdc Exp $
d33 1
@


1.25.4.1
log
@Catch up with now-somewhat-dated netbsd-4. These changes took longer
than expected for me to actually get around to merging.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.2.2 2007/05/17 05:57:54 jdc Exp $
a32 1
	-I${IDIST} \
@


1.25.4.2
log
@Catch up to netbsd-4.0 release.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.4.1 2007/06/03 17:26:11 wrstuden Exp $
d14 1
a14 2
.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \
	|| ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" )
@


1.25.4.3
log
@Sync with netbsd-4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.4.2 2008/01/06 05:01:16 wrstuden Exp $
d14 2
d17 4
@


1.25.2.1
log
@Update BIND to version 9.4.1 (requested by christos in ticket #602).
Thanks to tron for the patches, upgrade script and testing.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.27 2007/05/08 06:23:44 martin Exp $
d14 3
d18 1
a32 1
	-I${IDIST} \
@


1.25.2.2
log
@Pull up revision 1.24 (for ticket #603)

Disable threaded support for sparc and sparc64.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.2.1 2007/05/17 00:43:53 jdc Exp $
a13 3
.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64")
NAMED_USE_PTHREADS?=no
.else
a14 1
.endif
@


1.25.2.3
log
@Apply patch (requested by martin in ticket #965):
	usr.sbin/bind/Makefile.inc: patch
Do not build named with threads support on mips architectures,
as it triggers libpthread/SA problems.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.2.2 2007/05/17 05:57:54 jdc Exp $
d14 1
a14 2
.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" \
	|| ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" )
@


1.25.2.3.2.1
log
@Apply patch (requested by adrianp in ticket #1168):
Update BIND to 9.4.2-P1 and turn off pthreads.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.2.3 2007/11/04 09:53:09 pavel Exp $
d14 2
d17 4
@


1.25.2.3.2.2
log
@Apply patch, requested by spz in ticket 1413:
	dist/bind/							patch
	include/resolv.h						patch
	include/arpa/nameser.h:						patch
	lib/libc/include/isc/assertions.h:				patch
	lib/libc/include/isc/eventlib.h					patch
	lib/libc/isc/assertions.c:					patch
	lib/libc/nameser/ns_parse.c					patch
	lib/libc/resolv/herror.c:					patch
	lib/libc/resolv/res_init.c					patch
	lib/libc/resolv/res_mkquery.c:					patch
	lib/libc/resolv/res_query.c					patch
	lib/libc/resolv/res_send.c:					patch
	usr.sbin/bind/Makefile.inc					patch
	usr.sbin/bind/include/config.h:					patch
	usr.sbin/bind/include/dns/code.h:				patch
	usr.sbin/bind/include/dns/enumclass.h:				patch
	usr.sbin/bind/include/dns/enumtype.h:				patch
	usr.sbin/bind/include/dns/rdatastruct.h:			patch
	usr.sbin/bind/include/isc/platform.h:				patch
	usr.sbin/bind/include/lwres/netdb.h:				patch
	usr.sbin/bind/include/lwres/platform.h:				patch
	usr.sbin/bind/libisc/Makefile:					patch
	lib/libc/inet/inet_addr.c 					new file

Update bind to  9.4-ESV-R4, latest version of the 9.4 line.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.2.3.2.1 2008/07/16 03:10:54 snj Exp $
d23 1
a23 1
VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}
@


1.25.2.4
log
@Apply patch (requested by adrianp in ticket #1168):
Update BIND to 9.4.2-P1 and turn off pthreads.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.2.3 2007/11/04 09:53:09 pavel Exp $
d14 2
d17 4
@


1.25.2.5
log
@Apply patch, requested by spz in ticket 1413:
	dist/bind/							patch
	include/resolv.h						patch
	include/arpa/nameser.h:						patch
	lib/libc/include/isc/assertions.h:				patch
	lib/libc/include/isc/eventlib.h					patch
	lib/libc/isc/assertions.c:					patch
	lib/libc/nameser/ns_parse.c					patch
	lib/libc/resolv/herror.c:					patch
	lib/libc/resolv/res_init.c					patch
	lib/libc/resolv/res_mkquery.c:					patch
	lib/libc/resolv/res_query.c					patch
	lib/libc/resolv/res_send.c:					patch
	usr.sbin/bind/Makefile.inc					patch
	usr.sbin/bind/include/config.h:					patch
	usr.sbin/bind/include/dns/code.h:				patch
	usr.sbin/bind/include/dns/enumclass.h:				patch
	usr.sbin/bind/include/dns/enumtype.h:				patch
	usr.sbin/bind/include/dns/rdatastruct.h:			patch
	usr.sbin/bind/include/isc/platform.h:				patch
	usr.sbin/bind/include/lwres/netdb.h:				patch
	usr.sbin/bind/include/lwres/platform.h:				patch
	usr.sbin/bind/libisc/Makefile:					patch
	lib/libc/inet/inet_addr.c 					new file

Update bind to  9.4-ESV-R4, latest version of the 9.4 line.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25.2.4 2008/07/16 01:57:12 snj Exp $
d23 1
a23 1
VERSION=${MAJORVER}.${MINORVER}${PATCHVER:+.}${PATCHVER}${RELEASETYPE}${RELEASEVER}
@


1.24
log
@Disable threaded support for sparc and sparc64.
OK martin@@.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.23 2006/06/25 03:02:19 mrg Exp $
a6 1
WFORMAT?=2
@


1.23
log
@make MKCRYPTO=no work again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.22 2006/05/11 23:16:30 mrg Exp $
d15 3
d19 2
@


1.23.2.1
log
@Pull up following revision(s) (requested by jdc in ticket #85):
	usr.sbin/bind/Makefile.inc: revision 1.24
Disable threaded support for sparc and sparc64.
OK martin@@.
@
text
@d1 1
a1 1
#	$NetBSD$
a14 3
.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64")
NAMED_USE_PTHREADS?=no
.else
a15 2
.endif

@


1.22
log
@sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.21 2006/05/06 17:51:46 christos Exp $
d8 7
a17 2
.include <bsd.own.mk>

@


1.21
log
@Compile with OPENSSL.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2005/10/10 13:26:28 rpaulo Exp $
d39 4
@


1.20
log
@Install HTML BIND 9 Documentation
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2005/01/10 03:01:18 lukem Exp $
d9 1
d60 6
@


1.19
log
@Only #define WANT_IPV6 if ${USE_INET6} != "no".
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2004/05/23 03:16:40 lukem Exp $
d14 2
@


1.19.2.1
log
@Pull up following revision(s) (requested by rpaulo in ticket #881):
	usr.sbin/bind/Makefile: revision 1.14
	usr.sbin/bind/Makefile.inc: revision 1.20
Install HTML BIND 9 Documentation
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2005/01/10 03:01:18 lukem Exp $
a13 2
BIND_HTMLDIR=	/usr/share/doc/html/bind9

@


1.19.2.1.2.1
log
@Pull up following revision(s) (requested by jdc in ticket #1489):
	usr.sbin/bind/Makefile.inc: revision 1.24
Disable threaded support for sparc and sparc64.
OK martin@@.
@
text
@d1 1
a1 1
#	$NetBSD$
a7 3
.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64")
NAMED_USE_PTHREADS?=no
.else
a8 1
.endif
@


1.19.2.1.2.2
log
@Apply patch (requested by ghen in ticket #1425):
Update BIND to version 9.3.2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2005/10/10 13:26:28 rpaulo Exp $
@


1.19.2.1.2.3
log
@Pull up patch (requested by adrianp in ticket #1948):

Update BIND to 9.3.5-P1 to fix CVE-2008-1447 and turn off pthreads.
@
text
@d1 1
a1 1
#	$NetBSD$
d8 1
d10 3
@


1.19.2.2
log
@Apply patch (requested by ghen in ticket #1425):
Update BIND to version 9.3.2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2005/10/10 13:26:28 rpaulo Exp $
@


1.19.2.3
log
@Pull up following revision(s) (requested by ghen in ticket #1427):
	usr.sbin/bind/Makefile.inc: revision 1.21
Compile with OPENSSL.
@
text
@d1 1
a1 1
#	$NetBSD$
a8 1
NAMED_USE_OPENSSL?=yes
a58 6
.if ${NAMED_USE_OPENSSL} == "yes"
CPPFLAGS+=-DOPENSSL
LDADD+= -lcrypto
DPADD+= ${LIBCRYPTO}
.endif

@


1.19.2.4
log
@Pull up following revision(s) (requested by ghen in ticket #1427):
	usr.sbin/bind/Makefile.inc: revision 1.23
make MKCRYPTO=no work again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19.2.3 2006/07/13 22:19:06 tron Exp $
d8 2
a12 7
.if ${MKCRYPTO} == "no"
NAMED_USE_OPENSSL?=no
.endif

NAMED_USE_PTHREADS?=yes
NAMED_USE_OPENSSL?=yes

@


1.19.2.5
log
@Pull up following revision(s) (requested by jdc in ticket #1490):
	usr.sbin/bind/Makefile.inc: revision 1.24
Disable threaded support for sparc and sparc64.
OK martin@@.
@
text
@d1 1
a1 1
#	$NetBSD$
a14 3
.if (${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64")
NAMED_USE_PTHREADS?=no
.else
a15 2
.endif

@


1.19.2.5.2.1
log
@Pull up patch (requested by adrianp in ticket #1948):

Update BIND to 9.3.5-P1 to fix CVE-2008-1447 and turn off pthreads.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19.2.5 2006/08/29 09:33:14 ghen Exp $
d15 1
d17 3
@


1.19.2.6
log
@Pull up patch (requested by adrianp in ticket #1948):

Update BIND to 9.3.5-P1 to fix CVE-2008-1447 and turn off pthreads.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19.2.5 2006/08/29 09:33:14 ghen Exp $
d15 1
d17 3
@


1.18
log
@Improve how the various helper libraries are added to LDADD/DPADD, including
supporting caching the OBJDIRS (via .MAKEOVERRIDES) to speed up subdir makes.
(Based on similar work in gnu/usr.sbin/postfix)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2004/05/23 02:49:26 lukem Exp $
d32 4
@


1.17
log
@use MKPRIVATELIB=yes  (instead of setting various other stuff to no)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2004/05/18 00:10:39 christos Exp $
d12 2
a13 1
IDIST=	${NETBSDSRCDIR}/dist/bind
d20 1
a20 1
CPPFLAGS+=-I${.CURDIR}/../include \
d32 11
a42 19
.if !defined(LIB) || empty(LIB)
LIBBIND9OBJDIR!=cd ${.CURDIR}/../libbind9 && ${PRINTOBJDIR}
LDADD+=	-L${LIBBIND9OBJDIR} -lbind9
DPADD+=	${LIBBIND9OBJDIR}/libbind9.a
LIBDNSOBJDIR!=cd ${.CURDIR}/../libdns && ${PRINTOBJDIR}
LDADD+=	-L${LIBDNSOBJDIR} -ldns
DPADD+=	${LIBDNSOBJDIR}/libdns.a
LIBLWRESOBJDIR!=cd ${.CURDIR}/../liblwres && ${PRINTOBJDIR}
LDADD+=	-L${LIBLWRESOBJDIR} -llwres
DPADD+=	${LIBLWRESOBJDIR}/liblwres.a
LIBISCCFGOBJDIR!=cd ${.CURDIR}/../libisccfg && ${PRINTOBJDIR}
LDADD+=	-L${LIBISCCFGOBJDIR} -lisccfg
DPADD+=	${LIBISCCFGOBJDIR}/libisccfg.a
LIBISCCCOBJDIR!=cd ${.CURDIR}/../libisccc && ${PRINTOBJDIR}
LDADD+=	-L${LIBISCCCOBJDIR} -lisccc
DPADD+=	${LIBISCCCOBJDIR}/libisccc.a
LIBISCOBJDIR!=cd ${.CURDIR}/../libisc && ${PRINTOBJDIR}
LDADD+=	-L${LIBISCOBJDIR} -lisc
DPADD+=	${LIBISCOBJDIR}/libisc.a
d47 1
a47 1
.else
@


1.16
log
@Resolve conflicts
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.1.2 2004/05/18 00:06:57 christos Exp $
d55 1
a55 4
MKPIC=no
MKPROFILE=no
MKLINT=no
MKLINKLIB=no
@


1.15
log
@use != "no"
@
text
@d1 8
a8 1
# $NetBSD: Makefile.inc,v 1.14 2003/10/22 05:56:36 itojun Exp $
d12 42
a53 8
WARNS=0
WFORMAT=2
BIND_DIR=	${.CURDIR}/..
BIND_DIST_DIR=	${NETBSDSRCDIR}/dist/bind

VER0!=		cat ${BIND_DIST_DIR}/Version
.if 0 # ${MKCRYPTO} != "no"
VER=		${VER0}
d55 6
a60 1
VER=		${VER0}-NOESW
d63 10
a72 7
NAMED=		named
PIDFILE=	/var/run/named.pid
PS=		ps

LIB_BIND!=	cd ${BIND_DIR}/lib && ${PRINTOBJDIR}
INCLUDE?=	-I${LIB_BIND} -I${.OBJDIR} -I${BIND_DIST_DIR}/include
LIBRARY?=	-L${LIB_BIND} -lbind
@


1.14
log
@remove BIND crypto portion, as the license doesn't fit our policy and we do not
import those sources.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.13 2002/09/18 03:54:27 lukem Exp $
d11 1
a11 1
.if 0 # ${MKCRYPTO} == "yes"
@


1.13
log
@use NETBSDSRCDIR as appropriate
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.12 2001/05/27 04:40:38 itojun Exp $
a8 1
BIND_CRYPTO_DIST_DIR=	${NETBSDSRCDIR}/crypto/dist/bind
@


1.12
log
@disable DNSSEC build, for two reasons.  (1) restrictive license
(2) due to protocol changes BIND8 DNSSEC code is not really useful
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.11 2001/05/27 04:08:04 itojun Exp $
d8 2
a9 2
BIND_DIST_DIR=	${.CURDIR}/../../../dist/bind
BIND_CRYPTO_DIST_DIR=	${.CURDIR}/../../../crypto/dist/bind
@


1.11
log
@put -NOESW to version number if MKCRYPTO != yes, to sync better with original
BIND8 makefiles.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.10 2001/02/11 06:45:59 itojun Exp $
d12 1
a12 1
.if ${MKCRYPTO} == "yes"
@


1.10
log
@use version identification same as ISC's.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.9 2001/01/27 08:14:43 itojun Exp $
d11 6
a16 1
VER!=		cat ${BIND_DIST_DIR}/Version
@


1.9
log
@enable DNSSEC code (using -DDNSSAFE) if MKCRYPTO=yes
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.8 2001/01/07 08:00:57 enami Exp $
d11 1
a11 1
VER!=		awk '$$1 == "VER=" { print $$2 ; exit }' ${BIND_DIR}/Makefile
@


1.8
log
@Use PRINTOBJDIR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.7 2000/10/11 20:23:48 is Exp $
d9 1
@


1.7
log
@More format string cleanups by sommerfeld.
@
text
@d1 3
a3 1
# $NetBSD: Makefile.inc,v 1.6 2000/03/01 10:50:01 itojun Exp $
d16 1
a16 3
LIB_BIND!=	cd ${BIND_DIR}/lib; \
		printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}\n" | \
		${MAKE} -s -f -
@


1.6
log
@do not try to use BIND4 code in libc.
dig/host/whatever assumes that it is using BIND8 code.  mixing BIND4 in
libc with BIND8 code will result in very strange behavior, or program panics.

it is not necessary for dig/host/whatever to obey /etc/nsswitch.conf, actually
dig(1) is explicit about it.

now dist/bind is almost clean BIND822p5, with the following exception:
- /etc/irs.conf will never be visited when running BIND8 toolchain,
  to make it less complex.  the search order for BIND8 toolchain is
  defined in dist/bind/lib/irs/gen.c:default_map_rules().
and usr.sbin/bind compiles them in BSD make framework, with no tricks at all.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.5 1999/11/20 20:42:39 veego Exp $
d4 1
a4 1

@


1.6.4.1
log
@Pullup usr.sbin string format fixes [is].
See "cvs log" for explicit revision numbers per file, from sommerfeld.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.7 2000/10/11 20:23:48 is Exp $
d4 1
a4 1
WFORMAT=2
@


1.6.4.2
log
@Pull up revisions 1.8-1.12 (requested by itojun):
  Update BIND to version 8.3.3.
@
text
@d1 1
a1 3
# $NetBSD$

.include <bsd.own.mk>
a6 1
BIND_CRYPTO_DIST_DIR=	${.CURDIR}/../../../crypto/dist/bind
d8 1
a8 6
VER0!=		cat ${BIND_DIST_DIR}/Version
.if 0 # ${MKCRYPTO} == "yes"
VER=		${VER0}
.else
VER=		${VER0}-NOESW
.endif
d14 3
a16 1
LIB_BIND!=	cd ${BIND_DIR}/lib && ${PRINTOBJDIR}
@


1.5
log
@Ups, remove the LDSTATIC which was only there for tests.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.4 1999/11/20 19:47:10 veego Exp $
d17 1
a17 1
INCLUDE?=	-I${LIB_BIND} -I${.OBJDIR} -I${BIND_DIR}/include -I${BIND_DIST_DIR}/include
a18 1

@


1.4
log
@Use the bind source from basesrc/dist/bind.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.3 1999/01/04 00:04:04 tron Exp $
a2 1
LDSTATIC?=      -static
@


1.3
log
@Avoid problems when trying to link BIND 8 statically, fixes PR bin/6717
by gnatios Souvatzis.
@
text
@d1 4
a4 1
# $NetBSD: Makefile.inc,v 1.2 1998/10/09 19:30:02 tron Exp $
d7 1
d18 1
a18 1
INCLUDE?=	-I. -I${BIND_DIR}/include
d20 1
@


1.3.6.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 3
# $NetBSD: Makefile.inc,v 1.5 1999/11/20 20:42:39 veego Exp $

WARNS=0
a3 1
BIND_DIST_DIR=	${.CURDIR}/../../../dist/bind
d14 1
a14 1
INCLUDE?=	-I${LIB_BIND} -I${.OBJDIR} -I${BIND_DIR}/include -I${BIND_DIST_DIR}/include
a15 1

@


1.3.2.1
log
@Pull up revisions 1.4-1.5 (requested by christos and veego):
  Update to BIND 8.2.2-P5.
@
text
@d1 1
a1 3
# $NetBSD$

WARNS=0
a3 1
BIND_DIST_DIR=	${.CURDIR}/../../../dist/bind
d14 1
a14 1
INCLUDE?=	-I${LIB_BIND} -I${.OBJDIR} -I${BIND_DIR}/include -I${BIND_DIST_DIR}/include
a15 1

@


1.3.2.2
log
@Pull up revision 1.6 (requested by itojun):
  Make BIND8 not use the BIND4 code in libc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.3.2.1 1999/12/04 17:10:41 he Exp $
d17 1
a17 1
INCLUDE?=	-I${LIB_BIND} -I${.OBJDIR} -I${BIND_DIST_DIR}/include
d19 1
@


1.3.2.3
log
@Pull up revision 1.7 (requested by he):
  Format string cleanup.
@
text
@d1 1
a1 1
# $NetBSD$
d4 1
a4 1
WFORMAT=2
@


1.2
log
@Fix build problems if object directories are used.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.inc,v 1.1.1.1 1998/10/05 18:01:57 tron Exp $
d15 1
a15 1
LIBRARY?=	-L${LIB_BIND}/ -lbind
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d11 3
d15 1
a15 1
LIBRARY?=	-L${BIND_DIR}/lib -lbind
@


1.1.1.1
log
@Import BIND 8.1.2.
@
text
@@


1.1.1.2
log
@Import bind9 build framework
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2003/04/11 22:47:32 thorpej Exp $
d3 1
a3 2
.if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes
d5 1
a5 3
WARNS?=	1
WFORMAT?=2
NAMED_USE_PTHREADS?=yes
d7 3
a9 1
.include <bsd.own.mk>
d11 2
a12 61
IDIST=	${NETBSDSRCDIR}/dist/bind
.include "${IDIST}/version"

VERSION=${MAJORVER}.${MINORVER}.${PATCHVER}${RELEASETYPE}${RELEASEVER}
SYSCONFDIR=/etc
LOCALSTATEDIR=/var

CPPFLAGS+=-I${.CURDIR}/../include \
	-I${IDIST}/lib/dns/include -I${IDIST}/lib/dns/unix/include \
	-I${IDIST}/lib/isc/include -I${IDIST}/lib/isc/unix/include \
	-I${IDIST}/lib/bind9/include \
	-I${IDIST}/lib/isccfg/include \
	-I${IDIST}/lib/isccc/include \
	-I${IDIST}/lib/lwres/include -I${IDIST}/lib/lwres/unix/include \
	-I${IDIST}/lib/dns/sec/dst/include \
	-DNS_LOCALSTATEDIR=\"${LOCALSTATEDIR}\" \
	-DNS_SYSCONFDIR=\"${SYSCONFDIR}\" \
	-DVERSION=\"${VERSION}\"

.if !defined(LIB) || empty(LIB)
LIBBIND9OBJDIR!=cd ${.CURDIR}/../libbind9 && ${PRINTOBJDIR}
LDADD+=	-L${LIBBIND9OBJDIR} -lbind9
DPADD+=	${LIBBIND9OBJDIR}/libbind9.a
LIBDNSOBJDIR!=cd ${.CURDIR}/../libdns && ${PRINTOBJDIR}
LDADD+=	-L${LIBDNSOBJDIR} -ldns
DPADD+=	${LIBDNSOBJDIR}/libdns.a
LIBLWRESOBJDIR!=cd ${.CURDIR}/../liblwres && ${PRINTOBJDIR}
LDADD+=	-L${LIBLWRESOBJDIR} -llwres
DPADD+=	${LIBLWRESOBJDIR}/liblwres.a
LIBISCCFGOBJDIR!=cd ${.CURDIR}/../libisccfg && ${PRINTOBJDIR}
LDADD+=	-L${LIBISCCFGOBJDIR} -lisccfg
DPADD+=	${LIBISCCFGOBJDIR}/libisccfg.a
LIBISCCCOBJDIR!=cd ${.CURDIR}/../libisccc && ${PRINTOBJDIR}
LDADD+=	-L${LIBISCCCOBJDIR} -lisccc
DPADD+=	${LIBISCCCOBJDIR}/libisccc.a
LIBISCOBJDIR!=cd ${.CURDIR}/../libisc && ${PRINTOBJDIR}
LDADD+=	-L${LIBISCOBJDIR} -lisc
DPADD+=	${LIBISCOBJDIR}/libisc.a
.if ${NAMED_USE_PTHREADS} == "yes"
LDADD+= -lpthread
DPADD+= ${LIBPTHREAD}
.endif
.else
MKPIC=no
MKPROFILE=no
MKLINT=no
MKLINKLIB=no
CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
	-DLIBREVISION=${LIBREVISION} -DLIBAGE=${LIBAGE}
.endif

.if ${NAMED_USE_PTHREADS} == "yes"
CPPFLAGS+=-DISC_PLATFORM_USETHREADS -I${IDIST}/lib/isc/pthreads/include
.else
CPPFLAGS+=-I${IDIST}/lib/isc/nothreads/include
.endif

.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif
.endif
@
