# New ports collection makefile for: openssh
# Date created:  18 Mar 1999
# Whom:   dwcjr@inethouston.net
#
# $FreeBSD: ports/security/openssh-portable/Makefile,v 1.7 2001/08/19 17:22:37 dinoex Exp $
#

PORTNAME=	openssh
PORTVERSION=	2.9p2
CATEGORIES=	security ipv6
MASTER_SITES=	ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
		ftp://ftp.op.net/pub/OpenBSD/OpenSSH/portable/ \
		ftp://carroll.cac.psu.edu/pub/OpenBSD/OpenSSH/portable/
PKGNAMESUFFIX=	-portable

MAINTAINER= dwcjr@FreeBSD.org

MAN1=	sftp.1 ssh-add.1 ssh-agent.1 ssh-keygen.1 ssh-keyscan.1 scp.1 ssh.1
MLINKS=	ssh.1 slogin.1
MAN8=	sftp-server.8 sshd.8

CRYPTOLIBS=	-L${OPENSSLLIB} -lcrypto
USE_OPENSSL=	YES
GNU_CONFIGURE=	yes
CONFIGURE_ARGS?=	--prefix=${PREFIX}

.if exists(/usr/include/security/pam_modules.h)
CONFIGURE_ARGS+=	--with-pam
.endif

.if exists(/usr/include/tcpd.h)
CONFIGURE_ARGS+=	--with-tcp-wrappers
.endif

post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
