-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4fc52b7
commit 9bd2e3d
Showing
9 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Ignore the install dir | ||
_install/ | ||
|
||
dropbear-DROPBEAR_2022.83/ | ||
*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
VERSION="2022.83" | ||
MAIN_URL=https://github.com/mkj/dropbear/archive/refs/tags/DROPBEAR_${VERSION}.tar.gz | ||
PACKAGE="DROPBEAR_${VERSION}" | ||
ARCHIVE="${PACKAGE}.tar.gz" | ||
BUILD_FOLDER="dropbear-DROPBEAR_${VERSION}" |
Submodule dropbear
deleted from
b8669b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,31 @@ | ||
#!/bin/bash | ||
|
||
CROSSLINK_BASE=${CROSSLINK_BASE:=/home/user/x-tools/arm-sonoff-linux-uclibcgnueabi} | ||
|
||
SCRIPT_DIR=$(cd `dirname $0` && pwd) | ||
cd $SCRIPT_DIR | ||
|
||
source config.dropbear | ||
|
||
rm -rf ./_install | ||
|
||
cd dropbear | ||
git reset --hard | ||
if [ ! -f "${ARCHIVE}" ]; then | ||
wget "${MAIN_URL}" | ||
fi | ||
|
||
tar xvf "${ARCHIVE}" | ||
|
||
cd "${BUILD_FOLDER}" | ||
|
||
autoconf; autoheader || exit 1 | ||
|
||
./configure \ | ||
./configure CC=arm-sonoff-linux-uclibcgnueabi-gcc \ | ||
--prefix=$SCRIPT_DIR/_install \ | ||
CFLAGS="-Os -I${CROSSLINK_BASE}/arm-sonoff-linux-uclibcgnueabi/sysroot/usr/include -L${CROSSLINK_BASE}/arm-sonoff-linux-uclibcgnueabi/sysroot/lib" \ | ||
--host=arm-sonoff-linux-uclibcgnueabi \ | ||
AR=arm-sonoff-linux-uclibcgnueabi-ar \ | ||
RANLIB=arm-sonoff-linux-uclibcgnueabi-ranlib \ | ||
--host=arm \ | ||
--disable-zlib \ | ||
--disable-harden \ | ||
--disable-syslog \ | ||
|| exit 1 | ||
|
||
cp ../localoptions.h ./ || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
#ifndef DROPBEAR_LOCALOPTIONS_H | ||
#define DROPBEAR_LOCALOPTIONS_H | ||
|
||
#define DSS_PRIV_FILENAME "/etc/dropbear/dropbear_dss_host_key" | ||
#define RSA_PRIV_FILENAME "/etc/dropbear/dropbear_rsa_host_key" | ||
#define ECDSA_PRIV_FILENAME "/etc/dropbear/dropbear_ecdsa_host_key" | ||
#define ED25519_PRIV_FILENAME "/etc/dropbear/dropbear_ed25519_host_key" | ||
#define DSS_PRIV_FILENAME "/tmp/sd/yi-hack/etc/dropbear/dropbear_dss_host_key" | ||
#define RSA_PRIV_FILENAME "/tmp/sd/yi-hack/etc/dropbear/dropbear_rsa_host_key" | ||
#define ECDSA_PRIV_FILENAME "/tmp/sd/yi-hack/etc/dropbear/dropbear_ecdsa_host_key" | ||
#define ED25519_PRIV_FILENAME "/tmp/sd/yi-hack/etc/dropbear/dropbear_ed25519_host_key" | ||
|
||
#define DROPBEAR_PATH_SSH_PROGRAM "/mnt/mmc/sonoff-hack/bin/dbclient" | ||
#define DROPBEAR_PATH_SSH_PROGRAM "/tmp/sd/yi-hack/bin/dbclient" | ||
|
||
#define DEFAULT_PATH "/usr/bin:/bin:/gm/bin:/gm/tools:/mnt/mmc/sonoff-hack/bin:/mnt/mmc/sonoff-hack/usr/bin" | ||
#define DEFAULT_ROOT_PATH "/usr/bin:/usr/sbin:/bin:/sbin:/gm/bin:/gm/tools:/mnt/mmc/sonoff-hack/bin:/mnt/mmc/sonoff-hack/sbin:/mnt/mmc/sonoff-hack/usr/bin:/mnt/mmc/sonoff-hack/usr/sbin" | ||
|
||
#define SFTPSERVER_PATH "/mnt/mmc/sonoff-hack/usr/libexec/sftp-server" | ||
#define DEFAULT_PATH "/usr/bin:/usr/sbin:/bin:/sbin:/gm/bin:/gm/tools:/tmp/sd/yi-hack/bin:/tmp/sd/yi-hack/sbin:/tmp/sd/yi-hack/usr/bin:/tmp/sd/yi-hack/usr/sbin" | ||
#define DEFAULT_ROOT_PATH "/usr/bin:/usr/sbin:/bin:/sbin:/gm/bin:/gm/tools:/tmp/sd/yi-hack/bin:/tmp/sd/yi-hack/sbin:/tmp/sd/yi-hack/usr/bin:/tmp/sd/yi-hack/usr/sbin" | ||
|
||
#define SFTPSERVER_PATH "/tmp/sd/yi-hack/usr/libexec/sftp-server" | ||
|
||
#endif /* DROPBEAR_LOCALOPTIONS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters