aboutsummaryrefslogtreecommitdiff
path: root/security/ssh
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-04-26 06:23:41 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-04-26 06:23:41 +0000
commitd7b8935d2c90fb8ec00bd62e1fd0a0e4c073ecd9 (patch)
tree12bd5530336531e6512ba5e193bea023359d94dc /security/ssh
parent6e26545bd17b0ed943ee3c6b5b2071549a54ea63 (diff)
downloadports-d7b8935d2c90fb8ec00bd62e1fd0a0e4c073ecd9.tar.gz
ports-d7b8935d2c90fb8ec00bd62e1fd0a0e4c073ecd9.zip
Notes
Diffstat (limited to 'security/ssh')
-rw-r--r--security/ssh/Makefile6
-rw-r--r--security/ssh/files/patch-ac12
2 files changed, 12 insertions, 6 deletions
diff --git a/security/ssh/Makefile b/security/ssh/Makefile
index 13be90b61b02..3dffefc4ca58 100644
--- a/security/ssh/Makefile
+++ b/security/ssh/Makefile
@@ -66,6 +66,12 @@ CONFIGURE_ARGS+= --without-idea
.include <bsd.port.pre.mk>
+.if ${OSVERSION} > 500023
+LIB_DEPENDS+= gmp.4:${PORTSDIR}/math/libgmp3
+MAKE_ENV+= GMPINCDIR="${LOCALBASE}/include" \
+ GMPLIBDIR="${LOCALBASE}/lib"
+.endif
+
.if (${OSVERSION} >= 400016 && !defined(REALLY_WANT_SSH))
FORBIDDEN= "OpenSSH is a superior version of SSH which has been included in the FreeBSD base system since 4.0-RELEASE. This port is now deprecated and will be removed at some point in the future. To override this warning set the REALLY_WANT_SSH environment variable and rebuild."
.endif
diff --git a/security/ssh/files/patch-ac b/security/ssh/files/patch-ac
index 1f4163606c09..29bdcba285ff 100644
--- a/security/ssh/files/patch-ac
+++ b/security/ssh/files/patch-ac
@@ -1,5 +1,5 @@
---- Makefile.in.orig Wed May 12 04:19:31 1999
-+++ Makefile.in Sun Sep 17 01:39:40 2000
+--- Makefile.in.orig Wed May 12 14:19:31 1999
++++ Makefile.in Fri Apr 26 09:19:30 2002
@@ -301,12 +301,17 @@
SHELL = /bin/sh
@@ -7,9 +7,9 @@
-GMPLIBS = -L$(GMPDIR) -lgmp
-GMPDEP = $(GMPDIR)/gmp.h $(GMPDIR)/libgmp.a
+# We have the same libgmp in the system, so use it instead
-+GMPINCDIR = /usr/include
-+GMPLIBDIR = /usr/lib
-+GMPLIBS = -lgmp
++GMPINCDIR ?= /usr/include
++GMPLIBDIR ?= /usr/lib
++GMPLIBS = -L$(GMPLIBDIR) -lgmp
+GMPDEP = $(GMPINCDIR)/gmp.h $(GMPLIBDIR)/libgmp.a
ZLIBDIR = zlib-1.0.4
@@ -27,7 +27,7 @@
.c.o:
- $(CC) -c -I. $(KERBEROS_INCS) -I$(srcdir)/$(GMPDIR) -I$(srcdir)/$(ZLIBDIR) $(DEFS) -DHOST_KEY_FILE=\"$(HOST_KEY_FILE)\" -DHOST_CONFIG_FILE=\"$(HOST_CONFIG_FILE)\" -DSERVER_CONFIG_FILE=\"$(SERVER_CONFIG_FILE)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DETCDIR=\"$(etcdir)\" -DPIDDIR=\"$(piddir)\" -DSSH_BINDIR=\"$(bindir)\" -DTIS_MAP_FILE=\"$(TIS_MAP_FILE)\" $(CFLAGS) $(X_CFLAGS) $<
-+ $(CC) -c -I. $(KERBEROS_INCS) -I$(srcdir)/$(GMPINCDIR) -I$(srcdir)/$(ZLIBINCDIR) $(DEFS) -DHOST_KEY_FILE=\"$(HOST_KEY_FILE)\" -DHOST_CONFIG_FILE=\"$(HOST_CONFIG_FILE)\" -DSERVER_CONFIG_FILE=\"$(SERVER_CONFIG_FILE)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DETCDIR=\"$(etcdir)\" -DPIDDIR=\"$(piddir)\" -DSSH_BINDIR=\"$(bindir)\" -DTIS_MAP_FILE=\"$(TIS_MAP_FILE)\" $(CFLAGS) $(X_CFLAGS) $<
++ $(CC) -c -I. $(KERBEROS_INCS) -I$(GMPINCDIR) -I$(srcdir)/$(ZLIBINCDIR) $(DEFS) -DHOST_KEY_FILE=\"$(HOST_KEY_FILE)\" -DHOST_CONFIG_FILE=\"$(HOST_CONFIG_FILE)\" -DSERVER_CONFIG_FILE=\"$(SERVER_CONFIG_FILE)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DETCDIR=\"$(etcdir)\" -DPIDDIR=\"$(piddir)\" -DSSH_BINDIR=\"$(bindir)\" -DTIS_MAP_FILE=\"$(TIS_MAP_FILE)\" $(CFLAGS) $(X_CFLAGS) $<
sshd: $(SSHD_OBJS) $(GMPDEP) $(RSAREFDEP) $(ZLIBDEP)
-rm -f sshd