BIND: enable DNSSEC support for named and related tools by default.
authorJan Lentfer <Jan.Lentfer@web.de>
Sun, 17 Jan 2010 13:21:39 +0000 (14:21 +0100)
committerJan Lentfer <Jan.Lentfer@web.de>
Sun, 17 Jan 2010 13:21:39 +0000 (14:21 +0100)
* This adds -DOPENSSL and -lcrypto to effected Makefiles

* This patch also introduces NO_BIND_DNSSEC for make.conf
  to disable build of DNSSEC with BIND.

14 files changed:
etc/defaults/make.conf
lib/libisc/Makefile
share/man/man5/make.conf.5
usr.bin/dig/Makefile
usr.bin/dnssec-keygen/Makefile
usr.bin/dnssec-signzone/Makefile
usr.bin/host/Makefile
usr.sbin/named-checkconf/Makefile
usr.sbin/named-checkzone/Makefile
usr.sbin/named/Makefile
usr.sbin/nslookup/Makefile
usr.sbin/nsupdate/Makefile
usr.sbin/rndc-confgen/Makefile
usr.sbin/rndc/Makefile

index dc8333b..4ede19d 100644 (file)
@@ -100,6 +100,7 @@ THREAD_LIB?=        thread_xu
 #
 # To avoid building various parts of the base system:
 #NO_BIND=      true    # do not build BIND
+#NO_BIND_DNSSEC=true   # do not build dnssec support in BIND
 #NO_CRYPT=     true    # do not build crypto code
 #NO_CVS=       true    # do not build CVS
 #NO_GAMES=     true    # do not enter the games subdirectory
index f75f626..cb23825 100644 (file)
@@ -78,6 +78,10 @@ SRCS+=               lwres/context.c lwres/gai_strerror.c lwres/getaddrinfo.c \
 # contrib/bind/include/* must not override any real system includes
 CFLAGS+=       -I${.CURDIR}/../../usr.sbin/named
 CFLAGS+=       -I${.CURDIR}/../../usr.sbin/named/include
+CFLAGS+=       -DUSE_MD5
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+CFLAGS+=       -DOPENSSL
+.endif
 
 .if ${MACHINE_ARCH} == "i386"
 CFLAGS+= -I${BIND_DIR}/lib/isc/x86_32/include
index b31a654..2cb0c65 100644 (file)
@@ -344,6 +344,9 @@ Set to build modules with the system instead of the kernel.
 .It Va NO_BIND
 .Pq Vt bool
 Set to not build BIND.
+.It Va NO_BIND_DNSSEC
+.Pq Vt bool
+Set to not build DNSSEC support in BIND.
 .It Va NO_CRYPT
 .Pq Vt bool
 Set to not build crypto code.
index a4d1d5c..1cbd0e6 100644 (file)
@@ -17,6 +17,11 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -I${BIND_DIR}/lib/bind9/include \
        -I${BIND_DIR}/bin/dig/include
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .if ${MACHINE_ARCH} == "i386"
 CFLAGS+= -I${BIND_DIR}/lib/isc/x86_32/include
 CFLAGS+= -DISC_PLATFORM_USETHREADS
index f6fe1d0..2d69ea6 100644 (file)
@@ -15,4 +15,9 @@ WARNS?=       3
 CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -I${.CURDIR}/../../usr.sbin/named/include
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .include <bsd.prog.mk>
index 06e7529..c141bdf 100644 (file)
@@ -15,4 +15,9 @@ WARNS?=       3
 CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -I${.CURDIR}/../../usr.sbin/named/include
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .include <bsd.prog.mk>
index e95002e..fbf11a4 100644 (file)
@@ -18,6 +18,11 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -I${BIND_DIR}/lib/bind9/include \
        -I${BIND_DIR}/bin/dig/include
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .if ${MACHINE_ARCH} == "i386"
 CFLAGS+= -I${BIND_DIR}/lib/isc/x86_32/include
 CFLAGS+= -DISC_PLATFORM_USETHREADS
index 2025a74..ff73bd6 100644 (file)
@@ -18,4 +18,9 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -I${BIND_DIR}/bin/check \
        -DNAMED_CONFFILE=\"${DESTETC}/named.conf\"
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .include <bsd.prog.mk>
index 0a05af3..67e702f 100644 (file)
@@ -16,4 +16,9 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -I${BIND_DIR}/bin/check \
        -DNAMED_CONFFILE=\"${DESTETC}/named.conf\"
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .include <bsd.prog.mk>
index 681fd06..1e4e286 100644 (file)
@@ -51,6 +51,10 @@ LIBISC:=       ${LIBISCDIR}/libisc.a
 
 DPADD+=         ${LIBISC}
 LDADD+=         ${LIBISC}
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=                ${LIBCRYPTO}
+LDADD+=                -lcrypto
+.endif
 
 #HTMLS=        acl.html address_list.html comments.html config.html controls.html \
 #      docdef.html example.html include.html index.html key.html \
index 4530e42..ca6cf17 100644 (file)
@@ -19,6 +19,11 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -I${BIND_DIR}/lib/bind9/include \
        -I${BIND_DIR}/bin/dig/include
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .if ${MACHINE_ARCH} == "i386"
 CFLAGS+= -I${BIND_DIR}/lib/isc/x86_32/include
 CFLAGS+= -DISC_PLATFORM_USETHREADS
index e80b9d1..cb62890 100644 (file)
@@ -16,6 +16,11 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -I${.CURDIR}/../../usr.sbin/named/include \
        -I${BIND_DIR}/lib/bind9/include 
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .if ${MACHINE_ARCH} == "i386"
 CFLAGS+= -I${BIND_DIR}/lib/isc/x86_32/include
 CFLAGS+= -DISC_PLATFORM_USETHREADS
index 77abe71..a7a1abc 100644 (file)
@@ -19,4 +19,9 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -DRNDC_CONFFILE=\"${DESTETC}/rndc.conf\" \
        -DRNDC_KEYFILE=\"${DESTETC}/rndc.key\"
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .include <bsd.prog.mk>
index a854df7..c46352d 100644 (file)
@@ -21,4 +21,9 @@ CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \
        -DRNDC_CONFFILE=\"${DESTETC}/rndc.conf\" \
        -DRNDC_KEYFILE=\"${DESTETC}/rndc.key\"
 
+.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(NO_BIND_DNSSEC)
+DPADD+=         ${LIBCRYPTO}
+LDADD+=         -lcrypto
+.endif
+
 .include <bsd.prog.mk>