opt/dropbear/Pkgfile

29 lines
896 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: Small and secure SSH2 server and client
# URL: http://matt.ucc.asn.au/dropbear/dropbear.html
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2019-03-13 16:11:11 +01:00
# Depends on: zlib linux-pam
2006-02-23 16:26:10 +01:00
name=dropbear
2019-03-27 18:54:19 +01:00
version=2019.78
release=1
2011-03-03 10:05:44 +01:00
source=(http://matt.ucc.asn.au/$name/releases/$name-$version.tar.bz2 \
dropbear.rc dropbear.pam)
2006-02-23 16:26:10 +01:00
build () {
cd $name-$version
2013-04-19 17:15:57 +02:00
2019-03-13 16:11:11 +01:00
sed '/pam_start/s/sshd/dropbear/' -i svr-authpam.c
2018-02-28 11:36:21 +01:00
echo '#define SFTPSERVER_PATH "/usr/lib/ssh/sftp-server"' > localoptions.h
2019-03-13 16:11:11 +01:00
echo '#define DROPBEAR_SVR_PASSWORD_AUTH 0' >> localoptions.h
echo '#define DROPBEAR_SVR_PAM_AUTH 1' >> localoptions.h
2019-03-13 16:11:11 +01:00
./configure --prefix=/usr --enable-pam
2006-02-23 16:26:10 +01:00
make
make DESTDIR=$PKG install
2019-03-13 16:11:11 +01:00
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 16:26:10 +01:00
}