2021-02-23 16:14:05 +00:00
|
|
|
pkgname=dropbear
|
|
|
|
pkgver=2020.81
|
|
|
|
bad=gmake
|
|
|
|
ext=doc
|
|
|
|
|
|
|
|
fetch() {
|
2021-05-20 21:15:18 +00:00
|
|
|
curl "https://matt.ucc.asn.au/dropbear/releases/dropbear-$pkgver.tar.bz2" -o $pkgname-$pkgver.tar.bz2
|
2021-02-23 16:14:05 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.bz2
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--build=x86_64-unknown-linux-musl \
|
|
|
|
--host=x86_64-unknown-linux-musl
|
|
|
|
|
2021-05-26 07:41:41 +00:00
|
|
|
gmake PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
|
2021-02-23 16:14:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-05-26 07:41:41 +00:00
|
|
|
gmake install DESTDIR=$pkgdir PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
|
2021-02-23 16:14:05 +00:00
|
|
|
ln -sr $pkgdir/usr/sbin/dropbear $pkgdir/usr/sbin/sshd
|
|
|
|
ln -sr $pkgdir/usr/bin/dbclient $pkgdir/usr/bin/ssh
|
|
|
|
rm -r $pkgdir/usr/share
|
|
|
|
}
|
|
|
|
|
|
|
|
package_doc() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-05-26 07:41:41 +00:00
|
|
|
gmake install DESTDIR=$pkgdir PROGRAMS='dropbear dbclient dropbearkey dropbearconvert scp'
|
2021-02-23 16:14:05 +00:00
|
|
|
rm -r $pkgdir/usr/bin
|
|
|
|
rm -r $pkgdir/usr/sbin
|
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
# cat COPYING
|
|
|
|
}
|