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" |
8bf3f3f0 | 4 | TERMUX_PKG_VERSION=2015.68 |
09ede9b0 | 5 | TERMUX_PKG_BUILD_REVISION=1 |
0eb41b83 FF |
6 | # Using mirror since main site was down 2015-06-13: |
7 | # TERMUX_PKG_SRCURL=https://matt.ucc.asn.au/dropbear/releases/dropbear-${TERMUX_PKG_VERSION}.tar.bz2 | |
8 | TERMUX_PKG_SRCURL=https://dropbear.nl/mirror/dropbear-${TERMUX_PKG_VERSION}.tar.bz2 | |
59f0d218 FF |
9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-syslog --disable-utmp --disable-utmpx --disable-wtmp" |
10 | TERMUX_PKG_EXTRA_MAKE_ARGS="MULTI=1" | |
11 | TERMUX_PKG_BUILD_IN_SRC="yes" | |
12 | ||
13 | termux_step_create_debscripts () { | |
14 | echo "mkdir -p $TERMUX_PREFIX/etc/dropbear" >> postinst | |
15 | echo "for a in rsa dss ecdsa; do" >> postinst | |
16 | echo " KEYFILE=$TERMUX_PREFIX/etc/dropbear/dropbear_\${a}_host_key" >> postinst | |
17 | echo " test ! -f \$KEYFILE && dropbearkey -t \$a -f \$KEYFILE" >> postinst | |
18 | echo "done" >> postinst | |
19 | echo "exit 0" >> postinst | |
20 | chmod 0755 postinst | |
21 | } |