Browse Source

- dropbear: update build

master
vanhofen 5 years ago
parent
commit
9ea31c2c5e
  1. 12
      make/target-tools.mk
  2. 2
      skel-root/general/scripts/dropbear.init

12
make/target-tools.mk

@ -1063,23 +1063,23 @@ $(D)/dropbear: $(D)/zlib $(ARCHIVE)/$(DROPBEAR_SOURCE) | $(TARGET_DIR)
$(CONFIGURE) \ $(CONFIGURE) \
--prefix= \ --prefix= \
--mandir=$(remove-mandir) \ --mandir=$(remove-mandir) \
--disable-lastlog \
--disable-pututxline \ --disable-pututxline \
--disable-wtmp \ --disable-wtmp \
--disable-wtmpx \ --disable-wtmpx \
--disable-loginfunc \ --disable-loginfunc \
--disable-pam \ --disable-pam \
--disable-zlib \
--disable-harden \ --disable-harden \
--enable-bundled-libtom \ --enable-bundled-libtom \
; \ ; \
# Ensure that dropbear doesn't use crypt() when it's not available; \ # Ensure that dropbear doesn't use crypt() when it's not available; \
echo '#if !HAVE_CRYPT' >> localoptions.h; \ echo '#if !HAVE_CRYPT' >> localoptions.h; \
echo '#define DROPBEAR_SVR_PASSWORD_AUTH 0' >> localoptions.h; \ echo '#define DROPBEAR_SVR_PASSWORD_AUTH 0' >> localoptions.h; \
echo '#endif' >> localoptions.h; \ echo '#endif' >> localoptions.h; \
# disable SMALL_CODE define; \ # disable SMALL_CODE define; \
sed -i 's|^\(#define DROPBEAR_SMALL_CODE\).*|\1 0|' default_options.h; \ echo '#define DROPBEAR_SMALL_CODE 0' >> localoptions.h; \
# fix PATH define; \ # fix PATH define; \
sed -i 's|^\(#define DEFAULT_PATH\).*|\1 "/sbin:/bin:/var/bin"|' default_options.h; \ echo '#define DEFAULT_PATH "/sbin:/bin:/var/bin"' >> localoptions.h; \
# remove /usr prefix; \ # remove /usr prefix; \
sed -i 's|/usr/|/|g' default_options.h; \ sed -i 's|/usr/|/|g' default_options.h; \
$(MAKE) PROGRAMS="dropbear dbclient dropbearkey scp" SCPPROGRESS=1; \ $(MAKE) PROGRAMS="dropbear dbclient dropbearkey scp" SCPPROGRESS=1; \

2
skel-root/general/scripts/dropbear.init

@ -5,7 +5,7 @@
ETCDIR=/etc/dropbear ETCDIR=/etc/dropbear
genkeys() { genkeys() {
for keytype in dss rsa; do for keytype in dss rsa ecdsa; do
keyfile=$ETCDIR/dropbear_${keytype}_host_key keyfile=$ETCDIR/dropbear_${keytype}_host_key
test -e $keyfile && continue test -e $keyfile && continue
/bin/dropbearkey -t $keytype -f $keyfile /bin/dropbearkey -t $keytype -f $keyfile

Loading…
Cancel
Save