CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Imported core-cross ports from 2.5
[crossrootfs.git] / dropbear / Pkgfile
CommitLineData
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
4# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
5# Depends on: zlib
6
7name=dropbear
8version=0.52
9release=3
10source=(http://matt.ucc.asn.au/$name/releases/$name-$version.tar.gz \
11 $name $name-$version.patch-scp_and_progressmeter)
12
13build () {
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}