Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin Add a build-framework for an SSH implementation whic...



details:   https://anonhg.NetBSD.org/src/rev/ce1e0484a924
branches:  trunk
changeset: 495272:ce1e0484a924
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Jul 25 16:32:24 2000 +0000

description:
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.

diffstat:

 usr.bin/Makefile                |   4 ++--
 usr.bin/ssh/Makefile            |   9 +++++++++
 usr.bin/ssh/Makefile.inc        |  16 ++++++++++++++++
 usr.bin/ssh/libssh/Makefile     |  29 +++++++++++++++++++++++++++++
 usr.bin/ssh/scp/Makefile        |   7 +++++++
 usr.bin/ssh/ssh-add/Makefile    |  12 ++++++++++++
 usr.bin/ssh/ssh-agent/Makefile  |  12 ++++++++++++
 usr.bin/ssh/ssh-keygen/Makefile |  12 ++++++++++++
 usr.bin/ssh/ssh/Makefile        |  31 +++++++++++++++++++++++++++++++
 usr.bin/ssh/sshd/Makefile       |  40 ++++++++++++++++++++++++++++++++++++++++
 10 files changed, 170 insertions(+), 2 deletions(-)

diffs (223 lines):

diff -r 8468f71de897 -r ce1e0484a924 usr.bin/Makefile
--- a/usr.bin/Makefile  Tue Jul 25 15:15:32 2000 +0000
+++ b/usr.bin/Makefile  Tue Jul 25 16:32:24 2000 +0000
@@ -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 @@
 
 .if (${MKCRYPTO} != "no")
 SUBDIR+= openssl
-
 SUBDIR+= bdes compile_et kdestroy kf kinit klist kpasswd mk_cmds string2key
+SUBDIR+= ssh
 .endif
 
 .include <bsd.subdir.mk>
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/Makefile      Tue Jul 25 16:32:24 2000 +0000
@@ -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>
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/Makefile.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/Makefile.inc  Tue Jul 25 16:32:24 2000 +0000
@@ -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
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/libssh/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/libssh/Makefile       Tue Jul 25 16:32:24 2000 +0000
@@ -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>
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/scp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/scp/Makefile  Tue Jul 25 16:32:24 2000 +0000
@@ -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>
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/ssh-add/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/ssh-add/Makefile      Tue Jul 25 16:32:24 2000 +0000
@@ -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}
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/ssh-agent/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/ssh-agent/Makefile    Tue Jul 25 16:32:24 2000 +0000
@@ -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}
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/ssh-keygen/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/ssh-keygen/Makefile   Tue Jul 25 16:32:24 2000 +0000
@@ -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}
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/ssh/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/ssh/Makefile  Tue Jul 25 16:32:24 2000 +0000
@@ -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}
diff -r 8468f71de897 -r ce1e0484a924 usr.bin/ssh/sshd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/ssh/sshd/Makefile Tue Jul 25 16:32:24 2000 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index