blob: f9c274cd99e3c2032dbe897e3ed5451b86898303 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dropbear
pkgver=2018.76
pkgrel=2
pkgdesc="small SSH 2 client/server designed for small memory environments"
url="http://matt.ucc.asn.au/dropbear/dropbear.html"
arch="all"
license="MIT"
depends=""
options="!check"
makedepends="zlib-dev linux-headers"
subpackages="$pkgname-doc
$pkgname-openrc
$pkgname-convert:_convert
$pkgname-dbclient:_dbclient
$pkgname-ssh:_ssh
$pkgname-scp:_scp"
source="http://matt.ucc.asn.au/dropbear/releases/${pkgname}-${pkgver}.tar.bz2
dropbear.initd
dropbear.confd
dropbear-0.53.1-static_build_fix.patch
dropbear-options_sftp-server_path.patch
CVE-2018-15599.patch
"
# secfixes:
# 2018.76-r2:
# - CVE-2018-15599
_progs="dropbear dropbearkey dbclient dropbearconvert scp"
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-wtmp \
--disable-lastlog
make PROGRAMS="$_progs"
}
package() {
make PROGRAMS="$_progs" DESTDIR="$pkgdir" \
-C "$builddir" install
install -D -m755 "$srcdir"/dropbear.initd \
"$pkgdir"/etc/init.d/dropbear
install -D -m644 "$srcdir"/dropbear.confd \
"$pkgdir"/etc/conf.d/dropbear
}
_convert() {
pkgdesc="$pkgname dropbearconvert command"
depends=""
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/dropbearconvert "$subpkgdir"/usr/bin/
}
_dbclient() {
pkgdesc="$pkgname dbclient command"
depends=""
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/dbclient "$subpkgdir"/usr/bin/
}
_scp() {
pkgdesc="$pkgname scp support"
depends="!openssh-client"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/scp "$subpkgdir"/usr/bin/
}
_ssh() {
pkgdesc="$pkgname ssh command (compatibility symlink for dbclient)"
depends="dropbear-dbclient !openssh-client"
mkdir -p "$subpkgdir"/usr/bin
ln -s /usr/bin/dbclient "$subpkgdir"/usr/bin/ssh
}
sha512sums="82323279f7e78c366ba1ea07ff242259132b2576122429f54326518dd6092aba8ae5de4a0b8a3cef7efc3507015741abe2ac23376c03b40b247527da7a88120e dropbear-2018.76.tar.bz2
9c55ab3d8b61955cde1ccc1b8acbd3d2ef123feb9489e92737304c35315d07b7f85fad8a12ac7b0ec2c1dcee3d76b8bc4aa18518f4ddd963917805db33e48826 dropbear.initd
83f2c1eaf7687917a4b2bae7d599d4378c4bd64f9126ba42fc5d235f2b3c9a474d1b3168d70ed64bb4101cc251d30bc9ae20604da9b5d819fcd635ee4d0ebb0f dropbear.confd
c9b0f28eb9653de21da4e8646fc27870a156112bce3d8a13baa6154ebf4baada3dee4f75bd5fdf5b6cd24a43fb80fb009e917d139d9e65d35118b082de0ebfbf dropbear-0.53.1-static_build_fix.patch
e11456ec3bc7e1265727c8921a6eb6151712a9a498c7768e2d4b7f9043256099457cebf29b2d47dd61eb260746d97f4b19e9429443bda1c3e441ea50ced79b48 dropbear-options_sftp-server_path.patch
f204c2ee5aea8c0962573c4c49479ac17e9f6a9ab9ce21060a252b449323be841c1e64460f0e191fc72c6e213ffe829544418715d120a8f6c40de7b6374428e0 CVE-2018-15599.patch"
|