Implement libssh as a public library, as pam_ssh needs it.

This commit is contained in:
lukem 2005-01-03 06:00:12 +00:00
parent 0c5ceb72e4
commit 98a04f5390
7 changed files with 60 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: shl.elf,v 1.91 2004/12/29 00:12:00 thorpej Exp $
# $NetBSD: shl.elf,v 1.92 2005/01/03 06:00:12 lukem Exp $
# Note: libtermcap and libtermlib are hardlinked and share the same version.
./lib/libc.so base-sys-shlib
./lib/libc.so.12 base-sys-shlib
@ -144,6 +144,8 @@
./usr/lib/libsl.so.2 base-krb5-shlib kerberos
./usr/lib/libss.so base-krb5-shlib kerberos
./usr/lib/libss.so.4 base-krb5-shlib kerberos
./usr/lib/libssh.so base-secsh-shlib crypto
./usr/lib/libssh.so.0 base-secsh-shlib crypto
./usr/lib/libssl.so base-crypto-shlib crypto
./usr/lib/libssl.so.3 base-crypto-shlib crypto
./usr/lib/libtermcap.so base-sys-shlib

View File

@ -1,4 +1,4 @@
# $NetBSD: shl.mi,v 1.285 2005/01/02 16:43:26 thorpej Exp $
# $NetBSD: shl.mi,v 1.286 2005/01/03 06:00:13 lukem Exp $
# Note: libtermcap and libtermlib are hardlinked and share the same version.
./lib/libc.so.12.125 base-sys-shlib
./lib/libcrypt.so.0.1 base-sys-shlib
@ -72,6 +72,7 @@
./usr/lib/libskey.so.1.0 base-sys-shlib skey
./usr/lib/libsl.so.2.0 base-krb5-shlib kerberos
./usr/lib/libss.so.4.0 base-krb5-shlib kerberos
./usr/lib/libssh.so.0.0 base-secsh-bin crypto
./usr/lib/libssl.so.3.0 base-crypto-shlib crypto
./usr/lib/libtermcap.so.0.5 base-sys-shlib
./usr/lib/libtermlib.so.0.5 base-sys-shlib

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.751 2005/01/02 17:34:43 thorpej Exp $
# $NetBSD: mi,v 1.752 2005/01/03 06:00:13 lukem Exp $
./etc/mtree/set.comp comp-sys-root
./usr/bin/addr2line comp-debug-bin bfd
./usr/bin/ar comp-util-bin bfd
@ -1663,6 +1663,8 @@
./usr/lib/libsm.a comp-obsolete obsolete
./usr/lib/libss.a comp-krb5-lib kerberos
./usr/lib/libss_p.a comp-krb5-proflib kerberos,profile
./usr/lib/libssh.a comp-c-lib crypto
./usr/lib/libssh_p.a comp-c-proflib profile,crypto
./usr/lib/libssl.a comp-c-lib crypto
./usr/lib/libssl_p.a comp-c-proflib profile,crypto
./usr/lib/libstdc++.a comp-cxx-lib
@ -1724,6 +1726,7 @@
./usr/libdata/lint/llib-lrt.ln comp-c-lintlib lint
./usr/libdata/lint/llib-lskey.ln comp-c-lintlib lint,skey
./usr/libdata/lint/llib-lsm.ln comp-obsolete obsolete
./usr/libdata/lint/llib-lssh.ln comp-c-lintlib lint,crypto
./usr/libdata/lint/llib-lssl.ln comp-c-lintlib lint,crypto
./usr/libdata/lint/llib-lstdc.ln comp-c-lintlib lint
./usr/libdata/lint/llib-ltelnet.ln comp-obsolete obsolete

View File

@ -1,4 +1,4 @@
# $NetBSD: shl.mi,v 1.41 2004/12/29 00:12:02 thorpej Exp $
# $NetBSD: shl.mi,v 1.42 2005/01/03 06:00:13 lukem Exp $
./usr/lib/libasn1_pic.a comp-c-piclib kerberos
./usr/lib/libbsdmalloc_pic.a comp-c-piclib
./usr/lib/libbz2_pic.a comp-c-piclib
@ -43,6 +43,7 @@
./usr/lib/libskey_pic.a comp-c-piclib skey
./usr/lib/libsl_pic.a comp-c-piclib kerberos
./usr/lib/libss_pic.a comp-c-piclib kerberos
./usr/lib/libssh_pic.a comp-c-piclib crypto
./usr/lib/libssl_pic.a comp-c-piclib crypto
./usr/lib/libtermcap_pic.a comp-c-piclib
./usr/lib/libtermlib_pic.a comp-c-piclib

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.92 2004/12/29 15:49:42 lukem Exp $
# $NetBSD: Makefile,v 1.93 2005/01/03 06:00:12 lukem Exp $
# from: @(#)Makefile 5.25.1.1 (Berkeley) 5/7/91
.include <bsd.own.mk>
@ -55,6 +55,7 @@ SUBDIR+= i18n_module
#
# Libraries that depend upon any listed previously
# (and those that depend upon these [and ...])
#
SUBDIR+= .WAIT
SUBDIR+= libcdk
@ -68,6 +69,10 @@ SUBDIR+= libkrb5
SUBDIR+= libkrb
.endif
.if (${MKCRYPTO} != "no")
SUBDIR+= .WAIT libssh
.endif
SUBDIR+= .WAIT libpam
.include <bsd.subdir.mk>

38
lib/libssh/Makefile Normal file
View File

@ -0,0 +1,38 @@
# $NetBSD: Makefile,v 1.1 2005/01/03 06:00:12 lukem Exp $
.include <bsd.own.mk>
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 fatal.c \
hostfile.c log.c match.c mpaux.c nchan.c packet.c readpass.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 \
kexdhc.c kexgexc.c scard.c msg.c progressmeter.c
SRCS+= random.c
SRCS+= readpassphrase.c getpeereid.c
WARNS= 1
SSHDIST= ${NETBSDSRCDIR}/crypto/dist/ssh
CPPFLAGS+= -I${SSHDIST} -DHAVE_LOGIN_CAP
.PATH: ${SSHDIST}
LIBDPLIBS= crypto ${.CURDIR}/../libcrypto \
z ${.CURDIR}/../libz
.if (${USE_KERBEROS} != "no")
CPPFLAGS+= -DKRB5 -I${DESTDIR}/usr/include/krb5
.if (${USE_KERBEROS4} != "no")
SRCS+= radix.c
CPPFLAGS+= -DKRB4 -DAFS -I${DESTDIR}/usr/include/kerberosIV
LIBDPLIBS+= krb ${.CURDIR}/../libkrb \
des ${.CURDIR}/../libdes
.endif # ${USE_KERBEROS4} != "no"
LIBDPLIBS+= com_err ${.CURDIR}/../libcom_err \
roken ${.CURDIR}/../libroken
.endif # ${USE_KERBEROS} != "no"
.include <bsd.lib.mk>

5
lib/libssh/shlib_version Normal file
View File

@ -0,0 +1,5 @@
# $NetBSD: shlib_version,v 1.1 2005/01/03 06:00:12 lukem Exp $
# Remember to update distrib/sets/lists/base/shl.* when changing
#
major=0
minor=0