2000-03-05 13:30:21 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.52 2000/03/05 18:30:42 espie Exp $
|
1997-11-17 00:58:40 -05:00
|
|
|
|
1999-05-14 14:35:25 -04:00
|
|
|
DISTNAME= ssh-1.2.27
|
1997-11-17 00:58:40 -05:00
|
|
|
CATEGORIES= security net
|
2000-03-05 13:30:21 -05:00
|
|
|
NEED_VERSION= 1.223
|
1999-11-23 21:57:56 -05:00
|
|
|
MASTER_SITES= http://the.wiretapped.net/security/cryptography/ssh/SSH/ \
|
|
|
|
ftp://ftp.cs.hut.fi/pub/ssh/ \
|
1999-10-08 16:04:33 -04:00
|
|
|
ftp://ftp.funet.fi/pub/unix/security/login/ssh/ \
|
|
|
|
ftp://ftp.cert.dfn.de/pub/tools/net/ssh/
|
1999-09-02 14:59:31 -04:00
|
|
|
|
2000-02-02 12:02:38 -05:00
|
|
|
MASTER_SITES0= http://www.ssh.org/patches/ \
|
1999-11-25 16:37:10 -05:00
|
|
|
ftp://ftp2.inch.com/pub/FreeBSD/
|
2000-02-02 12:02:38 -05:00
|
|
|
PATCHFILES= patch-${DISTNAME}-bsd.tty.chown:0
|
1999-09-02 14:59:31 -04:00
|
|
|
PATCH_DIST_STRIP= -p1
|
1997-11-17 00:58:40 -05:00
|
|
|
|
1999-09-02 14:59:31 -04:00
|
|
|
NO_CDROM= "CRYPTO: Third party crypto not allowed."
|
|
|
|
RESTRICTED= "Crypto; export-controlled"
|
|
|
|
|
1999-10-04 18:58:31 -04:00
|
|
|
MAINTAINER= todd@openbsd.org
|
|
|
|
|
2000-02-13 01:57:21 -05:00
|
|
|
LICENSE_TYPE= "CRYPTO NONE"
|
2000-03-05 13:30:21 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= No
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= No
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 03:35:59 -05:00
|
|
|
|
1999-12-02 20:13:16 -05:00
|
|
|
.if defined(USA_RESIDENT) && ${USA_RESIDENT:U} == YES
|
2000-03-05 13:30:21 -05:00
|
|
|
LIB_DEPENDS= rsaref.2:security/rsaref
|
1999-12-12 22:04:54 -05:00
|
|
|
CONFIGURE_ARGS+= --with-rsaref="${LOCALBASE}/lib"
|
1999-12-12 20:49:33 -05:00
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
1997-11-17 00:58:40 -05:00
|
|
|
.endif
|
|
|
|
|
2000-02-02 12:02:38 -05:00
|
|
|
GNU_CONFIGURE= Yes
|
1999-12-12 20:49:33 -05:00
|
|
|
CONFIGURE_ARGS+=--with-etcdir="${ETCDIR}" \
|
|
|
|
--with-rsh="${RSHPROG}" \
|
1999-05-14 01:27:30 -04:00
|
|
|
--with-libwrap
|
1999-12-02 20:13:16 -05:00
|
|
|
|
2000-02-02 12:02:38 -05:00
|
|
|
IS_INTERACTIVE= Yes
|
1997-11-17 00:58:40 -05:00
|
|
|
|
1999-12-09 12:55:55 -05:00
|
|
|
.if defined(X11) && ${X11:U} == NO
|
1998-11-22 18:51:26 -05:00
|
|
|
CONFIGURE_ARGS= --without-x
|
|
|
|
.endif
|
|
|
|
|
1997-11-17 00:58:40 -05:00
|
|
|
#Uncomment if all your users are in their own group and their homedir
|
|
|
|
#is writeable by that group. Beware the security implications!
|
1998-12-03 13:24:35 -05:00
|
|
|
#
|
1997-11-17 00:58:40 -05:00
|
|
|
#CONFIGURE_ARGS+= --enable-group-writeability
|
|
|
|
|
|
|
|
#Uncomment if you want to allow ssh to emulate an unencrypted rsh connection
|
|
|
|
#over a secure medium. This is normally dangerous since it can lead to the
|
|
|
|
#disclosure keys and passwords.
|
1998-12-03 13:24:35 -05:00
|
|
|
#
|
1997-11-17 00:58:40 -05:00
|
|
|
#CONFIGURE_ARGS+= --with-none
|
|
|
|
|
1999-05-14 01:27:30 -04:00
|
|
|
# Include SOCKS firewall support
|
1999-09-26 17:15:32 -04:00
|
|
|
.if defined(USE_SOCKS) && ${USE_SOCKS:U} == YES
|
1999-12-12 20:49:33 -05:00
|
|
|
CONFIGURE_ARGS+= --with-socks="-L${LOCALBASE}/lib -lsocks5" --with-socks5
|
1999-05-14 01:27:30 -04:00
|
|
|
.endif
|
|
|
|
|
1997-11-17 00:58:40 -05:00
|
|
|
# Include support for the SecureID card
|
|
|
|
# Warning: untested !
|
1999-09-26 17:15:32 -04:00
|
|
|
.if defined(USE_SECUREID) && ${USE_SECUREID:U} == YES
|
1997-11-17 00:58:40 -05:00
|
|
|
CONFIGURE_ARGS+= --with-secureid
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Don't use IDEA. IDEA can be freely used for non-commercial use. However,
|
|
|
|
# commercial use may require a licence in a number of countries
|
1998-12-03 13:24:35 -05:00
|
|
|
#
|
1999-09-26 17:15:32 -04:00
|
|
|
.if defined(DONT_USE_IDEA) && ${DONT_USE_IDEA:U} == YES
|
1997-11-17 00:58:40 -05:00
|
|
|
CONFIGURE_ARGS+= --without-idea
|
|
|
|
.endif
|
|
|
|
|
1999-12-02 20:13:16 -05:00
|
|
|
ETCDIR?= /etc
|
|
|
|
RSHPROG?= /usr/bin/rsh
|
|
|
|
|
1997-11-17 00:58:40 -05:00
|
|
|
pre-patch:
|
1999-12-02 20:13:16 -05:00
|
|
|
@mv -f ${WRKSRC}/make-ssh-known-hosts.pl \
|
1997-11-17 00:58:40 -05:00
|
|
|
${WRKSRC}/make-ssh-known-hosts.pl.in
|
|
|
|
|
|
|
|
fetch-depends:
|
1999-05-14 14:35:25 -04:00
|
|
|
.if !defined(NO_WARNINGS)
|
1999-09-26 17:15:32 -04:00
|
|
|
.if !defined(USA_RESIDENT) || ${USA_RESIDENT:U} != YES && ${USA_RESIDENT:U} != NO
|
1999-12-02 20:13:16 -05:00
|
|
|
@echo ""
|
|
|
|
@echo "You must set variable USA_RESIDENT to YES if you are a USA"
|
|
|
|
@echo "resident or NO otherwise. USA residents must obtain the"
|
|
|
|
@echo "RSAREF2 library to generate this program. \(RSA Inc. holds"
|
|
|
|
@echo "a patent on RSA in the USA - using RSA implementations"
|
|
|
|
@echo "other than RSAREF in the USA will violate the US patent\)."
|
|
|
|
@echo ""
|
|
|
|
@echo "RSAREF2 will be automatically obtained and used to generate"
|
|
|
|
@echo "this program when given the command \"make USA_RESIDENT=YES\""
|
|
|
|
@echo ""
|
|
|
|
@false
|
1997-11-17 00:58:40 -05:00
|
|
|
.endif
|
1998-12-16 15:24:50 -05:00
|
|
|
.endif
|
1997-11-17 00:58:40 -05:00
|
|
|
|
1998-04-05 03:29:05 -04:00
|
|
|
# Put the config files someplace where they can be found to
|
|
|
|
# create a package.
|
1997-11-17 00:58:40 -05:00
|
|
|
post-install:
|
1999-12-02 20:13:16 -05:00
|
|
|
@mkdir -p ${PREFIX}/lib/ssh
|
1998-04-05 03:29:05 -04:00
|
|
|
@cat ${WRKSRC}/server_config.sample | \
|
1999-12-02 20:13:16 -05:00
|
|
|
sed "s#_ETCDIR_#${ETCDIR}#g" > /tmp/ssh_inst.$$$$; \
|
1999-10-04 18:58:31 -04:00
|
|
|
${INSTALL_DATA} /tmp/ssh_inst.$$$$ ${PREFIX}/lib/ssh/server_config.sample
|
1998-04-05 03:29:05 -04:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/host_config.sample ${PREFIX}/lib/ssh
|
1997-11-22 22:48:50 -05:00
|
|
|
@if [ ! -f ${ETCDIR}/ssh_host_key ]; then \
|
1999-12-02 20:13:16 -05:00
|
|
|
echo "Generating a secret host key..."; \
|
|
|
|
${PREFIX}/bin/ssh-keygen -f ${ETCDIR}/ssh_host_key -N ""; \
|
1997-11-17 00:58:40 -05:00
|
|
|
fi
|
1999-12-02 20:13:16 -05:00
|
|
|
@rm -f ${PREFIX}/man/man1/slogin.1
|
|
|
|
@ln -sf ssh.1 ${PREFIX}/man/man1/slogin.1
|
1999-12-12 20:49:33 -05:00
|
|
|
@PKG_PREFIX="${PREFIX}" sh ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
1999-04-08 01:36:11 -04:00
|
|
|
|
1997-11-17 00:58:40 -05:00
|
|
|
.include <bsd.port.mk>
|