Thu Apr 25 14:55:04 2019 UTC ()
openssh: Add optional command line editing to "sftp"

Add new package option "editline" (enabled by default) which adds
command line editing and filename completion to the "sftp" client.

Bump the package revision because of this change.


(tron)
diff -r1.18952 -r1.18953 pkgsrc/doc/TODO
diff -r1.576 -r1.577 pkgsrc/mk/defaults/options.description
diff -r1.257 -r1.258 pkgsrc/security/openssh/Makefile
diff -r1.35 -r1.36 pkgsrc/security/openssh/options.mk

cvs diff -r1.18952 -r1.18953 pkgsrc/doc/TODO (expand / switch to context diff)
--- pkgsrc/doc/TODO 2019/04/23 09:52:00 1.18952
+++ pkgsrc/doc/TODO 2019/04/25 14:55:03 1.18953
@@ -1,4 +1,4 @@
-$NetBSD: TODO,v 1.18952 2019/04/23 09:52:00 wiz Exp $
+$NetBSD: TODO,v 1.18953 2019/04/25 14:55:03 tron Exp $
 
 Suggested new packages
 ======================
@@ -1041,7 +1041,6 @@
 	o opensc-0.19.0
 	o openslp-2.0.0
 	o opensmtpd-6.0.0
-	o openssh-7.9p1
 	o openssl-1.0.2q
 	o openvas-libraries-8.0.8
 	o opera-26

cvs diff -r1.576 -r1.577 pkgsrc/mk/defaults/options.description (expand / switch to context diff)
--- pkgsrc/mk/defaults/options.description 2019/04/25 13:08:31 1.576
+++ pkgsrc/mk/defaults/options.description 2019/04/25 14:55:04 1.577
@@ -159,6 +159,7 @@
 ecap			Enable eCAP support.
 ecl			Use Embeddable Common Lisp.
 ecore			Enable ecore library support.
+editline		Enable use of the NetBSD Editline library.
 eekboard		Use eekboard for virtual keyboard support.
 efence			Build with Electric Fence malloc() debugger support.
 efnet			Enable tweaks to support EFNet.

cvs diff -r1.257 -r1.258 pkgsrc/security/openssh/Makefile (expand / switch to context diff)
--- pkgsrc/security/openssh/Makefile 2019/01/18 20:13:36 1.257
+++ pkgsrc/security/openssh/Makefile 2019/04/25 14:55:04 1.258
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.257 2019/01/18 20:13:36 tnn Exp $
+# $NetBSD: Makefile,v 1.258 2019/04/25 14:55:04 tron Exp $
 
 DISTNAME=		openssh-7.9p1
 PKGNAME=		${DISTNAME:S/p1/.1/}
+PKGREVISION=		1
 CATEGORIES=		security
 MASTER_SITES=		${MASTER_SITE_OPENBSD:=OpenSSH/portable/}
 

cvs diff -r1.35 -r1.36 pkgsrc/security/openssh/options.mk (expand / switch to context diff)
--- pkgsrc/security/openssh/options.mk 2017/07/24 16:33:22 1.35
+++ pkgsrc/security/openssh/options.mk 2019/04/25 14:55:04 1.36
@@ -1,11 +1,11 @@
-# $NetBSD: options.mk,v 1.35 2017/07/24 16:33:22 he Exp $
+# $NetBSD: options.mk,v 1.36 2019/04/25 14:55:04 tron Exp $
 
-.include "../../mk/bsd.prefs.mk"
-
 PKG_OPTIONS_VAR=	PKG_OPTIONS.openssh
-PKG_SUPPORTED_OPTIONS=	kerberos openssl pam
-PKG_SUGGESTED_OPTIONS=	openssl
+PKG_SUPPORTED_OPTIONS=	editline kerberos openssl pam
+PKG_SUGGESTED_OPTIONS=	editline openssl
 
+.include "../../mk/bsd.prefs.mk"
+
 .if ${OPSYS} == "NetBSD"
 PKG_SUGGESTED_OPTIONS+=	pam
 .endif
@@ -43,4 +43,9 @@
 .  if ${OPSYS} == "Linux"
 PLIST.pam=	yes
 .  endif
+.endif
+
+.if !empty(PKG_OPTIONS:Meditline)
+.include "../../devel/editline/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-libedit=${BUILDLINK_PREFIX.editline}
 .endif