head	1.26;
access;
symbols
	pkgsrc-2013Q2:1.26.0.4
	pkgsrc-2013Q2-base:1.26
	pkgsrc-2012Q4:1.26.0.2
	pkgsrc-2012Q4-base:1.26
	pkgsrc-2012Q3:1.25.0.8
	pkgsrc-2012Q3-base:1.25
	pkgsrc-2012Q2:1.25.0.6
	pkgsrc-2012Q2-base:1.25
	pkgsrc-2012Q1:1.25.0.4
	pkgsrc-2012Q1-base:1.25
	pkgsrc-2011Q4:1.25.0.2
	pkgsrc-2011Q4-base:1.25
	pkgsrc-2011Q3:1.24.0.20
	pkgsrc-2011Q3-base:1.24
	pkgsrc-2011Q2:1.24.0.18
	pkgsrc-2011Q2-base:1.24
	pkgsrc-2011Q1:1.24.0.16
	pkgsrc-2011Q1-base:1.24
	pkgsrc-2010Q4:1.24.0.14
	pkgsrc-2010Q4-base:1.24
	pkgsrc-2010Q3:1.24.0.12
	pkgsrc-2010Q3-base:1.24
	pkgsrc-2010Q2:1.24.0.10
	pkgsrc-2010Q2-base:1.24
	pkgsrc-2010Q1:1.24.0.8
	pkgsrc-2010Q1-base:1.24
	pkgsrc-2009Q4:1.24.0.6
	pkgsrc-2009Q4-base:1.24
	pkgsrc-2009Q3:1.24.0.4
	pkgsrc-2009Q3-base:1.24
	pkgsrc-2009Q2:1.24.0.2
	pkgsrc-2009Q2-base:1.24
	pkgsrc-2009Q1:1.22.0.18
	pkgsrc-2009Q1-base:1.22
	pkgsrc-2008Q4:1.22.0.16
	pkgsrc-2008Q4-base:1.22
	pkgsrc-2008Q3:1.22.0.14
	pkgsrc-2008Q3-base:1.22
	cube-native-xorg:1.22.0.12
	cube-native-xorg-base:1.22
	pkgsrc-2008Q2:1.22.0.10
	pkgsrc-2008Q2-base:1.22
	cwrapper:1.22.0.8
	pkgsrc-2008Q1:1.22.0.6
	pkgsrc-2008Q1-base:1.22
	pkgsrc-2007Q4:1.22.0.4
	pkgsrc-2007Q4-base:1.22
	pkgsrc-2007Q3:1.22.0.2
	pkgsrc-2007Q3-base:1.22
	pkgsrc-2007Q2:1.20.0.2
	pkgsrc-2007Q2-base:1.20
	pkgsrc-2007Q1:1.19.0.2
	pkgsrc-2007Q1-base:1.19
	pkgsrc-2006Q4:1.18.0.2
	pkgsrc-2006Q4-base:1.18
	pkgsrc-2006Q3:1.17.0.2
	pkgsrc-2006Q3-base:1.17
	pkgsrc-2006Q2:1.16.0.2
	pkgsrc-2006Q2-base:1.16
	pkgsrc-2006Q1:1.15.0.2
	pkgsrc-2006Q1-base:1.15
	pkgsrc-2005Q4:1.12.0.4
	pkgsrc-2005Q4-base:1.12
	pkgsrc-2005Q3:1.12.0.2
	pkgsrc-2005Q3-base:1.12
	pkgsrc-2005Q2:1.11.0.2
	pkgsrc-2005Q2-base:1.11
	pkgsrc-2005Q1:1.10.0.2
	pkgsrc-2005Q1-base:1.10
	pkgsrc-2004Q4:1.8.0.4
	pkgsrc-2004Q4-base:1.8
	pkgsrc-2004Q3:1.8.0.2
	pkgsrc-2004Q3-base:1.8
	pkgsrc-2004Q2:1.6.0.6
	pkgsrc-2004Q2-base:1.6
	pkgsrc-2004Q1:1.6.0.4
	pkgsrc-2004Q1-base:1.6
	pkgsrc-2003Q4:1.6.0.2
	pkgsrc-2003Q4-base:1.6
	netbsd-1-6-1:1.5.0.2
	netbsd-1-6-1-base:1.5
	netbsd-1-6:1.1.1.1.0.4
	netbsd-1-6-RELEASE-base:1.1.1.1
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.26
date	2012.12.12.22.04.43;	author gendalia;	state dead;
branches;
next	1.25;

