Commit | Line | Data |
---|---|---|
59f0d218 FF |
1 | TERMUX_PKG_HOMEPAGE=https://matt.ucc.asn.au/dropbear/dropbear.html |
2 | TERMUX_PKG_DESCRIPTION="Small SSH server and client" | |
09ede9b0 | 3 | TERMUX_PKG_DEPENDS="libutil" |
ede53f27 | 4 | TERMUX_PKG_VERSION=2017.75 |
00796411 | 5 | TERMUX_PKG_REVISION=1 |
cc8e46c8 | 6 | TERMUX_PKG_SRCURL=https://matt.ucc.asn.au/dropbear/releases/dropbear-${TERMUX_PKG_VERSION}.tar.bz2 |
ede53f27 | 7 | TERMUX_PKG_SHA256=6cbc1dcb1c9709d226dff669e5604172a18cf5dbf9a201474d5618ae4465098c |
59f0d218 | 8 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-syslog --disable-utmp --disable-utmpx --disable-wtmp" |
bb27a0ec FF |
9 | # Avoid linking to libcrypt for server password authentication: |
10 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no" | |
59f0d218 FF |
11 | TERMUX_PKG_EXTRA_MAKE_ARGS="MULTI=1" |
12 | TERMUX_PKG_BUILD_IN_SRC="yes" | |
13 | ||
14 | termux_step_create_debscripts () { | |
15 | echo "mkdir -p $TERMUX_PREFIX/etc/dropbear" >> postinst | |
16 | echo "for a in rsa dss ecdsa; do" >> postinst | |
17 | echo " KEYFILE=$TERMUX_PREFIX/etc/dropbear/dropbear_\${a}_host_key" >> postinst | |
18 | echo " test ! -f \$KEYFILE && dropbearkey -t \$a -f \$KEYFILE" >> postinst | |
19 | echo "done" >> postinst | |
20 | echo "exit 0" >> postinst | |
21 | chmod 0755 postinst | |
22 | } |