aboutsummaryrefslogtreecommitdiffstats
path: root/main/dropbear/APKBUILD
blob: 65c698eff16bb00fa83d77948583f86e426c31c8 (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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dropbear
pkgver=0.52
pkgrel=3
pkgdesc="small SSH 2 client/server designed for small memory environments"
url="http://matt.ucc.asn.au/dropbear/dropbear.html"
license='MIT'
depends=
makedepends="zlib-dev"
source="http://matt.ucc.asn.au/dropbear/releases/${pkgname}-${pkgver}.tar.bz2
dropbear.initd
dropbear.confd"

build() {
        cd "$srcdir/$pkgname-$pkgver"

        ./configure --prefix=/usr \
        --disable-lastlog
        progs="dbclient dropbearkey dropbearconvert scp"
        make PROGRAMS="dropbear ${progs}" MULTI=1 || return 1
        install -Dm755 "$srcdir/$pkgname-$pkgver"/dropbearmulti "$pkgdir"/usr/bin/dropbearmulti || return 1
        cd "$pkgdir/usr/bin" || return 1
        for i in ${progs}; do
          msg "linking ${i##*/}"
          ln -s dropbearmulti $i || return 1
        done
        msg "linking dropbear"
        mkdir -p "$pkgdir"/usr/sbin || return 1
        cd "$pkgdir/usr/sbin" || return 1
        ln -s ../bin/dropbearmulti dropbear || return 1
        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
}

md5sums="a1fc7adf601bca53330a792a9c873439  dropbear-0.52.tar.bz2
d181e2234f34ae5b1e45f8ebf5f14e07  dropbear.initd
af73c487e2be37d65d0e8bf80489357e  dropbear.confd"