1.25
date	2011.12.17.23.42.59;	author sbd;	state Exp;
branches;
next	1.24;

1.24
date	2009.06.30.00.07.23;	author joerg;	state Exp;
branches;
next	1.23;

1.23
date	2009.05.19.08.59.33;	author wiz;	state Exp;
branches;
next	1.22;

1.22
date	2007.09.07.22.12.22;	author jlam;	state Exp;
branches;
next	1.21;

1.21
date	2007.08.09.20.15.38;	author tnn;	state Exp;
branches;
next	1.20;

1.20
date	2007.06.08.15.24.58;	author heinz;	state Exp;
branches;
next	1.19;

1.19
date	2007.02.22.19.27.09;	author wiz;	state Exp;
branches;
next	1.18;

1.18
date	2006.11.02.12.31.58;	author kivinen;	state Exp;
branches;
next	1.17;

1.17
date	2006.09.22.13.58.46;	author kivinen;	state Exp;
branches;
next	1.16;

1.16
date	2006.05.10.12.26.31;	author gdt;	state Exp;
branches;
next	1.15;

1.15
date	2006.03.04.21.30.38;	author jlam;	state Exp;
branches;
next	1.14;

1.14
date	2006.02.05.23.10.47;	author joerg;	state Exp;
branches;
next	1.13;

1.13
date	2006.02.04.00.33.17;	author wiz;	state Exp;
branches;
next	1.12;

1.12
date	2005.08.24.09.13.24;	author kivinen;	state Exp;
branches;
next	1.11;

1.11
date	2005.06.01.18.03.21;	author jlam;	state Exp;
branches;
next	1.10;

1.10
date	2004.12.28.02.47.49;	author reed;	state Exp;
branches;
next	1.9;

1.9
date	2004.12.28.01.39.32;	author reed;	state Exp;
branches;
next	1.8;

1.8
date	2004.07.31.12.52.42;	author seb;	state Exp;
branches;
next	1.7;

1.7
date	2004.07.25.12.35.06;	author grant;	state Exp;
branches;
next	1.6;

1.6
date	2003.05.10.10.02.34;	author seb;	state Exp;
branches;
next	1.5;

1.5
date	2003.01.28.22.04.08;	author jlam;	state Exp;
branches;
next	1.4;

1.4
date	2003.01.12.15.15.51;	author seb;	state Exp;
branches;
next	1.3;

1.3
date	2002.09.24.00.24.37;	author jlam;	state Exp;
branches;
next	1.2;

1.2
date	2002.09.19.09.04.26;	author jlam;	state Exp;
branches;
next	1.1;

1.1
date	2002.08.06.00.48.09;	author seb;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.08.06.00.48.09;	author seb;	state Exp;
branches;
next	;


desc
@@


1.26
log
@"Hygiene demands it."

Sources are from 2003, current tectia client/server has vulnterabilities,
there are no security eyes on this version.
@
text
@# $NetBSD: Makefile,v 1.25 2011/12/17 23:42:59 sbd Exp $

DISTNAME=	ssh-3.2.9.1
PKGNAME=	${DISTNAME:C/ssh-/ssh2-/}
PKGREVISION=	8
CATEGORIES=	security
MASTER_SITES=	ftp://ftp.ssh.com/pub/ssh/

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	http://www.ssh.com/
LICENSE=	ssh-communications-security-license

RESTRICTED=		Reciprocal grant required for derivative works.  Non-comercial use restrictions on some systems.
NO_BIN_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

MAKE_JOBS_SAFE=		no

COMMENT=	Secure Shell client and server for V.2 SSH protocol

PKG_DESTDIR_SUPPORT=	destdir

