aboutsummaryrefslogtreecommitdiff
path: root/extra/dropbear/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-05-27 10:38:35 +0300
committerCem Keylan <cem@ckyln.com>2020-05-27 10:38:35 +0300
commit6881fbab77d3090a79fef791d2a15dd97f2af360 (patch)
treee66cd2a38de4394ae830c4065241febc4f92bfa5 /extra/dropbear/build
parent31977fd1b001f7321bb912fd21331d2748a1c381 (diff)
downloadrepository-6881fbab77d3090a79fef791d2a15dd97f2af360.tar.gz
dropbear: add new package at 2019.78
Diffstat (limited to 'extra/dropbear/build')
-rwxr-xr-xextra/dropbear/build23
1 files changed, 23 insertions, 0 deletions
diff --git a/extra/dropbear/build b/extra/dropbear/build
new file mode 100755
index 00000000..eb926ca3
--- /dev/null
+++ b/extra/dropbear/build
@@ -0,0 +1,23 @@
+#!/bin/sh -e
+
+kinstall() {
+ mkdir -p "${3%/*}"; cp "$2" "$3"
+ chmod "$1" "$3"
+}
+
+export LDFLAGS="$LDFLAGS -static"
+
+./configure \
+ --prefix=/usr \
+ --sbindir=/usr/bin \
+ --enable-static
+
+make
+make DESTDIR="$1" install
+
+ln -s dbclient "$1/usr/bin/ssh"
+
+# Install user services
+kinstall 755 run "$1/etc/sv/dropbear/run"
+kinstall 755 run "$1/etc/sysmgr/dropbear"
+ln -sf /run/runit/supervise.dropbear "$1/etc/sv/dropbear/supervise"