From 6881fbab77d3090a79fef791d2a15dd97f2af360 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 27 May 2020 10:38:35 +0300 Subject: dropbear: add new package at 2019.78 --- extra/dropbear/build | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 extra/dropbear/build (limited to 'extra/dropbear/build') 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" -- cgit v1.2.3