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"
|
2015-11-08 08:23:57 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libutil"
|
2017-05-23 00:13:15 +02:00
|
|
|
TERMUX_PKG_VERSION=2017.75
|
2017-06-14 00:02:08 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2016-08-14 13:21:37 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://matt.ucc.asn.au/dropbear/releases/dropbear-${TERMUX_PKG_VERSION}.tar.bz2
|
2017-05-23 00:13:15 +02:00
|
|
|
TERMUX_PKG_SHA256=6cbc1dcb1c9709d226dff669e5604172a18cf5dbf9a201474d5618ae4465098c
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-syslog --disable-utmp --disable-utmpx --disable-wtmp"
|
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"
|
2015-06-13 01:03:31 +02:00
|
|
|
TERMUX_PKG_EXTRA_MAKE_ARGS="MULTI=1"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC="yes"
|
|
|
|
|
|
|
|
termux_step_create_debscripts () {
|
|
|
|
echo "mkdir -p $TERMUX_PREFIX/etc/dropbear" >> postinst
|
|
|
|
echo "for a in rsa dss ecdsa; do" >> postinst
|
|
|
|
echo " KEYFILE=$TERMUX_PREFIX/etc/dropbear/dropbear_\${a}_host_key" >> postinst
|
|
|
|
echo " test ! -f \$KEYFILE && dropbearkey -t \$a -f \$KEYFILE" >> postinst
|
|
|
|
echo "done" >> postinst
|
|
|
|
echo "exit 0" >> postinst
|
|
|
|
chmod 0755 postinst
|
|
|
|
}
|