Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: Small and secure SSH2 server and client |
2 | # URL: http://matt.ucc.asn.au/dropbear/dropbear.html | |
3 | # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
6dca1d21 JB |
5 | # Depends on: zlib |
6 | ||
7 | name=dropbear | |
8 | version=0.52 | |
9 | release=3 | |
10 | source=(http://matt.ucc.asn.au/$name/releases/$name-$version.tar.gz \ | |
11 | $name $name-$version.patch-scp_and_progressmeter) | |
12 | ||
13 | build () { | |
14 | cd $name-$version | |
15 | patch -p1 -i $SRC/$name-$version.patch-scp_and_progressmeter | |
16 | sed -i 's|libexec|lib/ssh|; s|X11R6/bin|bin|' options.h | |
17 | ./configure --build=$CHOST \ | |
18 | --host=$CTARGET \ | |
19 | --prefix=/usr | |
20 | ||
21 | make PROGRAMS="dropbear dbclient scp dropbearkey dropbearconvert" SCPPROGRESS=1 | |
22 | make DESTDIR=$PKG install | |
23 | install -m 755 scp $PKG/usr/bin | |
24 | install -d $PKG/{etc/{rc.d,$name},usr/man/man{1,8}} | |
25 | install -m 644 dbclient.1 $PKG/usr/man/man1 | |
26 | install -m 644 dropbear{.8,key.8} $PKG/usr/man/man8 | |
27 | install -m 755 $SRC/$name $PKG/etc/rc.d | |
28 | ln -s dbclient $PKG/usr/bin/ssh | |
29 | } |