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
#
# Maximal ssh package requires YES values for
2000-04-17 02:19:02 +02:00
# WITH_PERL, WITH_TCPWRAP
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
2002-10-25 16:43:22 +02:00
PORTREVISION = 1
2000-06-02 05:18:54 +02:00
CATEGORIES = security ipv6
2002-06-30 05:57:57 +02:00
MASTER_SITES = ftp://ftp.tokyonet.ad.jp/pub/security/ssh/ \
ftp://ftp.tokyonet.ad.jp/pub/security/ssh/old/ \
ftp://ftp.dei.uc.pt/pub/ssh/ \
ftp://ftp.ssh.com/ \
2000-09-22 01:37:29 +02:00
ftp://ftp.nsysu.edu.tw/Unix/Security/ssh/old/ \
2002-06-29 20:13:36 +02:00
ftp://ftp.cronyx.ru/mirror/ssh/old/
2002-06-30 05:57:57 +02:00
2001-02-06 02:22:25 +01:00
MAINTAINER = ports@FreeBSD.org
1995-11-09 06:58:00 +01:00
2000-04-24 04:03:30 +02:00
USE_AUTOCONF = YES
1995-10-07 02:19:27 +01:00
GNU_CONFIGURE = YES
2000-04-24 04:03:30 +02:00
USE_PERL5 = YES
CONFIGURE_ENV += PERL = ${ PERL5 }
1995-10-07 02:19:27 +01:00
1998-10-08 15:11:52 +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!
#
1997-04-25 07:01:06 +02:00
#CONFIGURE_ARGS+= --enable-group-writeability
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.
#
1997-04-25 07:01:06 +02:00
#CONFIGURE_ARGS+= --with-none
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 )
1995-10-07 02:19:27 +01:00
CONFIGURE_ARGS += --with-secureid
. 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 )
1995-10-07 02:19:27 +01:00
CONFIGURE_ARGS += --without-idea
. 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
2002-06-29 20:13:36 +02:00
LIB_DEPENDS += gmp.3:${ PORTSDIR } /math/libgmp-freebsd
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 ) )
2002-06-29 20:13:36 +02:00
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. 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 \
2000-08-23 11:57:05 +02:00
${ ECHO } "Generating a secret host key..." ; \
${ 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 \
(1) Add a new MASTER_SITE
(2) Reorganize MASTER_SITEs
(3) Remove reference to Phil Karn's ssh speedups, it is now distributed
as a full source package, and not a patch kit. If we want to use it,
we will have to make a new port for it.
(4) Use ${ECHO} instead of echo, ${RM} instead of rm, ${LN} instead of ln
(5) Use ${FALSE} instead of false
(6) Remove multiple blank lines in Makefile
(7) Remove trailing blank lines in pkg/DESCR
Submitted by: Alex Perel <veers@disturbed.net> (1, 2, 4, 6)
Bill Fumerola <billf@FreeBSD.org> (3, 5, 7)
1999-03-13 19:51:11 +01:00
${ ECHO } " 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)
1999-04-03 05:35:50 +02:00
. i f e x i s t s ( / u s r / i n c l u d e / t c p d . h )
CONFIGURE_ARGS += --with-libwrap
. e l s e
2000-04-17 02:19:02 +02:00
. i f d e f i n e d ( W I T H _ T C P W R A P ) | | ( e x i s t s ( $ { P R E F I X } / l i b / l i b w r a p . a ) \
2001-02-14 21:19:44 +01:00
&& !defined( WITHOUT_TCPWRAP) )
1996-01-25 05:17:28 +01:00
CONFIGURE_ENV += LDFLAGS = -L${ PREFIX } /lib CFLAGS = " ${ CFLAGS } -I ${ PREFIX } /include "
1996-01-25 03:08:25 +01:00
CONFIGURE_ARGS += --with-libwrap
2001-02-14 21:19:44 +01:00
LIB_DEPENDS += wrap.7:${ PORTSDIR } /security/tcp_wrapper
1996-01-25 03:08:25 +01:00
. e n d i f
1999-04-03 05:35:50 +02:00
. e n d i f
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 )
1997-12-24 19:46:11 +01: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
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 >