aboutsummaryrefslogtreecommitdiff
path: root/extra
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
parent31977fd1b001f7321bb912fd21331d2748a1c381 (diff)
downloadrepository-6881fbab77d3090a79fef791d2a15dd97f2af360.tar.gz
dropbear: add new package at 2019.78
Diffstat (limited to 'extra')
-rwxr-xr-xextra/dropbear/build23
-rw-r--r--extra/dropbear/checksums2
-rw-r--r--extra/dropbear/depends1
-rwxr-xr-xextra/dropbear/files/run3
-rw-r--r--extra/dropbear/sources2
-rw-r--r--extra/dropbear/version1
6 files changed, 32 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"
diff --git a/extra/dropbear/checksums b/extra/dropbear/checksums
new file mode 100644
index 00000000..f2109a85
--- /dev/null
+++ b/extra/dropbear/checksums
@@ -0,0 +1,2 @@
+525965971272270995364a0eb01f35180d793182e63dd0b0c3eb0292291644a4 dropbear-2019.78.tar.bz2
+44462eb4da98a0fa312099e15ba925e20f4469f16a64a6ca37896149ee79cd90 run
diff --git a/extra/dropbear/depends b/extra/dropbear/depends
new file mode 100644
index 00000000..17a6d43d
--- /dev/null
+++ b/extra/dropbear/depends
@@ -0,0 +1 @@
+zlib make
diff --git a/extra/dropbear/files/run b/extra/dropbear/files/run
new file mode 100755
index 00000000..3ae7aef6
--- /dev/null
+++ b/extra/dropbear/files/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec dropbear -F
diff --git a/extra/dropbear/sources b/extra/dropbear/sources
new file mode 100644
index 00000000..523c38b2
--- /dev/null
+++ b/extra/dropbear/sources
@@ -0,0 +1,2 @@
+https://matt.ucc.asn.au/dropbear/releases/dropbear-2019.78.tar.bz2
+files/run
diff --git a/extra/dropbear/version b/extra/dropbear/version
new file mode 100644
index 00000000..a41059f8
--- /dev/null
+++ b/extra/dropbear/version
@@ -0,0 +1 @@
+2019.78 1