1995-10-07 01:19:27 +00:00
|
|
|
# New ports collection makefile for: ssh
|
|
|
|
# Date created: 30 Jul 1995
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: torstenb@FreeBSD.org
|
1995-10-07 01:19:27 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1996-03-23 23:36:32 +00:00
|
|
|
#
|
|
|
|
# Maximal ssh package requires YES values for
|
2000-04-17 00:19:02 +00:00
|
|
|
# WITH_PERL, WITH_TCPWRAP
|
1995-10-07 01:19:27 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:34:06 +00:00
|
|
|
PORTNAME= ssh
|
2000-04-21 08:19:33 +00:00
|
|
|
PORTVERSION= 1.2.27
|
2000-09-17 08:45:12 +00:00
|
|
|
PORTREVISION= 1
|
2000-06-02 03:18:54 +00:00
|
|
|
CATEGORIES= security ipv6
|
2000-09-21 23:37:29 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.engr.uky.edu/cs/software/ \
|
|
|
|
ftp://ftp.cs.umn.edu/dept/users/rybski/ \
|
|
|
|
ftp://ftp.net.ohio-state.edu/disk/d/security/ssh/ \
|
|
|
|
ftp://ftp.cronyx.ru/.w2/mirror/ssh/old/ \
|
|
|
|
ftp://ftp.nsysu.edu.tw/Unix/Security/ssh/old/ \
|
|
|
|
ftp://ftp.tokyonet.ad.jp/.da0/security/ssh/old/ \
|
2000-04-24 08:19:36 +00:00
|
|
|
ftp://ftp.comp.hkbu.edu.hk/.6/unix/ \
|
2000-09-21 23:37:29 +00:00
|
|
|
ftp://ftp.dei.uc.pt/.disk2/Crypto/SSH/old/
|
1995-10-07 01:19:27 +00:00
|
|
|
|
2000-04-21 09:19:54 +00:00
|
|
|
MAINTAINER= kris@FreeBSD.org
|
1995-11-09 05:58:00 +00:00
|
|
|
|
2000-09-17 08:45:12 +00:00
|
|
|
#RESTRICTED= "Crypto: export-controlled"
|
1995-10-07 01:19:27 +00:00
|
|
|
|
2000-04-24 02:03:30 +00:00
|
|
|
USE_AUTOCONF= YES
|
1995-10-07 01:19:27 +00:00
|
|
|
GNU_CONFIGURE= YES
|
2000-04-24 02:03:30 +00:00
|
|
|
USE_PERL5= YES
|
|
|
|
CONFIGURE_ENV+= PERL=${PERL5}
|
1995-10-07 01:19:27 +00:00
|
|
|
|
1998-10-08 13:11:52 +00:00
|
|
|
CONFIGURE_ARGS+= --with-etcdir=${PREFIX}/etc
|
1995-10-07 01:19:27 +00:00
|
|
|
|
2000-04-24 02:03:30 +00: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 05:01:06 +00:00
|
|
|
#CONFIGURE_ARGS+= --enable-group-writeability
|
|
|
|
|
2000-04-24 02:03:30 +00: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 05:01:06 +00:00
|
|
|
#CONFIGURE_ARGS+= --with-none
|
|
|
|
|
1998-08-01 22:24:55 +00:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
|
1999-08-09 17:12:44 +00:00
|
|
|
CONFIGURE_ARGS+=--with-kerberos5=${KRB5_HOME} --enable-kerberos-tgt-passing \
|
|
|
|
--disable-suid-ssh
|
1998-08-01 22:24:55 +00:00
|
|
|
.endif
|
|
|
|
|
1995-10-07 01:19:27 +00:00
|
|
|
# Include support for the SecureID card
|
|
|
|
# Warning: untested !
|
2000-04-24 02:03:30 +00:00
|
|
|
#
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_SECUREID)
|
1995-10-07 01:19:27 +00:00
|
|
|
CONFIGURE_ARGS+= --with-secureid
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Don't use IDEA. IDEA can be freely used for non-commercial use. However,
|
2000-04-24 02:03:30 +00: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 00:19:02 +00:00
|
|
|
.if defined(WITHOUT_IDEA)
|
1995-10-07 01:19:27 +00:00
|
|
|
CONFIGURE_ARGS+= --without-idea
|
|
|
|
.endif
|
|
|
|
|
1998-06-12 07:55:14 +00: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 06:09:43 +00: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 11:44:27 +00:00
|
|
|
|
1995-10-07 01:19:27 +00:00
|
|
|
pre-patch:
|
1997-09-11 18:31:52 +00:00
|
|
|
@${MV} -f ${WRKSRC}/make-ssh-known-hosts.pl \
|
1995-10-07 01:19:27 +00:00
|
|
|
${WRKSRC}/make-ssh-known-hosts.pl.in
|
|
|
|
|
|
|
|
post-install:
|
1996-08-08 13:57:02 +00:00
|
|
|
@if [ ! -f ${PREFIX}/etc/ssh_host_key ]; then \
|
2000-08-23 09:57:05 +00: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 18:51:11 +00:00
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/sshd.sh startup file."; \
|
2000-04-05 22:21:44 +00:00
|
|
|
${SED} -e 's+!!PREFIX!!+${PREFIX}+g' ${FILESDIR}/sshd.sh \
|
2000-08-23 09:57:05 +00:00
|
|
|
> ${PREFIX}/etc/rc.d/sshd.sh; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 751 ${PREFIX}/etc/rc.d/sshd.sh; \
|
2000-08-23 09:57:05 +00:00
|
|
|
fi; \
|
1996-06-15 17:50:18 +00:00
|
|
|
fi
|
1995-10-07 01:19:27 +00:00
|
|
|
|
1999-01-02 00:12:21 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1996-01-25 02:08:25 +00:00
|
|
|
|
|
|
|
# Include tcp-wrapper support (call remote identd)
|
1999-04-03 03:35:50 +00:00
|
|
|
.if exists(/usr/include/tcpd.h)
|
|
|
|
CONFIGURE_ARGS+= --with-libwrap
|
|
|
|
.else
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_TCPWRAP) || (exists(${PREFIX}/lib/libwrap.a) \
|
|
|
|
&& !defined(WITHOUT_TCPWRAP))
|
1996-01-25 04:17:28 +00:00
|
|
|
CONFIGURE_ENV+= LDFLAGS=-L${PREFIX}/lib CFLAGS="${CFLAGS} -I${PREFIX}/include"
|
1996-01-25 02:08:25 +00:00
|
|
|
CONFIGURE_ARGS+= --with-libwrap
|
1998-09-17 10:53:31 +00:00
|
|
|
LIB_DEPENDS+= wrap.7:${PORTSDIR}/security/tcp_wrapper
|
1996-01-25 02:08:25 +00:00
|
|
|
.endif
|
1999-04-03 03:35:50 +00:00
|
|
|
.endif
|
1996-01-25 02:08:25 +00:00
|
|
|
|
2000-01-14 19:37:39 +00: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 00:19:02 +00:00
|
|
|
# We still use WITH_INET6 here and try to support pre 4.0 machines with kame
|
2000-02-12 19:27:40 +00:00
|
|
|
# IPv6 stack
|
2000-04-17 00:19:02 +00:00
|
|
|
.if ${OSVERSION} >= 400014 || ( ${OSVERSION} < 400014 && defined(WITH_INET6) )
|
2000-02-20 17:30:54 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2000-01-14 19:37:39 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
1996-07-22 23:06:08 +00:00
|
|
|
# Include SOCKS firewall support
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_SOCKS)
|
1997-12-24 18:46:11 +00:00
|
|
|
CONFIGURE_ARGS+= --with-socks="-L${PREFIX}/lib -lsocks5" --with-socks5
|
1996-07-22 23:06:08 +00:00
|
|
|
.endif
|
1999-01-02 00:12:21 +00:00
|
|
|
|
1999-11-06 19:43:18 +00:00
|
|
|
# Include extra files if X11 is installed
|
2000-04-17 00:19:02 +00:00
|
|
|
.if defined(WITH_X11) || (exists(${X11BASE}/lib/libX11.a) \
|
|
|
|
&& !defined(WITHOUT_X11))
|
|
|
|
USE_XLIB= yes
|
2000-04-21 08:19:33 +00:00
|
|
|
PLIST:= ${WRKDIR}/PLIST
|
1999-11-06 19:43:18 +00:00
|
|
|
pre-install:
|
|
|
|
@${CAT} ${PKGDIR}/PLIST.X11 > ${PLIST}
|
|
|
|
@${CAT} ${PKGDIR}/PLIST >> ${PLIST}
|
2000-04-17 00:19:02 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
1999-11-06 19:43:18 +00:00
|
|
|
.endif
|
|
|
|
|
1999-01-02 00:12:21 +00:00
|
|
|
.include <bsd.port.post.mk>
|