Add a build-framework for an SSH implementation which is not
yet part of the NetBSD source tree. These Makefiles are a noop until such time as that implementation is committed.
This commit is contained in:
parent
320361c474
commit
8f6bf0e264
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.111 2000/07/01 20:27:11 he Exp $
|
||||
# $NetBSD: Makefile,v 1.112 2000/07/25 16:32:24 thorpej Exp $
|
||||
# from: @(#)Makefile 8.3 (Berkeley) 1/7/94
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
@ -28,8 +28,8 @@ SUBDIR= apply apropos asa at audio banner basename biff \
|
|||
|
||||
.if (${MKCRYPTO} != "no")
|
||||
SUBDIR+= openssl
|
||||
|
||||
SUBDIR+= bdes compile_et kdestroy kf kinit klist kpasswd mk_cmds string2key
|
||||
SUBDIR+= ssh
|
||||
.endif
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/07/25 16:32:24 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if defined(SSHDIST)
|
||||
SUBDIR= libssh ssh sshd ssh-add ssh-keygen ssh-agent scp
|
||||
.endif
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,16 @@
|
|||
# $NetBSD: Makefile.inc,v 1.1 2000/07/25 16:32:24 thorpej Exp $
|
||||
|
||||
#SSHDIST=${.CURDIR}/../../../crypto/dist/ssh
|
||||
|
||||
CPPFLAGS+=-I${SSHDIST}
|
||||
.PATH: ${SSHDIST}
|
||||
|
||||
.if defined(PROG)
|
||||
LIBSSHOBJDIR != cd ${.CURDIR}/../libssh && make print-objdir
|
||||
LDADD+= -L${LIBSSHOBJDIR} -lssh
|
||||
DPADD+= ${LIBSSHOBJDIR}/libssh.a
|
||||
.endif
|
||||
|
||||
.if exists(${.CURDIR}/../../Makefile.inc)
|
||||
.include "${.CURDIR}/../../Makefile.inc"
|
||||
.endif
|
|
@ -0,0 +1,29 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/07/25 16:32:25 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
# Prevent recursion.
|
||||
LIBSSHOBJDIR=${.OBJDIR}
|
||||
|
||||
LIB= ssh
|
||||
SRCS= authfd.c authfile.c bufaux.c buffer.c canohost.c channels.c \
|
||||
cipher.c compat.c compress.c crc32.c deattack.c fingerprint.c \
|
||||
hostfile.c log.c match.c mpaux.c nchan.c packet.c readpass.c \
|
||||
random.c rsa.c tildexpand.c ttymodes.c uidswap.c xmalloc.c \
|
||||
atomicio.c key.c dispatch.c dsa.c kex.c hmac.c uuencode.c aux.c
|
||||
|
||||
MKLINT= no
|
||||
MKMAN= no
|
||||
MKPIC= no
|
||||
MKPROFILE= no
|
||||
|
||||
# only needed during build - prevent installation of library
|
||||
libinstall::
|
||||
|
||||
.if (${MKKERBEROS} != "no")
|
||||
CPPFLAGS+= -DKRB4 -I${DESTDIR}/usr/include/kerberosIV
|
||||
#CPPFLAGS+= -DAFS
|
||||
#SRCS+= radix.c
|
||||
.endif
|
||||
|
||||
.include <bsd.lib.mk>
|
|
@ -0,0 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/07/25 16:32:25 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= scp
|
||||
|
||||
.include <bsd.prog.mk>
|
|
@ -0,0 +1,12 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/07/25 16:32:25 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= ssh-add
|
||||
|
||||
SRCS= ssh-add.c log-client.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
LDADD+= -lcrypto
|
||||
DPADD+= ${LIBCRYPTO}
|
|
@ -0,0 +1,12 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/07/25 16:32:25 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= ssh-agent
|
||||
|
||||
SRCS= ssh-agent.c log-client.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
LDADD+= -lcrypto
|
||||
DPADD+= ${LIBCRYPTO}
|
|
@ -0,0 +1,12 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/07/25 16:32:25 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= ssh-keygen
|
||||
|
||||
SRCS= ssh-keygen.c log-client.c
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
LDADD+= -lcrypto
|
||||
DPADD+= ${LIBCRYPTO}
|
|
@ -0,0 +1,31 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/07/25 16:32:25 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= ssh
|
||||
|
||||
BINOWN= root
|
||||
BINMODE=4555
|
||||
INSTALLFLAGS=-fschg
|
||||
|
||||
SRCS= ssh.c log-client.c readconf.c clientloop.c sshconnect.c \
|
||||
sshconnect1.c sshconnect2.c
|
||||
|
||||
LINKS= ${BINDIR}/ssh ${BINDIR}/slogin
|
||||
MLINKS= ssh.1 slogin.1
|
||||
|
||||
.if (${MKKERBEROS} != "no")
|
||||
# XXX Needs krb5
|
||||
#CPPFLAGS+=-DAFS
|
||||
#LDADD+= -lkafs
|
||||
#DPADD+= ${LIBKAFS}
|
||||
|
||||
CPPFLAGS+=-DKRB4 -I${DESTDIR}/usr/include/kerberosIV
|
||||
LDADD+= -lkrb -lcom_err -lroken
|
||||
DPADD+= ${LIBKRB} ${LIBCOM_ERR} ${LIBROKEN}
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
LDADD+= -lcrypto -lutil -lz
|
||||
DPADD+= ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
|
|
@ -0,0 +1,40 @@
|
|||
# $NetBSD: Makefile,v 1.1 2000/07/25 16:32:26 thorpej Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
PROG= sshd
|
||||
MAN= sshd.8
|
||||
|
||||
BINDIR= /usr/sbin
|
||||
|
||||
SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
|
||||
pty.c log-server.c login.c servconf.c serverloop.c auth.c \
|
||||
auth1.c auth2.c auth-options.c session.c
|
||||
|
||||
CPPFLAGS+=-DLIBWRAP
|
||||
LDADD+= -lwrap
|
||||
DPADD+= ${LIBWRAP}
|
||||
|
||||
.ifdef SKEY
|
||||
SRCS+= auth-skey.c
|
||||
CPPFLAGS+=-DSKEY
|
||||
LDADD+= -lskey
|
||||
DPADD+= ${LIBSKEY}
|
||||
.endif
|
||||
|
||||
.if (${MKKERBEROS} != "no")
|
||||
# XXX needs krb5
|
||||
#CPPFLAGS+=-DAFS
|
||||
#LDADD+= -lkafs
|
||||
#DPADD+= ${LIBKAFS}
|
||||
|
||||
CPPFLAGS+=-DKRB4 -I${DESTDIR}/usr/include/kerberosIV
|
||||
SRCS+= auth-krb4.c
|
||||
LDADD+= -lkrb -lcom_err -lroken
|
||||
DPADD+= ${LIBKRB} ${LIBCOM_ERR} ${LIBROKEN}
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
LDADD+= -lcrypto -lutil -lz
|
||||
DPADD+= ${LIBCRYPTO} ${LIBUTIL} ${LIBZ}
|
Loading…
Reference in New Issue