From df4e9a1d72f3c7b8a2f8d760dcef0b64f8fef98b Mon Sep 17 00:00:00 2001 From: Brian Feldman Date: Sat, 12 Feb 2000 23:55:48 +0000 Subject: Clean things up by using the new knob for OpenSSL usage. Submitted by: kris --- security/openssh/Makefile | 12 ++++-------- security/openssh/files/patch-ab | 6 +++--- 2 files changed, 7 insertions(+), 11 deletions(-) (limited to 'security') diff --git a/security/openssh/Makefile b/security/openssh/Makefile index 331f98a309a8..7459c66b3453 100644 --- a/security/openssh/Makefile +++ b/security/openssh/Makefile @@ -14,7 +14,7 @@ MASTER_SITES= ftp://internat.FreeBSD.org/pub/Crypto/OpenSSH/ MAINTAINER= green@FreeBSD.org -LIB_DEPENDS= crypto.1:${PORTSDIR}/security/openssl +USE_OPENSSL= RSA .include CAT?= /bin/cat @@ -29,13 +29,9 @@ SED?= /usr/bin/sed CVS_DATE_!= ${ECHO} -n "${CVS_DATE}" | ${SED} 's/[ \t:]/_/g' CVS_SITES= anoncvs@anoncvs1.ca.openbsd.org:/cvs \ :pserver:anoncvs@anoncvs1.usa.openbsd.org:/cvs -CRYPTOLIBS= -L${PREFIX}/lib -lcrypto -.ifdef USA_RESIDENT -.if ${USA_RESIDENT} == YES -CRYPTOLIBS+= -lRSAglue -lrsaref -.endif -.else -.error "USA_RESIDENT must be set to 'YES' or 'NO' correctly!" +CRYPTOLIBS= -L${OPENSSLLIB} -lcrypto +.if defined(OPENSSL_RSAREF) +CRYPTOLIBS+= -lRSAglue -L${LOCALBASE}/lib -lrsaref .endif # Here, MANDIR is concetenated to DESTDIR which all forms the man install dir... MAKE_ENV= DESTDIR=${PREFIX} MANDIR=/man/man CRYPTOLIBS="${CRYPTOLIBS}" diff --git a/security/openssh/files/patch-ab b/security/openssh/files/patch-ab index 6154746a3d81..d5f8ab95fa69 100644 --- a/security/openssh/files/patch-ab +++ b/security/openssh/files/patch-ab @@ -1,5 +1,5 @@ ---- Makefile.inc.orig Wed Feb 9 01:00:11 2000 -+++ Makefile.inc Wed Feb 9 01:08:09 2000 +--- Makefile.inc.orig Fri Feb 11 23:56:29 2000 ++++ Makefile.inc Fri Feb 11 23:57:56 2000 @@ -2,10 +2,14 @@ .include @@ -15,7 +15,7 @@ +TCP_WRAPPERS?= yes +.if !defined(MAKEFILE_INC_FIRST_PASS) +MAKEFILE_INC_FIRST_PASS= 0 -+CFLAGS+= -I${PREFIX}/include ${INET6FLAGS} ++CFLAGS+= -I${OPENSSLINC} ${INET6FLAGS} LDADD+= -L${.CURDIR}/../lib -lssh DPADD+= ${.CURDIR}/../lib/libssh.a .endif -- cgit v1.2.3