import dropbear, ok landry@

Dropbear is a relatively small SSH server and client, often found
in small environments such as routers and wireless access points.
This commit is contained in:
sthen 2016-04-06 22:03:15 +00:00
parent 0a0b4f65a8
commit 8fb77bdb39
5 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# $OpenBSD: Makefile,v 1.1.1.1 2016/04/06 22:03:15 sthen Exp $
COMMENT= small SSH server and client
DISTNAME= dropbear-2016.73
EXTRACT_SUFX= .tar.bz2
CATEGORIES= security net
HOMEPAGE= https://matt.ucc.asn.au/dropbear/dropbear.html
# unrestrictive, mostly MIT-like, see LICENSE
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c util z
MASTER_SITES= https://matt.ucc.asn.au/dropbear/releases/
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
#NO_TEST= Yes
post-configure:
${SUBST_CMD} ${WRKSRC}/options.h
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (dropbear-2016.73.tar.bz2) = XGGk9psJO2iGKc02W+OHAUhf9jz7I2Qtq3oFrSUK79c=
SIZE (dropbear-2016.73.tar.bz2) = 1621584

View File

@ -0,0 +1,56 @@
$OpenBSD: patch-options_h,v 1.1.1.1 2016/04/06 22:03:15 sthen Exp $
--- options.h.orig Fri Mar 18 14:44:43 2016
+++ options.h Wed Apr 6 21:47:42 2016
@@ -21,13 +21,13 @@
/* Default hostkey paths - these can be specified on the command line */
#ifndef DSS_PRIV_FILENAME
-#define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key"
+#define DSS_PRIV_FILENAME "${SYSCONFDIR}/dropbear/dropbear_dss_host_key"
#endif
#ifndef RSA_PRIV_FILENAME
-#define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key"
+#define RSA_PRIV_FILENAME "${SYSCONFDIR}/dropbear/dropbear_rsa_host_key"
#endif
#ifndef ECDSA_PRIV_FILENAME
-#define ECDSA_PRIV_FILENAME "/etc/dropbear/dropbear_ecdsa_host_key"
+#define ECDSA_PRIV_FILENAME "${SYSCONFDIR}/dropbear/dropbear_ecdsa_host_key"
#endif
/* Set NON_INETD_MODE if you require daemon functionality (ie Dropbear listens
@@ -52,7 +52,7 @@
several kB in binary size however will make the symmetrical ciphers and hashes
slower, perhaps by 50%. Recommended for small systems that aren't doing
much traffic. */
-#define DROPBEAR_SMALL_CODE
+// #define DROPBEAR_SMALL_CODE
/* Enable X11 Forwarding - server only */
#define ENABLE_X11FWD
@@ -293,7 +293,7 @@ Homedir is prepended unless path begins with / */
/* The command to invoke for xauth when using X11 forwarding.
* "-q" for quiet */
#ifndef XAUTH_COMMAND
-#define XAUTH_COMMAND "/usr/bin/xauth -q"
+#define XAUTH_COMMAND "${X11BASE}/bin/xauth -q"
#endif
/* if you want to enable running an sftp server (such as the one included with
@@ -305,7 +305,7 @@ Homedir is prepended unless path begins with / */
/* This is used by the scp binary when used as a client binary. If you're
* not using the Dropbear client, you'll need to change it */
-#define DROPBEAR_PATH_SSH_PROGRAM "/usr/bin/dbclient"
+#define DROPBEAR_PATH_SSH_PROGRAM "${TRUEPREFIX}/bin/dbclient"
/* Whether to log commands executed by a client. This only logs the
* (single) command sent to the server, not what a user did in a
@@ -347,7 +347,7 @@ be overridden at runtime with -I. 0 disables idle time
#define DEFAULT_IDLE_TIMEOUT 0
/* The default path. This will often get replaced by the shell */
-#define DEFAULT_PATH "/usr/bin:/bin"
+#define DEFAULT_PATH "/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin"
/* Some other defines (that mostly should be left alone) are defined
* in sysoptions.h */

View File

@ -0,0 +1,2 @@
Dropbear is a relatively small SSH server and client, often found
in small environments such as routers and wireless access points.

View File

@ -0,0 +1,13 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/04/06 22:03:15 sthen Exp $
@extra ${SYSCONFDIR}/dropbear/dropbear_dss_host_key
@extra ${SYSCONFDIR}/dropbear/dropbear_rsa_host_key
@extra ${SYSCONFDIR}/dropbear/dropbear_ecdsa_host_key
@bin bin/dbclient
@bin bin/dropbearconvert
@bin bin/dropbearkey
@man man/man1/dbclient.1
@man man/man1/dropbearconvert.1
@man man/man1/dropbearkey.1
@man man/man8/dropbear.8
@bin sbin/dropbear
@sample ${SYSCONFDIR}/dropbear/