mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
ssh: Consolidate HAVE_LDNS / LIBWRAP in ssh.mk
Commit 9d63429fa1 ("ssh: move common Makefile boilerplate to a new
ssh.mk") introduced ssh.mk for common OpenSSH paths and flags, as part
of enabling FIDO/U2F. Move duplicated MK_LDNS and MK_TCP_WRAPPERS
handling there.
Reviewed by: kevans
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D31896
This commit is contained in:
parent
7f91623604
commit
d71e7e57fc
14 changed files with 13 additions and 76 deletions
|
|
@ -45,7 +45,7 @@ SRCS+= bcrypt_pbkdf.c blowfish.c bsd-misc.c bsd-signal.c explicit_bzero.c \
|
|||
SRCS+= getrrsetbyname.c
|
||||
.else
|
||||
LDNSDIR= ${SRCTOP}/contrib/ldns
|
||||
CFLAGS+= -DHAVE_LDNS=1 -I${LDNSDIR}
|
||||
CFLAGS+= -I${LDNSDIR}
|
||||
SRCS+= getrrsetbyname-ldns.c
|
||||
LIBADD+= ldns
|
||||
.endif
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@ MAN= sftp-server.8
|
|||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SSHDIR}
|
||||
|
|
|
|||
|
|
@ -6,15 +6,7 @@ SRCS= ssh-keysign.c readconf.c uidswap.c
|
|||
MAN= ssh-keysign.8
|
||||
BINMODE=4555
|
||||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
|
||||
LIBADD+= crypto
|
||||
LIBADD= crypto ssh
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
|
|
|||
|
|
@ -5,15 +5,7 @@ PROG= ssh-pkcs11-helper
|
|||
SRCS= ssh-pkcs11.c ssh-pkcs11-helper.c
|
||||
MAN= ssh-pkcs11-helper.8
|
||||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
|
||||
LIBADD+= crypto
|
||||
LIBADD= crypto ssh
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
|
|
|||
|
|
@ -26,12 +26,6 @@ MAN=
|
|||
# pam should always happen before ssh here for static linking
|
||||
LIBADD= pam ssh util
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
|
||||
.if ${MK_AUDIT} != "no"
|
||||
CFLAGS+= -DUSE_BSM_AUDIT=1 -DHAVE_GETAUDIT_ADDR=1
|
||||
LIBADD+= bsm
|
||||
|
|
|
|||
|
|
@ -12,6 +12,14 @@ CFLAGS+= -include krb5_config.h
|
|||
|
||||
CFLAGS+= -DXAUTH_PATH=\"${LOCALBASE:U/usr/local}/bin/xauth\"
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
.endif
|
||||
|
||||
.if ${MK_TCP_WRAPPERS} != "no"
|
||||
CFLAGS+= -DLIBWRAP=1
|
||||
.endif
|
||||
|
||||
.if ${MK_USB} != "no"
|
||||
# Built-in security key support
|
||||
CFLAGS+= -include sk_config.h
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@ PACKAGE= ssh
|
|||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SSHDIR}
|
||||
|
|
|
|||
|
|
@ -8,12 +8,6 @@ PACKAGE= ssh
|
|||
|
||||
LIBADD= ssh edit
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SSHDIR}
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@ PACKAGE= ssh
|
|||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SSHDIR}
|
||||
|
|
|
|||
|
|
@ -5,20 +5,12 @@ PROG= ssh-agent
|
|||
SRCS= ssh-agent.c ssh-pkcs11-client.c
|
||||
PACKAGE= ssh
|
||||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
LIBADD= crypto ssh
|
||||
|
||||
.if defined(LOCALBASE)
|
||||
CFLAGS+= -DDEFAULT_PKCS11_WHITELIST='"/usr/lib*/*,${LOCALBASE}/lib*/*"'
|
||||
.endif
|
||||
|
||||
LIBADD+= crypto
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SSHDIR}
|
||||
|
|
|
|||
|
|
@ -6,13 +6,7 @@ PROG= ssh-keygen
|
|||
SRCS= ssh-keygen.c sshsig.c ssh-sk-client.c
|
||||
PACKAGE= ssh
|
||||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
.endif
|
||||
|
||||
LIBADD+= crypto
|
||||
LIBADD= crypto ssh
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
|
|
|||
|
|
@ -7,12 +7,6 @@ PACKAGE= ssh
|
|||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
#DPADD+= ${LIBLDNS}
|
||||
#LDADD+= -lldns
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.PATH: ${SSHDIR}
|
||||
|
|
|
|||
|
|
@ -17,10 +17,6 @@ SRCS+= gss-genr.c
|
|||
|
||||
LIBADD= ssh
|
||||
|
||||
.if ${MK_LDNS} != "no"
|
||||
CFLAGS+= -DHAVE_LDNS=1
|
||||
.endif
|
||||
|
||||
.if ${MK_GSSAPI} != "no" && ${MK_KERBEROS_SUPPORT} != "no"
|
||||
LIBADD+= gssapi
|
||||
.endif
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ LIBADD+= gssapi_krb5 gssapi krb5
|
|||
.endif
|
||||
|
||||
.if ${MK_TCP_WRAPPERS} != "no"
|
||||
CFLAGS+= -DLIBWRAP=1
|
||||
LIBADD+= wrap
|
||||
.endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue