No guts, no glory. Switch to OpenSSH-portable.

Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Dag-Erling Smørgrav 2002-06-25 19:10:09 +00:00
parent f6b51b2dfb
commit f0b56c5c7e
12 changed files with 24 additions and 12 deletions

View File

@ -20,5 +20,5 @@ CFLAGS+= -DNO_IDEA
.endif
.if !defined(NO_OPENSSH)
SSHDIR= ${.CURDIR}/../../../crypto/openssh
SSHDIR= ${.CURDIR}/../../../crypto/openssh-portable
.endif

View File

@ -8,8 +8,12 @@ SRCS= authfd.c authfile.c bufaux.c buffer.c canohost.c channels.c \
rsa.c tildexpand.c ttymodes.c xmalloc.c atomicio.c \
key.c dispatch.c kex.c mac.c uuencode.c misc.c \
rijndael.c ssh-dss.c ssh-rsa.c dh.c kexdh.c kexgex.c \
scard.c monitor_wrap.c monitor_fdpass.c msg.c \
uidswap.c version.c
scard.c monitor_wrap.c monitor_fdpass.c msg.c
# Portability layer
SRCS+= bsd-misc.c entropy.c
# FreeBSD additions
SRCS+= version.c
CFLAGS+=-I${SSHDIR}
.if defined(COMPAT_GETADDRINFO)
SRCS+= getaddrinfo.c getnameinfo.c name6.c rcmd.c bindresvport.c
@ -20,4 +24,4 @@ LDADD= -lcrypto -lz
.include <bsd.lib.mk>
.PATH: ${SSHDIR} ${SSHDIR}/lib
.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat

View File

@ -1,12 +1,12 @@
# $FreeBSD$
#
PROG= sftp-server
SRCS= sftp-server.c sftp-common.c
MAN= sftp-server.8
CFLAGS+=-I${SSHDIR}
LDADD+= -lssh -lcrypto
DPADD+= ${LIBSSH} ${LIBCRYPTO}
LDADD+= -lssh -lcrypto
.include <bsd.prog.mk>

View File

@ -1,6 +1,7 @@
# $FreeBSD$
PROG= scp
CFLAGS+=-I${SSHDIR}
DPADD= ${LIBSSH}
LDADD= -lssh

View File

@ -2,6 +2,7 @@
PROG= sftp
SRCS= sftp.c sftp-client.c sftp-int.c sftp-common.c sftp-glob.c
CFLAGS+=-I${SSHDIR}
DPADD= ${LIBSSH} ${LIBCRYPTO}
LDADD= -lssh -lcrypto

View File

@ -1,6 +1,7 @@
# $FreeBSD$
PROG= ssh-add
CFLAGS+=-I${SSHDIR}
DPADD= ${LIBSSH} ${LIBCRYPTO}
LDADD= -lssh -lcrypto

View File

@ -1,6 +1,7 @@
# $FreeBSD$
PROG= ssh-agent
CFLAGS+=-I${SSHDIR}
DPADD= ${LIBSSH} ${LIBCRYPTO}
LDADD= -lssh -lcrypto

View File

@ -1,6 +1,7 @@
# $FreeBSD$
PROG= ssh-keygen
CFLAGS+=-I${SSHDIR}
DPADD= ${LIBSSH} ${LIBCRYPTO}
LDADD= -lssh -lcrypto

View File

@ -1,6 +1,7 @@
# $FreeBSD$
PROG= ssh-keyscan
CFLAGS+=-I${SSHDIR}
DPADD= ${LIBSSH} ${LIBCRYPTO} ${LIBZ}
LDADD= -lssh -lcrypto -lz

View File

@ -2,6 +2,7 @@
PROG= ssh-keysign
MAN= ssh-keysign.8
CFLAGS+=-I${SSHDIR}
DPADD= ${LIBSSH} ${LIBCRYPTO} ${LIBZ}
LDADD= -lssh -lcrypto -lz

View File

@ -2,6 +2,7 @@
#
PROG= ssh
CFLAGS+=-I${SSHDIR}
.if defined(ENABLE_SUID_SSH)
BINMODE=4555
.endif
@ -21,7 +22,7 @@ DPADD+= ${LIBKRB} ${LIBCOM_ERR}
.if defined(MAKE_KERBEROS5)
DISTRIBUTION=krb5
CFLAGS+= -DKRB5
CFLAGS+= -DKRB5 -DHEIMDAL
LDADD+= -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken -lcrypt
DPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD} ${LIBCRYPT}
.endif

View File

@ -9,10 +9,11 @@ SRCS= sshd.c auth-rhosts.c auth-passwd.c auth-rsa.c auth-rh-rsa.c \
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 \
auth-pam.c auth2-pam.c
auth-pam.c auth2-pam.c auth2-pam-freebsd.c
# Portability layer
SRCS+= loginrec.c
MAN= sshd.8 sshd_config.5
CFLAGS+= -DLIBWRAP -DHAVE_LOGIN_CAP -DUSE_PAM -DHAVE_PAM_GETENVLIST
CFLAGS+=-I${SSHDIR}
.if defined(MAKE_KERBEROS4)
DISTRIBUTION=krb4
@ -24,13 +25,12 @@ DPADD+= ${LIBKRB} ${LIBCOM_ERR}
.if defined(MAKE_KERBEROS5)
DISTRIBUTION=krb5
CFLAGS+= -DKRB5
CFLAGS+= -DKRB5 -DHEIMDAL
SRCS+= auth-krb5.c
LDADD+= -lkrb5 -lasn1 -lcom_err -lmd -L${.OBJDIR}/../../../kerberos5/lib/libroken -lroken
DPADD+= ${LIBKRB5} ${LIBCOM_ERR} ${LIBASN1} ${LIBMD}
.endif
CFLAGS+= -DSKEY
LDADD+= -lopie -lmd
DPADD+= ${LIBOPIE} ${LIBMD}