1995-10-06 21:19:27 -04:00
|
|
|
# New ports collection makefile for: ssh
|
|
|
|
# Date created: 30 Jul 1995
|
1999-08-31 02:53:31 -04:00
|
|
|
# Whom: torstenb@FreeBSD.org
|
1995-10-06 21:19:27 -04:00
|
|
|
#
|
1999-08-30 21:53:22 -04:00
|
|
|
# $FreeBSD$
|
1996-03-23 18:36:32 -05:00
|
|
|
#
|
|
|
|
# Maximal ssh package requires YES values for
|
2000-04-16 20:19:02 -04:00
|
|
|
# WITH_PERL, WITH_TCPWRAP
|
1995-10-06 21:19:27 -04:00
|
|
|
#
|
|
|
|
|
2000-04-09 14:34:06 -04:00
|
|
|
PORTNAME= ssh
|
2000-04-21 04:19:33 -04:00
|
|
|
PORTVERSION= 1.2.27
|
2000-06-01 23:18:54 -04:00
|
|
|
CATEGORIES= security ipv6
|
2000-04-24 04:19:36 -04:00
|
|
|
MASTER_SITES= ftp://ftp.cs.hut.fi/pub/ssh/ \
|
|
|
|
ftp://ftp.bitcon.no/.4/console/system/ \
|
|
|
|
ftp://ftp.kddlabs.co.jp/.0/security/Crypto/SSH/ \
|
|
|
|
ftp://ftp.vision.net.au/ftp7/linuxberg/files/console/system/ \
|
|
|
|
ftp://ftp.comp.hkbu.edu.hk/.6/unix/ \
|
|
|
|
ftp://ftp.du.se/disk1/mirrors/ssh/
|
1995-10-06 21:19:27 -04:00
|
|
|
|
2000-04-21 05:19:54 -04:00
|
|
|
MAINTAINER= kris@FreeBSD.org
|
1995-11-09 00:58:00 -05:00
|
|
|
|
1995-10-06 21:19:27 -04:00
|
|
|
.if defined(USA_RESIDENT) && ${USA_RESIDENT} == YES
|
1998-10-08 02:16:18 -04:00
|
|
|
CONFIGURE_ARGS+= --with-rsaref
|
1998-10-08 02:17:56 -04:00
|
|
|
LIB_DEPENDS+= rsaref.2:${PORTSDIR}/security/rsaref
|
2000-04-21 04:19:33 -04:00
|
|
|
BUILD_DEPENDS+= /nonexistent:${PORTSDIR}/security/rsaref:extract
|
1995-10-06 21:19:27 -04:00
|
|
|
.endif
|
1998-10-08 02:16:18 -04:00
|
|
|
|
2000-04-23 22:03:30 -04:00
|
|
|
RESTRICTED= "Crypto: export-controlled"
|
1995-10-06 21:19:27 -04:00
|
|
|
|
2000-04-23 22:03:30 -04:00
|
|
|
USE_AUTOCONF= YES
|
1995-10-06 21:19:27 -04:00
|
|
|
GNU_CONFIGURE= YES
|
2000-04-23 22:03:30 -04:00
|
|
|
USE_PERL5= YES
|
|
|
|
CONFIGURE_ENV+= PERL=${PERL5}
|
1995-10-06 21:19:27 -04:00
|
|
|
|
1998-10-08 09:11:52 -04:00
|
|
|
CONFIGURE_ARGS+= --with-etcdir=${PREFIX}/etc
|
1995-10-06 21:19:27 -04:00
|
|
|
|
2000-04-23 22:03:30 -04: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 01:01:06 -04:00
|
|
|
#CONFIGURE_ARGS+= --enable-group-writeability
|
|
|
|
|
2000-04-23 22:03:30 -04: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 01:01:06 -04:00
|
|
|
#CONFIGURE_ARGS+= --with-none
|
|
|
|
|
1998-08-01 18:24:55 -04:00
|
|
|
.if defined(KRB5_HOME) && exists(${KRB5_HOME})
|
1999-08-09 13:12:44 -04:00
|
|
|
CONFIGURE_ARGS+=--with-kerberos5=${KRB5_HOME} --enable-kerberos-tgt-passing \
|
|
|
|
--disable-suid-ssh
|
1998-08-01 18:24:55 -04:00
|
|
|
.endif
|
|
|
|
|
1995-10-06 21:19:27 -04:00
|
|
|
# Include support for the SecureID card
|
|
|
|
# Warning: untested !
|
2000-04-23 22:03:30 -04:00
|
|
|
#
|
2000-04-16 20:19:02 -04:00
|
|
|
.if defined(WITH_SECUREID)
|
1995-10-06 21:19:27 -04:00
|
|
|
CONFIGURE_ARGS+= --with-secureid
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Don't use IDEA. IDEA can be freely used for non-commercial use. However,
|
2000-04-23 22:03:30 -04: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-16 20:19:02 -04:00
|
|
|
.if defined(WITHOUT_IDEA)
|
1995-10-06 21:19:27 -04:00
|
|
|
CONFIGURE_ARGS+= --without-idea
|
|
|
|
.endif
|
|
|
|
|
1998-06-12 03:55:14 -04: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 02:09:43 -04: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 06:44:27 -05:00
|
|
|
|
1995-10-06 21:19:27 -04:00
|
|
|
pre-patch:
|
1997-09-11 14:31:52 -04:00
|
|
|
@${MV} -f ${WRKSRC}/make-ssh-known-hosts.pl \
|
1995-10-06 21:19:27 -04:00
|
|
|
${WRKSRC}/make-ssh-known-hosts.pl.in
|
|
|
|
|
|
|
|
fetch-depends:
|
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT} != YES && ${USA_RESIDENT} != NO
|
(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 13:51:11 -05:00
|
|
|
@ ${ECHO}
|
|
|
|
@ ${ECHO} You must set the variable USA_RESIDENT to YES if you are a
|
|
|
|
@ ${ECHO} United States resident, otherwise NO.
|
|
|
|
@ ${ECHO} If you are a US resident then this port must also fetch
|
|
|
|
@ ${ECHO} the RSAREF2 library from sources abroad \(RSA Inc. holds a
|
|
|
|
@ ${ECHO} patent on RSA and public key crypto in general in the United
|
|
|
|
@ ${ECHO} States so using RSA implementations other than RSAREF there
|
|
|
|
@ ${ECHO} may violate US patent law\).
|
|
|
|
@ ${FALSE}
|
1995-10-06 21:19:27 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
1996-08-08 09:57:02 -04:00
|
|
|
@if [ ! -f ${PREFIX}/etc/ssh_host_key ]; 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 13:51:11 -05:00
|
|
|
${ECHO} "Generating a secret host key..."; \
|
1996-08-08 09:57:02 -04:00
|
|
|
${PREFIX}/bin/ssh-keygen -f ${PREFIX}/etc/ssh_host_key -N ""; \
|
|
|
|
fi
|
1996-06-15 13:50:18 -04:00
|
|
|
@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 13:51:11 -05:00
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/sshd.sh startup file."; \
|
2000-04-05 18:21:44 -04:00
|
|
|
${SED} -e 's+!!PREFIX!!+${PREFIX}+g' ${FILESDIR}/sshd.sh \
|
2000-04-14 11:04:29 -04:00
|
|
|
> ${PREFIX}/etc/rc.d/sshd.sh; \
|
1999-08-22 15:01:07 -04:00
|
|
|
${CHMOD} 751 ${PREFIX}/etc/rc.d/sshd.sh; \
|
1996-06-15 13:50:18 -04:00
|
|
|
fi
|
1995-10-06 21:19:27 -04:00
|
|
|
|
1999-01-01 19:12:21 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
1996-01-24 21:08:25 -05:00
|
|
|
|
|
|
|
# Include tcp-wrapper support (call remote identd)
|
1999-04-02 22:35:50 -05:00
|
|
|
.if exists(/usr/include/tcpd.h)
|
|
|
|
CONFIGURE_ARGS+= --with-libwrap
|
|
|
|
.else
|
2000-04-16 20:19:02 -04:00
|
|
|
.if defined(WITH_TCPWRAP) || (exists(${PREFIX}/lib/libwrap.a) \
|
|
|
|
&& !defined(WITHOUT_TCPWRAP))
|
1996-01-24 23:17:28 -05:00
|
|
|
CONFIGURE_ENV+= LDFLAGS=-L${PREFIX}/lib CFLAGS="${CFLAGS} -I${PREFIX}/include"
|
1996-01-24 21:08:25 -05:00
|
|
|
CONFIGURE_ARGS+= --with-libwrap
|
1998-09-17 06:53:31 -04:00
|
|
|
LIB_DEPENDS+= wrap.7:${PORTSDIR}/security/tcp_wrapper
|
1996-01-24 21:08:25 -05:00
|
|
|
.endif
|
1999-04-02 22:35:50 -05:00
|
|
|
.endif
|
1996-01-24 21:08:25 -05:00
|
|
|
|
2000-01-14 14:37:39 -05: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-16 20:19:02 -04:00
|
|
|
# We still use WITH_INET6 here and try to support pre 4.0 machines with kame
|
2000-02-12 14:27:40 -05:00
|
|
|
# IPv6 stack
|
2000-04-16 20:19:02 -04:00
|
|
|
.if ${OSVERSION} >= 400014 || ( ${OSVERSION} < 400014 && defined(WITH_INET6) )
|
2000-02-20 12:30:54 -05:00
|
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
2000-01-14 14:37:39 -05:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ipv6
|
|
|
|
.endif
|
|
|
|
|
1996-07-22 19:06:08 -04:00
|
|
|
# Include SOCKS firewall support
|
2000-04-16 20:19:02 -04:00
|
|
|
.if defined(WITH_SOCKS)
|
1997-12-24 13:46:11 -05:00
|
|
|
CONFIGURE_ARGS+= --with-socks="-L${PREFIX}/lib -lsocks5" --with-socks5
|
1996-07-22 19:06:08 -04:00
|
|
|
.endif
|
1999-01-01 19:12:21 -05:00
|
|
|
|
1999-11-06 14:43:18 -05:00
|
|
|
# Include extra files if X11 is installed
|
2000-04-16 20:19:02 -04:00
|
|
|
.if defined(WITH_X11) || (exists(${X11BASE}/lib/libX11.a) \
|
|
|
|
&& !defined(WITHOUT_X11))
|
|
|
|
USE_XLIB= yes
|
2000-04-21 04:19:33 -04:00
|
|
|
PLIST:= ${WRKDIR}/PLIST
|
1999-11-06 14:43:18 -05:00
|
|
|
pre-install:
|
|
|
|
@${CAT} ${PKGDIR}/PLIST.X11 > ${PLIST}
|
|
|
|
@${CAT} ${PKGDIR}/PLIST >> ${PLIST}
|
2000-04-16 20:19:02 -04:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
1999-11-06 14:43:18 -05:00
|
|
|
.endif
|
|
|
|
|
1999-01-01 19:12:21 -05:00
|
|
|
.include <bsd.port.post.mk>
|