1995-10-07 02:19:27 +01:00
# New ports collection makefile for: ssh
# Date created: 30 Jul 1995
1999-08-31 08:53:31 +02:00
# Whom: torstenb@FreeBSD.org
1995-10-07 02:19:27 +01:00
#
1999-08-31 03:53:22 +02:00
# $FreeBSD$
1996-03-24 00:36:32 +01:00
#
1995-10-07 02:19:27 +01:00
2000-04-09 20:34:06 +02:00
PORTNAME = ssh
2002-06-30 05:57:57 +02:00
PORTVERSION = 1.2.33
2006-05-10 16:46:47 +02:00
PORTREVISION = 3
2000-06-02 05:18:54 +02:00
CATEGORIES = security ipv6
2003-01-11 16:38:34 +01:00
MASTER_SITES = ftp://ftp.ssh.com/pub/ssh/ \
ftp://ftp.nsysu.edu.tw/Unix/Security/ssh/ \
ftp://ftp.cronyx.ru/mirror/ssh/ \
ftp://ftp.univie.ac.at/applications/ssh.com/
2002-06-30 05:57:57 +02:00
2001-02-06 02:22:25 +01:00
MAINTAINER = ports@FreeBSD.org
2003-02-20 20:00:52 +01:00
COMMENT = Secure shell client and server ( remote login program)
1995-11-09 06:58:00 +01:00
2003-10-13 06:03:41 +02:00
CONFLICTS = openssh-* openssh-portable-* openssh-gssapi-* ssh2-3.*
2004-04-19 16:12:36 +02:00
NO_LATEST_LINK = YES
2005-11-15 07:52:12 +01:00
USE_AUTOTOOLS = autoconf:213
1995-10-07 02:19:27 +01:00
GNU_CONFIGURE = YES
2000-04-24 04:03:30 +02:00
USE_PERL5 = YES
2004-04-10 19:26:55 +02:00
CONFIGURE_ENV += PERL = ${ PERL5 }
1995-10-07 02:19:27 +01:00
2004-04-10 19:26:55 +02:00
CONFIGURE_ARGS += --with-etcdir= ${ PREFIX } /etc
1995-10-07 02:19:27 +01:00
2000-04-24 04:03:30 +02:00
# Uncomment if all your users are in their own group and their homedir
# is writeable by that group. Beware the security implications!
#
2004-04-10 19:26:55 +02:00
#CONFIGURE_ARGS+= --enable-group-writeability
1997-04-25 07:01:06 +02:00
2000-04-24 04:03:30 +02:00
# Uncomment if you want to allow ssh to emulate an unencrypted rsh connection
# over a secure medium (i.e. allow SSH connections without encryption).
# This is normally dangerous since it can lead to the disclosure of keys
# and passwords.
#
2004-04-10 19:26:55 +02:00
#CONFIGURE_ARGS+= --with-none
1997-04-25 07:01:06 +02:00
1998-08-02 00:24:55 +02:00
. i f d e f i n e d ( K R B 5 _ H O M E ) & & e x i s t s ( $ { K R B 5 _ H O M E } )
1999-08-09 19:12:44 +02:00
CONFIGURE_ARGS += --with-kerberos5= ${ KRB5_HOME } --enable-kerberos-tgt-passing \
--disable-suid-ssh
1998-08-02 00:24:55 +02:00
. e n d i f
1995-10-07 02:19:27 +01:00
# Include support for the SecureID card
# Warning: untested !
2000-04-24 04:03:30 +02:00
#
2000-04-17 02:19:02 +02:00
. i f d e f i n e d ( W I T H _ S E C U R E I D )
2004-04-10 19:26:55 +02:00
CONFIGURE_ARGS += --with-secureid
1995-10-07 02:19:27 +01:00
. e n d i f
# Don't use IDEA. IDEA can be freely used for non-commercial use. However,
2000-04-24 04:03:30 +02:00
# commercial use may require a licence in a number of countries. Since SSH
# itself may not be used for commercial purposes without a license, we
# enable IDEA by default since the user would already be getting himself
# into trouble.
#
2000-04-17 02:19:02 +02:00
. i f d e f i n e d ( W I T H O U T _ I D E A )
2004-04-10 19:26:55 +02:00
CONFIGURE_ARGS += --without-idea
1995-10-07 02:19:27 +01:00
. e n d i f
2001-02-06 02:22:25 +01:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2002-04-26 08:23:41 +02:00
. i f $ { O S V E R S I O N } > 5 0 0 0 2 3
2006-05-10 16:46:47 +02:00
LIB_DEPENDS += gmp.7:${ PORTSDIR } /math/libgmp4
2002-04-26 08:23:41 +02:00
MAKE_ENV += GMPINCDIR = " ${ LOCALBASE } /include " \
GMPLIBDIR = " ${ LOCALBASE } /lib "
. e n d i f
2001-02-06 02:22:25 +01:00
. i f ( $ { O S V E R S I O N } > = 4 0 0 0 1 6 & & ! d e f i n e d ( R E A L L Y _ W A N T _ S S H ) )
2004-12-20 04:20:31 +01:00
IGNORE = is now deprecated: OpenSSH is a superior version of SSH which has been included in the FreeBSD base system since 4.0-RELEASE. To override this warning set the REALLY_WANT_SSH environment variable and rebuild
2001-02-06 02:22:25 +01:00
. e n d i f
1998-06-12 09:55:14 +02:00
MAN1 = scp1.1 ssh-add1.1 ssh-agent1.1 ssh-keygen1.1 ssh1.1 \
make-ssh-known-hosts1.1
MAN8 = sshd1.8
1999-07-16 08:09:43 +02:00
MLINKS = make-ssh-known-hosts1.1 make-ssh-known-hosts.1 \
scp1.1 scp.1 \
ssh-add1.1 ssh-add.1 \
ssh-agent1.1 ssh-agent.1 \
ssh-keygen1.1 ssh-keygen.1 \
ssh1.1 ssh.1 \
ssh.1 slogin.1 \
ssh1.1 slogin1.1 \
sshd1.8 sshd.8
1996-11-18 12:44:27 +01:00
1995-10-07 02:19:27 +01:00
pre-patch :
1997-09-11 20:31:52 +02:00
@${ MV } -f ${ WRKSRC } /make-ssh-known-hosts.pl \
1995-10-07 02:19:27 +01:00
${ WRKSRC } /make-ssh-known-hosts.pl.in
post-install :
1996-08-08 15:57:02 +02:00
@if [ ! -f ${ PREFIX } /etc/ssh_host_key ] ; then \
2003-09-27 03:01:08 +02:00
${ ECHO_MSG } "Generating a secret host key..." ; \
2000-08-23 11:57:05 +02:00
${ PREFIX } /bin/ssh-keygen -f ${ PREFIX } /etc/ssh_host_key -N "" ; \
fi ; \
if [ "`grep ssh /etc/inetd.conf|grep -v ^#ssh`" = "" ] ; then \
if [ ! -f ${ PREFIX } /etc/rc.d/sshd.sh ] ; then \
2003-09-27 03:01:08 +02:00
${ ECHO_MSG } " Installing ${ PREFIX } /etc/rc.d/sshd.sh startup file. " ; \
2000-04-06 00:21:44 +02:00
${ SED } -e 's+!!PREFIX!!+${PREFIX}+g' ${ FILESDIR } /sshd.sh \
2000-08-23 11:57:05 +02:00
> ${ PREFIX } /etc/rc.d/sshd.sh; \
1999-08-22 21:01:07 +02:00
${ CHMOD } 751 ${ PREFIX } /etc/rc.d/sshd.sh; \
2000-08-23 11:57:05 +02:00
fi ; \
1996-06-15 19:50:18 +02:00
fi
1995-10-07 02:19:27 +01:00
1996-01-25 03:08:25 +01:00
# Include tcp-wrapper support (call remote identd)
2004-04-10 19:26:55 +02:00
CONFIGURE_ARGS += --with-libwrap
1996-01-25 03:08:25 +01:00
2000-01-14 20:37:39 +01:00
# Original IPv6 patches were obtained from ftp://ftp.kyoto.wide.ad.jp/IPv6/ssh/
# ssh-1.2.27-IPv6-1.5-patch.gz
2000-04-17 02:19:02 +02:00
# We still use WITH_INET6 here and try to support pre 4.0 machines with kame
2000-02-12 20:27:40 +01:00
# IPv6 stack
2000-04-17 02:19:02 +02:00
. i f $ { O S V E R S I O N } > = 4 0 0 0 1 4 | | ( $ { O S V E R S I O N } < 4 0 0 0 1 4 & & d e f i n e d ( W I T H _ I N E T 6 ) )
2000-02-20 18:30:54 +01:00
CONFIGURE_ARGS += --enable-ipv6
2000-01-14 20:37:39 +01:00
. e l s e
CONFIGURE_ARGS += --disable-ipv6
. e n d i f
1996-07-23 01:06:08 +02:00
# Include SOCKS firewall support
2000-04-17 02:19:02 +02:00
. i f d e f i n e d ( W I T H _ S O C K S )
2004-04-10 19:26:55 +02:00
CONFIGURE_ARGS += --with-socks= " -L ${ PREFIX } /lib -lsocks5 " --with-socks5
1996-07-23 01:06:08 +02:00
. e n d i f
1999-01-02 01:12:21 +01:00
1999-11-06 20:43:18 +01:00
# Include extra files if X11 is installed
2000-04-17 02:19:02 +02:00
. i f d e f i n e d ( W I T H _ X 1 1 ) | | ( e x i s t s ( $ { X 1 1 B A S E } / l i b / l i b X 1 1 . a ) \
2001-02-14 21:19:44 +01:00
&& !defined( WITHOUT_X11) )
2000-04-17 02:19:02 +02:00
USE_XLIB = yes
2000-04-21 10:19:33 +02:00
PLIST := ${ WRKDIR } /PLIST
1999-11-06 20:43:18 +01:00
pre-install :
2000-10-08 08:03:48 +02:00
@${ CAT } ${ PKGDIR } /pkg-plist.x11 ${ PKGDIR } /pkg-plist > ${ PLIST }
2000-04-17 02:19:02 +02:00
. e l s e
2004-04-10 19:26:55 +02:00
CONFIGURE_ARGS += --without-x
1999-11-06 20:43:18 +01:00
. e n d i f
1999-01-02 01:12:21 +01:00
. i n c l u d e < b s d . p o r t . p o s t . m k >