2006-02-23 15:26:10 +00:00
|
|
|
# Description: Small and secure SSH2 server and client
|
2021-05-22 18:25:50 +02:00
|
|
|
# URL: https://matt.ucc.asn.au/dropbear/dropbear.html
|
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
|
|
# Depends on: zlib linux-pam
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=dropbear
|
2022-11-15 12:34:24 +01:00
|
|
|
version=2022.83
|
2022-04-02 11:34:28 +02:00
|
|
|
release=1
|
2020-07-16 18:51:26 +02:00
|
|
|
source=(https://matt.ucc.asn.au/$name/releases/$name-$version.tar.bz2 \
|
2021-05-22 18:25:50 +02:00
|
|
|
dropbear.rc dropbear.pam)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2021-05-22 18:25:50 +02:00
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2013-04-19 17:15:57 +02:00
|
|
|
|
2021-05-22 18:25:50 +02:00
|
|
|
sed '/pam_start/s/sshd/dropbear/' -i svr-authpam.c
|
2013-10-04 20:04:21 +02:00
|
|
|
|
2021-05-22 18:25:50 +02:00
|
|
|
echo '#define SFTPSERVER_PATH "/usr/lib/ssh/sftp-server"' > localoptions.h
|
|
|
|
echo '#define DROPBEAR_SVR_PASSWORD_AUTH 0' >> localoptions.h
|
|
|
|
echo '#define DROPBEAR_SVR_PAM_AUTH 1' >> localoptions.h
|
2022-02-16 17:35:25 +01:00
|
|
|
echo '#define DROPBEAR_PIDFILE "/run/dropbear.pid"' >> localoptions.h
|
2013-10-04 20:04:21 +02:00
|
|
|
|
2021-05-22 18:25:50 +02:00
|
|
|
./configure --prefix=/usr --enable-pam
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
install -d $PKG/etc/{rc.d,pam.d,dropbear}
|
|
|
|
install -m 755 $SRC/dropbear.rc $PKG/etc/rc.d/dropbear
|
|
|
|
install -m 644 $SRC/dropbear.pam $PKG/etc/pam.d/dropbear
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|