Skip to content

Commit aabec46

Browse files
committed
change -- let's just include all binaries and not as a multi binary; this is less brittle and matches our goal of being NOT brittle better
1 parent 89156a5 commit aabec46

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,11 @@ jobs:
7575
set -eu
7676
apk add --no-cache file >/dev/null 2>&1 || true
7777
echo "== file =="
78-
file /out/dropbearmulti || true
78+
file /out/dropbear || true
7979
echo "== ldd =="
80-
ldd /out/dropbearmulti || true
80+
ldd /out/dropbear || true
8181
echo "== execute =="
8282
/out/dropbear -h >/dev/null
83-
/out/dropbearkey -h >/dev/null
8483
'
8584
8685
- name: Upload artifact (tarballs)

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ Extracting one yields:
2020

2121
```
2222
dropbear-x86_64-linux-musl/
23-
dropbearmulti
24-
dropbear -> dropbearmulti
25-
dropbearkey -> dropbearmulti
23+
dropbear
24+
dropbearkey
25+
dropbearconvert
26+
dbclient
27+
scp
2628
```
2729

28-
`dropbearmulti` is a multi-call binary. Depending on `argv[0]`, it runs as
29-
either `dropbear` (the server) or `dropbearkey` (key generator).
30-
31-
To install, copy the three files somewhere on your `PATH`, e.g.:
30+
To install, copy the two files somewhere on your `PATH`, e.g.:
3231

3332
```sh
34-
sudo cp dropbearmulti dropbear dropbearkey /usr/local/bin/
33+
sudo cp dropbear* /usr/local/bin/
3534
```
3635

3736
## Basic Dropbear Tutorial
@@ -68,3 +67,4 @@ this repo. You can rerun the same process yourself to verify results.
6867
resource-constrained environments.
6968
* **Security:** As with any SSH server, configure carefully (authorized\_keys,
7069
permissions, etc.).
70+

build.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,17 @@ LDFLAGS="-static -no-pie" \
6060
--enable-bundled-libtom \
6161
--enable-static
6262

63-
echo "Building dropbearmulti"
64-
make -j "${JOBS}" PROGRAMS="dropbear dropbearkey" STATIC=1 MULTI=1
63+
echo "Building dropbear"
64+
make -j "${JOBS}" PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" STATIC=1
6565

6666
# --- Package ----------------------------------------------------------------
67-
[[ -x ./dropbearmulti ]] || { echo "Build failed: dropbearmulti missing"; exit 1; }
68-
strip ./dropbearmulti || true
67+
[[ -x ./dropbear ]] || { echo "Build failed: dropbear missing"; exit 1; }
68+
strip ./drop* dbclient scp || true
6969

7070
# Stage files (with symlinks) inside dropbear-${TARGET}/
7171
stage_dir="${builddir}/stage/dropbear-${TARGET}"
7272
mkdir -p "${stage_dir}"
73-
cp ./dropbearmulti "${stage_dir}/"
74-
( cd "${stage_dir}" && ln -sf dropbearmulti dropbear && ln -sf dropbearmulti dropbearkey )
73+
cp ./dropbear* dbclient scp "${stage_dir}/"
7574

7675
# Produce dropbear-${TARGET}.tar.xz in the original working dir
7776
out_tar="${workdir}/dropbear-${TARGET}.tar.xz"

0 commit comments

Comments
 (0)