1998-11-23 05:15:17 +00:00
|
|
|
# New ports collection makefile for: ssh2
|
1999-02-05 06:11:36 +00:00
|
|
|
# Version required: 2.0.*
|
1998-11-23 05:15:17 +00:00
|
|
|
# Date created: 5 Oct 1998
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: Issei Suzuki <issei@jp.FreeBSD.org>
|
1995-10-07 01:19:27 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1995-10-07 01:19:27 +00:00
|
|
|
#
|
1998-11-23 05:15:17 +00:00
|
|
|
# Maximal ssh2 package requires YES values for
|
|
|
|
# USE_SSH1, USE_TCPWRAP
|
1995-10-07 01:19:27 +00:00
|
|
|
|
2000-01-28 19:39:20 +00:00
|
|
|
DISTNAME= ssh-2.0.13
|
|
|
|
PKGNAME= ssh2-2.0.13
|
1997-04-25 05:01:06 +00:00
|
|
|
CATEGORIES= security net
|
2000-01-28 19:39:20 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cs.hut.fi/pub/ssh/ \
|
1998-11-23 05:15:17 +00:00
|
|
|
ftp://sunsite.unc.edu/pub/packages/security/ssh/ \
|
|
|
|
ftp://ftp.kyoto.wide.ad.jp/pub/security/ssh/
|
1998-11-22 21:53:31 +00:00
|
|
|
|
1999-11-25 21:26:03 +00:00
|
|
|
PATCHFILES= patch-${DISTNAME}-bsd.tty.chown
|
|
|
|
PATCH_SITES= http://www.ssh.org/patches/
|
1999-11-25 21:26:38 +00:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1999-11-25 21:26:03 +00:00
|
|
|
|
1998-11-23 05:15:17 +00:00
|
|
|
MAINTAINER= issei@jp.FreeBSD.org
|
1995-10-07 01:19:27 +00:00
|
|
|
|
1996-04-17 01:07:04 +00:00
|
|
|
RESTRICTED= "Crypto; export-controlled"
|
1995-10-07 01:19:27 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
|
1999-12-24 18:39:48 +00:00
|
|
|
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --enable-debug
|
1997-04-25 05:01:06 +00:00
|
|
|
#Uncomment if all your users are in their own group and their homedir
|
|
|
|
#is writeable by that group. Beware the security implications!
|
|
|
|
#CONFIGURE_ARGS+= --enable-group-writeability
|
1999-03-15 01:18:49 +00:00
|
|
|
|
2000-03-11 12:58:43 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
1998-11-23 05:15:17 +00:00
|
|
|
# Include support for ssh1 client backward compatibility
|
1999-03-15 01:18:49 +00:00
|
|
|
USE_SSH1?= YES
|
1999-06-24 19:29:50 +00:00
|
|
|
# Include tcp_wrappers support (automaticlly YES if /usr/include/tcpd.h exists)
|
1999-03-15 01:18:49 +00:00
|
|
|
USE_TCPWRAP?= NO
|
|
|
|
# Warning: untested !
|
|
|
|
# Include support for the TIS authentication server
|
|
|
|
USE_TIS?= NO
|
|
|
|
# Include support for the SecureID card
|
|
|
|
USE_SECUREID?= NO
|
|
|
|
|
2000-03-11 12:58:43 +00:00
|
|
|
.if ${OSVERSION} < 400016 && defined(USE_SSH1) && ${USE_SSH1} == YES
|
1998-11-23 05:15:17 +00:00
|
|
|
BUILD_DEPENDS+= ssh1:${PORTSDIR}/security/ssh
|
|
|
|
RUN_DEPENDS+= ssh1:${PORTSDIR}/security/ssh
|
1998-08-01 22:24:55 +00:00
|
|
|
.endif
|
2000-03-11 12:58:43 +00:00
|
|
|
|
1995-10-07 01:19:27 +00:00
|
|
|
.if defined(USE_SECUREID) && ${USE_SECUREID} == YES
|
|
|
|
CONFIGURE_ARGS+= --with-secureid
|
|
|
|
.endif
|
1998-11-23 05:15:17 +00:00
|
|
|
.if defined(USE_TIS) && ${USE_TIS} == YES
|
|
|
|
CONFIGURE_ARGS+= --with-tis
|
1995-10-07 01:19:27 +00:00
|
|
|
.endif
|
1999-04-03 03:42:01 +00:00
|
|
|
.if exists(/usr/include/tcpd.h)
|
|
|
|
CONFIGURE_ARGS+= --with-libwrap
|
|
|
|
.else
|
1998-11-23 05:15:17 +00:00
|
|
|
.if defined(USE_TCPWRAP) && ${USE_TCPWRAP} == YES
|
1998-12-01 11:10:33 +00:00
|
|
|
CONFIGURE_ARGS+= --with-libwrap="-L ${PREFIX}/lib -lwrap"
|
1998-11-23 05:15:17 +00:00
|
|
|
LIB_DEPENDS+= wrap.7:${PORTSDIR}/security/tcp_wrapper
|
1998-10-30 06:15:18 +00:00
|
|
|
.endif
|
1999-04-03 03:42:01 +00:00
|
|
|
.endif
|
1998-10-30 06:15:18 +00:00
|
|
|
|
1998-11-23 05:15:17 +00:00
|
|
|
MAN1= ssh2.1 ssh-keygen2.1 ssh-add2.1 ssh-agent2.1 \
|
|
|
|
scp2.1 sftp2.1
|
|
|
|
MAN8= sshd2.8
|
|
|
|
|
1999-08-22 19:01:07 +00:00
|
|
|
MLINKS= ssh2.1 ssh.1 \
|
|
|
|
ssh-keygen2.1 ssh-keygen.1 \
|
|
|
|
ssh-add2.1 ssh-add.1 \
|
|
|
|
ssh-agent2.1 ssh-agent.1 \
|
|
|
|
scp2.1 scp.1 \
|
|
|
|
sftp2.1 sftp.1 \
|
|
|
|
sshd2.8 sshd.8
|
|
|
|
|
1998-11-23 05:15:17 +00:00
|
|
|
PORTDOCS= CHANGES LICENSING README
|
|
|
|
.if !defined(USE_SSH1) || (defined(USE_SSH1) && ${USE_SSH1} != YES)
|
|
|
|
PLIST= ${PKGDIR}/PLIST.ssh2_only
|
|
|
|
.endif
|
1995-10-07 01:19:27 +00:00
|
|
|
|
2000-03-11 12:58:43 +00:00
|
|
|
.if exists(/usr/sbin/sshd)
|
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC} && ${PATCH} --quiet < ${FILESDIR}/use-base-openssh.diff
|
|
|
|
.endif
|
|
|
|
|
1995-10-07 01:19:27 +00:00
|
|
|
post-install:
|
1998-11-23 05:15:17 +00:00
|
|
|
.if defined(USE_SSH1) && ${USE_SSH1} == YES
|
|
|
|
.for i in ssh ssh-keygen ssh-add ssh-agent scp
|
|
|
|
${MV} -f ${PREFIX}/man/man1/${i}.1${MAN_SUFX} ${PREFIX}/man/man1/${i}.old.1${MAN_SUFX}
|
|
|
|
.endfor
|
|
|
|
${MV} -f ${PREFIX}/man/man8/sshd.8${MAN_SUFX} ${PREFIX}/man/man8/sshd.old.8${MAN_SUFX}
|
|
|
|
.endif
|
|
|
|
#
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
-${MKDIR} ${PREFIX}/share/doc/ssh2
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i ${PREFIX}/share/doc/ssh2
|
|
|
|
.endfor
|
1996-08-08 13:57:02 +00:00
|
|
|
.endif
|
1998-11-23 05:15:17 +00:00
|
|
|
#
|
1996-06-15 17:50:18 +00:00
|
|
|
@if [ ! -f ${PREFIX}/etc/rc.d/sshd.sh ]; then \
|
1998-11-23 05:15:17 +00:00
|
|
|
${ECHO} "Installing ${PREFIX}/etc/rc.d/sshd.sh startup file."; \
|
|
|
|
${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/sshd.sh; \
|
|
|
|
${ECHO} "[ -x ${PREFIX}/sbin/sshd ] && ${PREFIX}/sbin/sshd && ${ECHO} -n ' sshd'" >> ${PREFIX}/etc/rc.d/sshd.sh; \
|
1999-08-22 19:01:07 +00:00
|
|
|
${CHMOD} 751 ${PREFIX}/etc/rc.d/sshd.sh; \
|
1996-06-15 17:50:18 +00:00
|
|
|
fi
|
1995-10-07 01:19:27 +00:00
|
|
|
|
2000-03-11 12:58:43 +00:00
|
|
|
.include <bsd.port.post.mk>
|