2002-07-29 03:43:12 +04:00
|
|
|
# $NetBSD: Makefile,v 1.13 2002/07/28 23:43:12 christos Exp $
|
2000-07-25 20:32:24 +04:00
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
PROG= sshd
|
2002-06-24 09:48:24 +04:00
|
|
|
MAN= sshd.8 sshd_config.5 moduli.5
|
2000-07-25 20:32:24 +04:00
|
|
|
|
|
|
|
BINDIR= /usr/sbin
|
|
|
|
|
|
|
|
SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
|
2002-06-24 09:48:24 +04:00
|
|
|
sshpty.c sshlogin.c servconf.c serverloop.c uidswap.c \
|
2001-04-10 12:07:54 +04:00
|
|
|
auth.c auth1.c auth2.c auth-options.c session.c \
|
2001-06-23 23:37:38 +04:00
|
|
|
auth-chall.c auth2-chall.c groupaccess.c \
|
2002-06-24 09:48:24 +04:00
|
|
|
auth-skey.c auth-bsdauth.c monitor_mm.c monitor.c \
|
|
|
|
auth2-none.c auth2-passwd.c auth2-pubkey.c \
|
|
|
|
auth2-hostbased.c auth2-kbdint.c
|
2000-07-25 20:32:24 +04:00
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${USE_KERBEROS} != "no")
|
2001-03-04 03:41:27 +03:00
|
|
|
CPPFLAGS+=-DKRB5 -DAFS -I${DESTDIR}/usr/include/krb5
|
|
|
|
SRCS+= auth-krb5.c
|
|
|
|
LDADD+= -lkrb5 -lkafs -lasn1
|
|
|
|
DPADD+= ${LIBKRB5} ${LIBKAFS} ${LIBASN1}
|
2000-07-25 20:32:24 +04:00
|
|
|
|
|
|
|
CPPFLAGS+=-DKRB4 -I${DESTDIR}/usr/include/kerberosIV
|
2002-07-29 03:43:12 +04:00
|
|
|
CPPFLAGS+=-DSUPPORT_UTMP -DSUPPORT_UTMPX
|
2000-07-25 20:32:24 +04:00
|
|
|
SRCS+= auth-krb4.c
|
|
|
|
LDADD+= -lkrb -lcom_err -lroken
|
|
|
|
DPADD+= ${LIBKRB} ${LIBCOM_ERR} ${LIBROKEN}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
2001-04-01 19:11:05 +04:00
|
|
|
LDADD+= -lcrypt -lcrypto -lutil -lz
|
|
|
|
DPADD+= ${LIBCRYPT} ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
|
2001-02-07 20:05:31 +03:00
|
|
|
|
|
|
|
CPPFLAGS+=-DLIBWRAP
|
|
|
|
LDADD+= -lwrap
|
|
|
|
DPADD+= ${LIBWRAP}
|
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${USE_SKEY} != "no")
|
2001-02-07 20:05:31 +03:00
|
|
|
CPPFLAGS+=-DSKEY
|
|
|
|
LDADD+= -lskey
|
|
|
|
DPADD+= ${LIBSKEY}
|
|
|
|
.endif
|