summaryrefslogtreecommitdiffstats
path: root/secure/lib
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2000-02-24 18:59:34 +0000
committermarkm <markm@FreeBSD.org>2000-02-24 18:59:34 +0000
commitef025b40abfbf8549aa93743f5197893d1fa8bb4 (patch)
tree4948b3b7ba051123b6a4dc394e76281aa3cf7657 /secure/lib
parent1f38e33d22f859166f6995f4fa28d9574458e156 (diff)
downloadFreeBSD-src-ef025b40abfbf8549aa93743f5197893d1fa8bb4.zip
FreeBSD-src-ef025b40abfbf8549aa93743f5197893d1fa8bb4.tar.gz
Build everything properly. This means:
o Don't b uild libdes. o Crypto is now housed in libcrypto (with a compatability symlink to libdes) o RSA may depend on RSAREF at your locale. o OpenSSH is now a part of the base system.
Diffstat (limited to 'secure/lib')
-rw-r--r--secure/lib/Makefile10
-rw-r--r--secure/lib/libcrypto/Makefile22
-rw-r--r--secure/lib/librsaglue/Makefile6
3 files changed, 30 insertions, 8 deletions
diff --git a/secure/lib/Makefile b/secure/lib/Makefile
index 0180a3a..75f9b05 100644
--- a/secure/lib/Makefile
+++ b/secure/lib/Makefile
@@ -1,11 +1,17 @@
# $FreeBSD$
-SUBDIR= libcipher libdes
+SUBDIR= libcipher
.if !defined(NOCRYPT) && !defined(MAKE_KERBEROS4)
SUBDIR+=libtelnet
.endif
.if !defined(NO_OPENSSL)
-SUBDIR+=libcrypto librsaglue libssl
+SUBDIR+=libcrypto libssl
+.if defined(RSAREF) && ${RSAREF} == YES
+SUBDIR+=librsaglue
+.endif
+.endif
+.if !defined(NO_OPENSSH)
+SUBDIR+=libssh
.endif
.include <bsd.subdir.mk>
diff --git a/secure/lib/libcrypto/Makefile b/secure/lib/libcrypto/Makefile
index 49cde25..db824b1 100644
--- a/secure/lib/libcrypto/Makefile
+++ b/secure/lib/libcrypto/Makefile
@@ -55,7 +55,7 @@ SRCS+= cbc_cksm.c cbc_enc.c cfb64ede.c cfb64enc.c cfb_enc.c des_enc.c \
ecb3_enc.c ecb_enc.c ede_cbcm_enc.c enc_read.c enc_writ.c \
fcrypt.c fcrypt.c fcrypt_b.c ofb64ede.c ofb64enc.c ofb_enc.c \
pcbc_enc.c qud_cksm.c rand_key.c read2pwd.c read_pwd.c rpc_enc.c \
- set_key.c str2key.c supp.c xcbc_enc.c
+ set_key.c str2key.c supp.c xcbc_enc.c rnd_keys.c
# dh
SRCS+= dh_check.c dh_err.c dh_gen.c dh_key.c dh_lib.c
@@ -127,6 +127,7 @@ SRCS+= rmd_dgst.c rmd_one.c
.if defined(WITH_RSA) && ${WITH_RSA} == YES
SRCS+= rsa_chk.c rsa_err.c rsa_gen.c rsa_lib.c rsa_none.c rsa_oaep.c \
rsa_pk1.c rsa_saos.c rsa_sign.c rsa_ssl.c
+HDRS+= ../rsaref/rsaref.h
.if !defined(RSAREF) || ${RSAREF} != YES
SRCS+= rsa_eay.c
.endif
@@ -219,3 +220,22 @@ beforeinstall: ${.OBJDIR}/openssl/opensslconf.h
.include <bsd.lib.mk>
+afterinstall:
+.if !defined(NOPIC)
+ @cd ${DESTDIR}${SHLIBDIR}; \
+ rm -f libdes.so.3; \
+ ln -sf lib${LIB}.so.${SHLIB_MAJOR} libdes.so.3;
+.endif
+.if !defined(NOPIC) && ${OBJFORMAT} == elf
+ @cd ${DESTDIR}${SHLIBDIR}; \
+ rm -f libdes.so; \
+ ln -sf lib${LIB}.so libdes.so
+.endif
+ @cd ${DESTDIR}${LIBDIR}; \
+ rm -f libdes.a; \
+ ln -sf lib${LIB}.a libdes.a
+.if !defined(NOPROFILE)
+ @cd ${DESTDIR}${LIBDIR}; \
+ rm -f libdes_p.a; \
+ ln -sf lib${LIB}_p.a libdes_p.a
+.endif
diff --git a/secure/lib/librsaglue/Makefile b/secure/lib/librsaglue/Makefile
index b374e6b..e077208 100644
--- a/secure/lib/librsaglue/Makefile
+++ b/secure/lib/librsaglue/Makefile
@@ -4,14 +4,13 @@
MAINTAINER= kris
-.if defined(RSAREF) && ${RSAREF} == YES
LIB= RSAglue
SHLIB_MAJOR= 1
CFLAGS+= -I${.OBJDIR}
# rsaref
-SRCS+= rsar_err.c rsaref.c
+SRCS+= rsar_err.c rsaref.c rsaref_stubs.c
HDRS= asn1/asn1.h asn1/asn1_mac.h bio/bio.h bf/blowfish.h bn/bn.h \
buffer/buffer.h cast/cast.h comp/comp.h conf/conf.h crypto.h \
@@ -43,6 +42,3 @@ headers:
.PATH: ${LCRYPTO_SRC}/../rsaref
.include <bsd.lib.mk>
-.else
-.include <bsd.prog.mk>
-.endif
OpenPOWER on IntegriCloud