1999-08-28 01:35:59 +00:00
|
|
|
# $FreeBSD$
|
1994-09-22 20:45:34 +00:00
|
|
|
|
2004-09-21 19:01:48 +00:00
|
|
|
BIND_DIR= ${.CURDIR}/../../contrib/bind9
|
2004-09-24 13:42:00 +00:00
|
|
|
LIB_BIND_REL= ../../lib/bind
|
|
|
|
LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL}
|
2004-09-21 19:01:48 +00:00
|
|
|
SRCDIR= ${BIND_DIR}/bin/named
|
|
|
|
|
|
|
|
.include "${LIB_BIND_DIR}/config.mk"
|
|
|
|
|
|
|
|
PROG= named
|
|
|
|
|
2010-09-22 18:46:17 +00:00
|
|
|
CONFIGARGS='--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-threads' '--enable-getifaddrs' '--disable-linux-caps' '--with-openssl=/usr' '--with-randomdev=/dev/random'
|
2009-06-01 21:58:59 +00:00
|
|
|
|
|
|
|
# Optional features
|
|
|
|
.if ${MK_BIND_LARGE_FILE} == "yes"
|
|
|
|
CONFIGARGS+='--enable-largefile'
|
|
|
|
.endif
|
|
|
|
.if ${MK_BIND_SIGCHASE} == "yes"
|
|
|
|
CONFIGARGS+='STD_CDEFINES=-DDIG_SIGCHASE=1'
|
|
|
|
.endif
|
|
|
|
.if ${MK_BIND_IDN} == "yes"
|
|
|
|
CONFIGARGS+='--with-idn=/usr/local'
|
|
|
|
.else
|
|
|
|
CONFIGARGS+='--without-idn'
|
|
|
|
.endif
|
|
|
|
.if ${MK_BIND_XML} == "yes"
|
|
|
|
CONFIGARGS+='--with-libxml2=/usr/local'
|
|
|
|
.else
|
|
|
|
CONFIGARGS+='--without-libxml2'
|
|
|
|
.endif
|
2009-05-31 05:42:58 +00:00
|
|
|
|
2004-09-21 19:01:48 +00:00
|
|
|
.PATH: ${SRCDIR}/unix
|
|
|
|
SRCS+= os.c
|
|
|
|
|
|
|
|
.PATH: ${SRCDIR}
|
2007-06-02 23:19:58 +00:00
|
|
|
SRCS+= builtin.c client.c config.c control.c \
|
2004-09-21 19:01:48 +00:00
|
|
|
controlconf.c interfacemgr.c \
|
|
|
|
listenlist.c log.c logconf.c main.c notify.c \
|
2011-07-16 11:20:54 +00:00
|
|
|
query.c server.c sortlist.c statschannel.c \
|
2004-09-21 19:01:48 +00:00
|
|
|
tkeyconf.c tsigconf.c update.c xfrout.c \
|
|
|
|
zoneconf.c \
|
|
|
|
lwaddr.c lwresd.c lwdclient.c lwderror.c lwdgabn.c \
|
2011-07-16 11:20:54 +00:00
|
|
|
lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c
|
2009-05-31 05:42:58 +00:00
|
|
|
|
|
|
|
CFLAGS+= -DCONFIGARGS="\"${CONFIGARGS}\""
|
2004-09-21 19:01:48 +00:00
|
|
|
|
|
|
|
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR}
|
2007-06-02 23:19:58 +00:00
|
|
|
CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include
|
2004-09-21 19:01:48 +00:00
|
|
|
|
2006-08-13 05:32:10 +00:00
|
|
|
# Remove the date stamp to make it more obvious when real changes happen
|
|
|
|
CFLAGS+= -U__DATE__
|
|
|
|
|
2010-01-02 11:07:44 +00:00
|
|
|
WARNS?= 0
|
|
|
|
|
2007-06-02 23:19:58 +00:00
|
|
|
DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
|
|
|
|
LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
|
2004-09-21 19:01:48 +00:00
|
|
|
|
2004-09-27 03:55:03 +00:00
|
|
|
MAN= named.8 lwresd.8 named.conf.5
|
2004-09-26 06:36:11 +00:00
|
|
|
|
2011-07-17 04:10:00 +00:00
|
|
|
MANFILTER= sed -e "s@/etc/named\.conf@/etc/namedb/named.conf@g" \
|
|
|
|
-e "s@/var\/run\/named\/named.pid@/var/run/named/pid@"
|
2004-09-21 19:01:48 +00:00
|
|
|
|
|
|
|
LINKS= ${BINDIR}/named ${BINDIR}/lwresd
|
1994-09-22 20:45:34 +00:00
|
|
|
|
1996-08-29 21:38:16 +00:00
|
|
|
.include <bsd.prog.mk>
|