summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/Makefile4
-rw-r--r--usr.sbin/dnssec-dsfromkey/Makefile22
-rw-r--r--usr.sbin/dnssec-keyfromlabel/Makefile22
-rw-r--r--usr.sbin/named/Makefile7
4 files changed, 54 insertions, 1 deletions
diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile
index 1a3d9f6232f3..9484c069ad97 100644
--- a/usr.sbin/Makefile
+++ b/usr.sbin/Makefile
@@ -43,6 +43,8 @@ SUBDIR= ${_ac} \
devinfo \
digictl \
diskinfo \
+ ${_dnssec-dsfromkey} \
+ ${_dnssec-keyfromlabel} \
${_dnssec-keygen} \
${_dnssec-signzone} \
dumpcis \
@@ -226,6 +228,8 @@ _authpf= authpf
.endif
.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
+_dnssec-dsfromkey= dnssec-dsfromkey
+_dnssec-keyfromlabel= dnssec-keyfromlabel
_dnssec-keygen= dnssec-keygen
_dnssec-signzone= dnssec-signzone
.endif
diff --git a/usr.sbin/dnssec-dsfromkey/Makefile b/usr.sbin/dnssec-dsfromkey/Makefile
new file mode 100644
index 000000000000..ee7c75e918a7
--- /dev/null
+++ b/usr.sbin/dnssec-dsfromkey/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+BIND_DIR= ${.CURDIR}/../../contrib/bind9
+LIB_BIND_REL= ../../lib/bind
+LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL}
+SRCDIR= ${BIND_DIR}/bin/dnssec
+
+.include "${LIB_BIND_DIR}/config.mk"
+
+PROG= dnssec-dsfromkey
+
+.PATH: ${SRCDIR}
+SRCS+= dnssec-dsfromkey.c dnssectool.c
+
+CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include
+
+DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
+LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
+
+MAN= dnssec-dsfromkey.8
+
+.include <bsd.prog.mk>
diff --git a/usr.sbin/dnssec-keyfromlabel/Makefile b/usr.sbin/dnssec-keyfromlabel/Makefile
new file mode 100644
index 000000000000..a698bffbdc9d
--- /dev/null
+++ b/usr.sbin/dnssec-keyfromlabel/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+BIND_DIR= ${.CURDIR}/../../contrib/bind9
+LIB_BIND_REL= ../../lib/bind
+LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL}
+SRCDIR= ${BIND_DIR}/bin/dnssec
+
+.include "${LIB_BIND_DIR}/config.mk"
+
+PROG= dnssec-keyfromlabel
+
+.PATH: ${SRCDIR}
+SRCS+= dnssec-keyfromlabel.c dnssectool.c
+
+CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include
+
+DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD}
+LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD}
+
+MAN= dnssec-keyfromlabel.8
+
+.include <bsd.prog.mk>
diff --git a/usr.sbin/named/Makefile b/usr.sbin/named/Makefile
index 64470588be40..cb09169786cd 100644
--- a/usr.sbin/named/Makefile
+++ b/usr.sbin/named/Makefile
@@ -9,6 +9,8 @@ SRCDIR= ${BIND_DIR}/bin/named
PROG= named
+CONFIGARGS='--prefix=/usr' '--without-libxml2' '--without-idn' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-threads' '--disable-ipv6' '--enable-getifaddrs' '--disable-linux-caps' '--with-openssl=/usr' '--with-randomdev=/dev/random'
+
.PATH: ${SRCDIR}/unix
SRCS+= os.c
@@ -20,7 +22,10 @@ SRCS+= builtin.c client.c config.c control.c \
tkeyconf.c tsigconf.c update.c xfrout.c \
zoneconf.c \
lwaddr.c lwresd.c lwdclient.c lwderror.c lwdgabn.c \
- lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c
+ lwdgnba.c lwdgrbn.c lwdnoop.c lwsearch.c \
+ statschannel.c
+
+CFLAGS+= -DCONFIGARGS="\"${CONFIGARGS}\""
CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR}
CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include