blob: 2829344d7e28ac07af75e377df759928c3f5955a (
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
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dropbear
pkgver=2015.71
pkgrel=0
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=""
depends_dev=""
makedepends="zlib-dev linux-headers"
subpackages="$pkgname-doc $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"
_builddir="$srcdir"/$pkgname-$pkgver
_progs="dropbear dbclient dropbearkey dropbearconvert scp"
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make PROGRAMS="$_progs" MULTI=1 || return 1
}
package() {
cd "$_builddir"
make MULTI=1 DESTDIR="$pkgdir" install || return 1
mkdir "$pkgdir"/usr/sbin/
for i in $_progs; do
case $i in
dropbear) ln -s ../bin/dropbearmulti "$pkgdir"/usr/sbin/$i;;
*) ln -s dropbearmulti "$pkgdir"/usr/bin/$i;;
esac
done
install -D -m755 "$srcdir"/dropbear.initd \
"$pkgdir"/etc/init.d/dropbear || return 1
install -D -m644 "$srcdir"/dropbear.confd \
"$pkgdir"/etc/conf.d/dropbear || return 1
}
_scp() {
pkgdesc="Dropbear scp support"
depends="dropbear !openssh-client"
arch="noarch"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/scp "$subpkgdir"/usr/bin/
}
md5sums="2ccc0a2f3e37ca221db12c5af6a88137 dropbear-2015.71.tar.bz2
4299b86af9f2903f19477538e22ece30 dropbear.initd
af73c487e2be37d65d0e8bf80489357e dropbear.confd
d33de2027d5dc851762b65b276f1ac83 dropbear-0.53.1-static_build_fix.patch
7646c7b5367de26b0ed96e5674b63350 dropbear-options_sftp-server_path.patch"
sha256sums="376214169c0e187ee9f48ae1a99b3f835016ad5b98ede4bfd1cf581deba783af dropbear-2015.71.tar.bz2
563a7f31e081f47418a45102b470d6754448ce421c28a48f0fdcf703046d5aa7 dropbear.initd
e891255a49d408eb11514662faa4d724a1df27cc2ee90268507dbd2573b67334 dropbear.confd
c3bfdde97dc6306c8472d4b58fef874759a52d181eab1ef40363fec849a5d5d7 dropbear-0.53.1-static_build_fix.patch
9d38a349cbe22b97a784eda19118e1e175093cfa30033047be5bc295a970aa81 dropbear-options_sftp-server_path.patch"
sha512sums="d9f5c5fdb2e845a79bb598fb3ba0b1e131a5d2b8f9acbf8c5d7aef1c381105bbe59d98c85d1c482d94fcc359cf64c8b4210458bad32c442c2cfbf6d6f8811b51 dropbear-2015.71.tar.bz2
9c55ab3d8b61955cde1ccc1b8acbd3d2ef123feb9489e92737304c35315d07b7f85fad8a12ac7b0ec2c1dcee3d76b8bc4aa18518f4ddd963917805db33e48826 dropbear.initd
83f2c1eaf7687917a4b2bae7d599d4378c4bd64f9126ba42fc5d235f2b3c9a474d1b3168d70ed64bb4101cc251d30bc9ae20604da9b5d819fcd635ee4d0ebb0f dropbear.confd
c9b0f28eb9653de21da4e8646fc27870a156112bce3d8a13baa6154ebf4baada3dee4f75bd5fdf5b6cd24a43fb80fb009e917d139d9e65d35118b082de0ebfbf dropbear-0.53.1-static_build_fix.patch
7fed3e2566f56f0445df185437afaddf7a029df0e4d5f265c1e97a89ce4a8d61b1b4aaae8ecaf25d94251fa9d14bb5b01b4cf7afa1a52289a4f8c7d042029d3c dropbear-options_sftp-server_path.patch"
|