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" |
bb27a0ec | 4 | TERMUX_PKG_VERSION=2016.73 |
688f6133 FF |
5 | # Both main site and mirror is sporadically down, switching to fedora site: |
6 | # TERMUX_PKG_SRCURL=https://matt.ucc.asn.au/dropbear/releases/dropbear-${TERMUX_PKG_VERSION}.tar.bz2 | |
31d77226 | 7 | # TERMUX_PKG_SRCURL=https://dropbear.nl/mirror/dropbear-${TERMUX_PKG_VERSION}.tar.bz2 |
688f6133 | 8 | TERMUX_PKG_SRCURL=http://pkgs.fedoraproject.org/lookaside/pkgs/dropbear/dropbear-2015.71.tar.bz2/md5/2ccc0a2f3e37ca221db12c5af6a88137/dropbear-2015.71.tar.bz2 |
59f0d218 | 9 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-syslog --disable-utmp --disable-utmpx --disable-wtmp" |
bb27a0ec FF |
10 | # Avoid linking to libcrypt for server password authentication: |
11 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" ac_cv_lib_crypt_crypt=no" | |
59f0d218 FF |
12 | TERMUX_PKG_EXTRA_MAKE_ARGS="MULTI=1" |
13 | TERMUX_PKG_BUILD_IN_SRC="yes" | |
14 | ||
15 | termux_step_create_debscripts () { | |
16 | echo "mkdir -p $TERMUX_PREFIX/etc/dropbear" >> postinst | |
17 | echo "for a in rsa dss ecdsa; do" >> postinst | |
18 | echo " KEYFILE=$TERMUX_PREFIX/etc/dropbear/dropbear_\${a}_host_key" >> postinst | |
19 | echo " test ! -f \$KEYFILE && dropbearkey -t \$a -f \$KEYFILE" >> postinst | |
20 | echo "done" >> postinst | |
21 | echo "exit 0" >> postinst | |
22 | chmod 0755 postinst | |
23 | } |