CONFLICTS+=		openssh-[0-9]* ssh6-[0-9]* ssh-[0-9]* sftp-[0-9]*
CONFLICTS+=		openssh+gssapi-[0-9]* ssh2-nox11-[0-9]*

GNU_CONFIGURE=		YES

BUILD_DEFS+=		IPV6_READY

CRYPTO=			YES
PKG_SYSCONFSUBDIR=	ssh2

DISTINFO_FILE=		${.CURDIR}/../../security/ssh2/distinfo
PATCHDIR=		${.CURDIR}/../../security/ssh2/patches
FILESDIR=		${.CURDIR}/../../security/ssh2/files
PLIST_SRC=		${.CURDIR}/../../security/ssh2/PLIST

.include "../../mk/bsd.prefs.mk"
.include "options.mk"

.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "sparc64"
# Later we may want to put an upper version bound on OS_VERSION or on
# gcc version for this.
CONFIGURE_ARGS+=	--disable-compiler-optimizations
.endif

SSH_PID_DIR=		/var/run	# default directory for PID files
.if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.[012345678])
SSH_PID_DIR=		/etc		# Older Solaris doesn't have a /var/run
.endif

CONFIGURE_ARGS+=	--without-daemonpam --without-clientpam
CONFIGURE_ARGS+=	--without-ssh-agent1-compat
CONFIGURE_ARGS+=	--without-ssh1-compat
CONFIGURE_ARGS+=	--with-libwrap=${BUILDLINK_PREFIX.tcp-wrappers}
CONFIGURE_ARGS+=	--with-pid-dir=${SSH_PID_DIR:Q}

# This seems to break x11 forwarding at least on NetBSD 3.1 amd64
# and i386, so I assume it actually breaks it for all platforms.
# (i.e ssh localhost xterm does not work as client will get wrong
# auth cookie).
# Without this it will use the xauth method and that will work.
CONFIGURE_ARGS+=	--without-x11-security

# Setting FOREIGN_ETCDIR to PKG_SYSCONFBASEDIR may seem stupid
# if PKG_SYSCONFDIR.${PKG_SYSCONFVAR} is set but it does no harm...
#
CONFIGURE_ARGS+=	--with-foreign-etcdir=${PKG_SYSCONFBASEDIR:Q}
CONFIGURE_ARGS+=	--with-etcdir=${PKG_SYSCONFDIR:Q}

MAKE_ENV+=		PKGBASE=${PKGBASE:Q}
MAKE_ENV+=		RM=${RM:Q}

RCD_SCRIPTS=		ssh2_secure_shell

EGDIR=			${PREFIX}/share/examples/${PKGBASE}
EGFILES=		ext_authorization_example.sh \
			kbdint_plugin_example.sh

CONFS=			sshd2_config ssh2_config ssh_dummy_shell.out
CONF_FILES=		# empty
.for file in ${CONFS}
CONF_FILES+=		${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file}
.endfor
FILES_SUBST+=		SSH_PID_DIR=${SSH_PID_DIR:Q}

OWN_DIRS=		${PKG_SYSCONFDIR}/knownhosts
OWN_DIRS+=		${PKG_SYSCONFDIR}/hostkeys

DOCS=			CHANGES FAQ HOWTO.anonymous.sftp INSTALL LICENSE \
			NEWS README REGEX-SYNTAX SSH2.QUICKSTART \
			RFC.authorization_program_protocol \
			RFC.kbdint_plugin_protocol

TEST_TARGET=		check

post-install:
	${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/share/doc/${PKGBASE}
.for file in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR:Q}${PREFIX:Q}/share/doc/${PKGBASE}
.endfor
	${INSTALL_DATA_DIR} ${DESTDIR:Q}${EGDIR:Q}
.for file in ${EGFILES}
	${INSTALL_DATA} ${WRKSRC}/${file} ${DESTDIR:Q}${EGDIR:Q}
.endfor

.include "../../mk/termcap.buildlink3.mk"
.include "../../security/tcp_wrappers/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.25
log
@Add missing mk/termcap buildlink.

Bump PKGREVISION
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2009/06/30 00:07:23 joerg Exp $
@


