2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://matt.ucc.asn.au/dropbear/dropbear.html
|
|
|
|
TERMUX_PKG_DESCRIPTION="Small SSH server and client"
|
2019-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="BSD"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-11-04 21:13:02 +01:00
|
|
|
TERMUX_PKG_VERSION=2020.81
|
2022-04-18 12:53:34 +02:00
|
|
|
TERMUX_PKG_REVISION=3
|
2016-08-14 13:21:37 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://matt.ucc.asn.au/dropbear/releases/dropbear-${TERMUX_PKG_VERSION}.tar.bz2
|
2020-11-04 21:13:02 +01:00
|
|
|
TERMUX_PKG_SHA256=48235d10b37775dbda59341ac0c4b239b82ad6318c31568b985730c788aac53b
|
2019-07-29 17:09:12 +02:00
|
|
|
TERMUX_PKG_DEPENDS="termux-auth, zlib"
|
2022-04-18 12:53:34 +02:00
|
|
|
TERMUX_PKG_SUGGESTS="openssh-sftp-server"
|
2018-11-23 02:20:40 +01:00
|
|
|
TERMUX_PKG_CONFLICTS="openssh"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2018-10-21 14:20:48 +02:00
|
|
|
|
2019-07-29 17:45:22 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-syslog --disable-utmp --disable-utmpx --disable-wtmp --disable-static"
|
2016-05-04 14:54:30 +02:00
|
|
|
# Avoid linking to libcrypt for server password authentication:
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no"
|
2018-10-21 14:20:51 +02:00
|
|
|
# build a multi-call binary & enable progress info in 'scp'
|
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="MULTI=1 SCPPROGRESS=1"
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2018-10-21 14:20:48 +02:00
|
|
|
termux_step_pre_configure() {
|
2020-11-04 21:13:02 +01:00
|
|
|
export LIBS="-ltermux-auth"
|
2018-10-21 14:20:48 +02:00
|
|
|
}
|
|
|
|
|
2018-06-21 10:26:25 +02:00
|
|
|
termux_step_post_make_install() {
|
2020-11-04 21:13:02 +01:00
|
|
|
ln -sf "dropbearmulti" "${TERMUX_PREFIX}/bin/ssh"
|
2018-06-21 10:26:25 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_create_debscripts() {
|
2020-11-04 21:13:02 +01:00
|
|
|
{
|
2019-02-12 09:23:21 +01:00
|
|
|
echo "#!$TERMUX_PREFIX/bin/sh"
|
|
|
|
echo "mkdir -p $TERMUX_PREFIX/etc/dropbear"
|
|
|
|
echo "for a in rsa dss ecdsa; do"
|
2020-11-04 21:13:02 +01:00
|
|
|
echo " KEYFILE=$TERMUX_PREFIX/etc/dropbear/dropbear_\${a}_host_key"
|
|
|
|
echo " test ! -f \$KEYFILE && dropbearkey -t \$a -f \$KEYFILE"
|
2019-02-12 09:23:21 +01:00
|
|
|
echo "done"
|
|
|
|
echo "exit 0"
|
2020-11-04 21:13:02 +01:00
|
|
|
} > postinst
|
|
|
|
chmod 0755 postinst
|
2015-06-13 01:03:31 +02:00
|
|
|
}
|