1.24
log
@Mark packages as MAKE_JOBS_SAFE=no that failed in a bulk build with
MAKE_JOBS=2 and worked without.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2009/05/19 08:59:33 wiz Exp $
d5 1
a5 1
PKGREVISION=	7
d107 1
@


1.23
log
@Use standard location for LICENSE line (in MAINTAINER/HOMEPAGE/COMMENT
block). Uncomment some commented out LICENSE lines while here.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2007/09/07 22:12:22 jlam Exp $
d17 2
@


1.22
log
@Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead.

Remaining usage of USE_INET6 was solely for the benefit of the scripts
that generate the README.html files.  Replace:

	BUILD_DEFS+=	USE_INET6
with
	BUILD_DEFS+=	IPV6_READY

and teach the README-generation tools to look for that instead.

This nukes USE_INET6 from pkgsrc proper.  We leave a tiny bit of code
to continue to support USE_INET6 for pkgsrc-wip until it has been nuked
from there as well.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2007/08/09 20:15:38 tnn Exp $
d11 6
a38 5
LICENSE=		ssh-communications-security-license
RESTRICTED=		Reciprocal grant required for derivative works.  Non-comercial use restrictions on some systems.
NO_BIN_ON_FTP=		${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

@


1.21
log
@Enable modular X.org support, PR pkg/36760.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2007/06/08 15:24:58 heinz Exp $
d20 1
a20 1
BUILD_DEFS+=		USE_INET6
@


1.20
log
@Added support for installation to DESTDIR. "root"-permissions still
required because of "chown" and "chmod" commands.
Enabled tests.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2007/02/22 19:27:09 wiz Exp $
d30 1
a32 2
.include "../../mk/bsd.prefs.mk"

@


1.19
log
@Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2006/11/02 12:31:58 kivinen Exp $
d13 4
a16 2
CONFLICTS+=	openssh-[0-9]* ssh6-[0-9]* ssh-[0-9]* sftp-[0-9]*
CONFLICTS+=	openssh+gssapi-[0-9]* ssh2-nox11-[0-9]*
d93 2
d96 1
a96 1
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE}
d98 1
a98 1
	${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/${PKGBASE}
d100 1
a100 1
	${INSTALL_DATA_DIR} ${EGDIR}
d102 1
a102 1
	${INSTALL_DATA} ${WRKSRC}/${file} ${EGDIR}
@


1.18
log
@	Added missing fflush to scp when priting statistics. Fixed bug
	in the reverse dns queries for IPv6 addresses (overwriting 12
	bytes of local variables on the stack). Disabled x11-security
	on all platforms, as it does not seem to work on i386 either.
	Incremented PKGREVISION to 7.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2006/09/22 13:58:46 kivinen Exp $
d11 1
a11 1
COMMENT=        Secure Shell client and server for V.2 SSH protocol
@


1.17
log
@	Fixed RSA e=3 bug (most likely nobody uses e=3 rsa keys
	on ssh anyways, but better to make sure). Fixed some
	more ssh_*_{en,de}code calls missing necessary casts.
	Disabled x11-security extension on x86_64 as it does not
	work there (uses xauth instead). Updated pkgrevision.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2006/05/10 12:26:31 gdt Exp $
d5 1
a5 1
PKGREVISION=	6
a53 1
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "x86_64"
d55 1
a59 1
.endif
@


1.16
log
@This software does not qualify as either Free or Open Source.
Add LICENSE=, and license file.

Set RESTRICTED and NO_BIN_ON_* because permission to distribute
derived works is unclear, limited to some operating systems, and
requires a reciprocal license grant.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2006/03/04 21:30:38 jlam Exp $
d5 1
a5 1
PKGREVISION=	5
d54 8
@


1.15
log
@Point MAINTAINER to pkgsrc-users@@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2006/02/05 23:10:47 joerg Exp $
d32 4
a35 3
.if (${OPSYS:M*BSD} == "") && (${OPSYS} != "Linux")
LICENSE=		no-commercial-use
.endif
@


1.14
log
@Recursive revision bump / recommended bump for gettext ABI change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2006/02/04 00:33:17 wiz Exp $
d9 1
a9 1
MAINTAINER=	tech-pkg@@NetBSD.org
@


1.13
log
@Add x11 option to ssh2 package.
Remove obsolete ssh2-nox11 package.
Replaces PR 32716 by Tracy Di Marco White.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2005/08/24 09:13:24 kivinen Exp $
d5 1
a5 1
PKGREVISION=	4
@


1.12
log
@	Fixed ssh_encode_* calls to have casts to SshUInt32 or size_t
	to get it working properly on the 64-bit platform (amd64).
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.11 2005/06/01 18:03:21 jlam Exp $
#
d3 1
d5 6
a11 1
PKGREVISION=	4
d13 69
a81 1
CONFLICTS=	ssh2-nox11-[0-9]*
d83 9
a91 1
CONFIGURE_ARGS+=	--with-x	# be explicit
d93 1
a93 2
.include "../../mk/x11.buildlink3.mk"
.include "../../security/ssh2/Makefile.common"
@


1.11
log
@Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2004/12/28 02:47:49 reed Exp $
d6 1
a6 1
PKGREVISION=	3
@


1.10
log
@The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2004/12/28 01:39:32 reed Exp $
a9 1
USE_X11=		YES
d12 1
@


1.9
log
@Moved PKGREVISION definition from common Makefile to the
package-specific Makefile (as mentioned on tech-pkg).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2004/07/31 12:52:42 seb Exp $
d6 1
a6 1
PKGREVISION=	2
@


1.8
log
@Revert previous: conflicts with openssh (and others) are already specified in
Makefile.common.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2004/07/25 12:35:06 grant Exp $
d6 1
@


1.7
log
@add CONFLICT with openssh.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2003/05/10 10:02:34 seb Exp $
a7 1
CONFLICTS+=	openssh-[0-9]*
@


1.6
log
@Pave the way for bits sharing with the upcoming ssh2-nox11 package.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2003/01/28 22:04:08 jlam Exp $
d8 1
@


1.5
log
@Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2003/01/12 15:15:51 seb Exp $
a3 1
DISTNAME=	ssh-3.2.2
d5 1
a5 2
CATEGORIES=	security
MASTER_SITES=	ftp://ftp.ssh.com/pub/ssh/
d7 1
a7 3
MAINTAINER=	packages@@netbsd.org
HOMEPAGE=	http://www.ssh.com
COMMENT=	Secure Shell client and server for V.2 SSH protocol
a8 4
CONFLICTS=	openssh-[0-9]* ssh6-[0-9]* ssh-[0-9]* sftp-[0-9]*

USE_BUILDLINK2=		YES
USE_PKGINSTALL=		YES
d10 1
a10 64
GNU_CONFIGURE=		YES

BUILD_DEFS+=		USE_INET6

CRYPTO=			YES
PKG_SYSCONFSUBDIR=	ssh2

.include "../../mk/bsd.prefs.mk"

.if (${OPSYS:M*BSD} == "") && (${OPSYS} != "Linux")
LICENSE=		no-commercial-use
.endif

SSH_PID_DIR=		/var/run	# default directory for PID files
SSH_PID_DIR.SunOS=      /etc		# Solaris doesn't have a /var/run

.if defined(SSH_PID_DIR.${OPSYS})
SSH_PID_DIR=		${SSH_PID_DIR.${OPSYS}}
.endif

CONFIGURE_ARGS+=	--without-daemonpam --without-clientpam
CONFIGURE_ARGS+=	--without-ssh-agent1-compat
CONFIGURE_ARGS+=	--without-ssh1-compat
CONFIGURE_ARGS+=	--with-libwrap=${BUILDLINK_PREFIX.tcp-wrappers}
CONFIGURE_ARGS+=	--with-pid-dir=${SSH_PID_DIR}

# Setting FOREIGN_ETCDIR to PKG_SYSCONFBASE may seem stupid
# if PKG_SYSCONFDIR.${PKG_SYSCONFVAR} is set but it does no harm...
#
CONFIGURE_ARGS+=	--with-foreign-etcdir=${PKG_SYSCONFBASE}
CONFIGURE_ARGS+=	--with-etcdir=${PKG_SYSCONFDIR}

MAKE_ENV+=		PKGBASE=${PKGBASE}

RCD_SCRIPTS=		ssh2_secure_shell

EGDIR=			${PREFIX}/share/examples/${PKGBASE}
EGFILES=		ext_authorization_example.sh \
			kbdint_plugin_example.sh

CONFS=			sshd2_config ssh2_config ssh_dummy_shell.out
CONF_FILES=		# empty
.for FILE in ${CONFS}
CONF_FILES+=		${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
.endfor
FILES_SUBST=		SSH_PID_DIR=${SSH_PID_DIR}

OWN_DIRS=		${PKG_SYSCONFDIR}/knownhosts
OWN_DIRS+=		${PKG_SYSCONFDIR}/hostkeys

DOCSDIR=		${PREFIX}/share/doc/${PKGBASE}
DOCS=			CHANGES FAQ HOWTO.anonymous.sftp INSTALL LICENSE \
			NEWS README REGEX-SYNTAX SSH2.QUICKSTART \
			RFC.authorization_program_protocol \
			RFC.kbdint_plugin_protocol

post-install:
	${INSTALL_DATA_DIR} ${DOCSDIR}
.for FILE in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.for FILE in ${EGFILES}
	${INSTALL_DATA} ${WRKSRC}/${FILE} ${EGDIR}
.endfor
d12 1
a12 1
.include "../../security/tcp_wrappers/buildlink2.mk"
@


1.4
log
@Update to ssh version 3.2.2.

Changes since 3.2.0:
2002-10-15  Sami J. Lehtinen  <sjl@@ssh.com>

        * ssh-3.2.2 (on Unix this time).

        * sshd2: Fixed a security problem with setsid() use. Now we call
          it every time, if we need to run a new process on the user's
          privileges (command, subsystem or shell). Previously, it was only
          run if the user had requested a tty (for a shell, for example).

          Special thanks to Logan Gabriel for finding this problem.

2002-10-01  Sami J. Lehtinen  <sjl@@ssh.com>

        * configure: Previous: Check for /dev/pts was broken.

2002-08-08  Sami J. Lehtinen  <sjl@@ssh.com>

        * ssh-3.2.2 (only Windows client, no *nix changes).

2002-07-26  Sami J. Lehtinen  <sjl@@ssh.com>

        * ssh-3.2.1.

2002-07-24  Sami J. Lehtinen  <sjl@@ssh.com>

        * sshd2: Fixed a bug with setpcred() usage (on AIX), which caused
          that chroot() was not done.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2002/09/24 00:24:37 jlam Exp $
d16 1
a83 1
.include "../../mk/bsd.pkg.install.mk"
@


1.3
log
@buildlink1 -> buildlink2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2002/09/19 09:04:26 jlam Exp $
d4 1
a4 1
DISTNAME=	ssh-3.2.0
@


1.2
log
@Take advantage of the auto-generation and installation of rc.d scripts.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2002/08/06 00:48:09 seb Exp $
d15 2
a17 2
USE_BUILDLINK_ONLY=	YES
PKG_SYSCONFSUBDIR=	ssh2
d22 1
d40 1
a40 1
CONFIGURE_ARGS+=	--with-libwrap=${BUILDLINK_DIR}
d42 1
d45 1
d82 1
a82 2
.include "../../security/tcp_wrappers/buildlink.mk"
.include "../../mk/x11.buildlink.mk"
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
a69 4
post-build:
	@@${SED} ${FILES_SUBST_SED} ${FILESDIR}/ssh2_secure_shell.sh \
	   > ${WRKDIR}/ssh2_secure_shell

a77 1
	${INSTALL_SCRIPT} ${WRKDIR}/ssh2_secure_shell ${PREFIX}/etc/rc.d/ssh2_secure_shell
@


1.1.1.1
log
@Initial import of ssh version 2.3.0 into the NetBSD Packages Collection.

This package provides Secure Shell client and server for V.2 SSH protocol
from SSH Communications Security.

Based on PR 15358 from Greg A. Woods <woods@@planix.com>.
@
text
@@
