summaryrefslogtreecommitdiff
path: root/dropbear
diff options
context:
space:
mode:
Diffstat (limited to 'dropbear')
-rw-r--r--dropbear/.footprint2
-rw-r--r--dropbear/.signature9
-rw-r--r--dropbear/Pkgfile15
-rw-r--r--dropbear/dropbear.pam14
-rw-r--r--dropbear/dropbear.rc (renamed from dropbear/dropbear)0
5 files changed, 31 insertions, 9 deletions
diff --git a/dropbear/.footprint b/dropbear/.footprint
index 09ceeab9b..7ac4ff205 100644
--- a/dropbear/.footprint
+++ b/dropbear/.footprint
@@ -1,5 +1,7 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/dropbear/
+drwxr-xr-x root/root etc/pam.d/
+-rw-r--r-- root/root etc/pam.d/dropbear
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/dropbear
drwxr-xr-x root/root usr/
diff --git a/dropbear/.signature b/dropbear/.signature
index f3d9fc376..269aba879 100644
--- a/dropbear/.signature
+++ b/dropbear/.signature
@@ -1,6 +1,7 @@
untrusted comment: verify with /etc/ports/opt.pub
-RWSE3ohX2g5d/UFSAAYfRZdO637GqjIFH3gPCKE+Xxf+9e8TJNn1SvBvT16UHUTt4ac7zEXKxdLWeNabfCsSrSJrFLbjXwD/VQU=
-SHA256 (Pkgfile) = 0804d40e772ba331ac449cece649241af377936b986ac0126321ef1acbd2a405
-SHA256 (.footprint) = 62bfe7191a20fcd5f6ec3511c951dee47aefdae734f7d616302e6bfc3a0c1923
+RWSE3ohX2g5d/bLPX+9pApnc7y0YVx0M6DKf9UlXOBGJI+KZ10sd2WXKvtcImr/QyMGt+yUZQosiEkgk8Plg3ls3aBvw4XxHjQU=
+SHA256 (Pkgfile) = 4d5b4c7880f87ec46f638736ead293b02f5fcdd8a7edc91318975998644570f2
+SHA256 (.footprint) = 5d47799d69d21b860be70eb9e767298617679bcee2140d245cbc74f4a2a4502e
SHA256 (dropbear-2019.78.tar.bz2) = 525965971272270995364a0eb01f35180d793182e63dd0b0c3eb0292291644a4
-SHA256 (dropbear) = def8d4ebda5759a3bc55055957235fa47f7e40216badf07830f487f05e7fbd42
+SHA256 (dropbear.rc) = def8d4ebda5759a3bc55055957235fa47f7e40216badf07830f487f05e7fbd42
+SHA256 (dropbear.pam) = 0c0aff342e586e64f2d2a814ef127a2748b223e746c3efccfccc91a5aadbce4a
diff --git a/dropbear/Pkgfile b/dropbear/Pkgfile
index 5d9a18e24..5504f2c43 100644
--- a/dropbear/Pkgfile
+++ b/dropbear/Pkgfile
@@ -1,23 +1,28 @@
# Description: Small and secure SSH2 server and client
# URL: http://matt.ucc.asn.au/dropbear/dropbear.html
# Maintainer: Juergen Daubert, jue at crux dot nu
-# Depends on: zlib
+# Depends on: zlib linux-pam
name=dropbear
version=2019.78
release=1
source=(http://matt.ucc.asn.au/$name/releases/$name-$version.tar.bz2 \
- $name)
+ dropbear.rc dropbear.pam)
build () {
cd $name-$version
+ sed '/pam_start/s/sshd/dropbear/' -i svr-authpam.c
+
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
- ./configure --prefix=/usr
+ ./configure --prefix=/usr --enable-pam
make
make DESTDIR=$PKG install
- install -d $PKG/etc/{rc.d,dropbear}/
- install -D -m 755 $SRC/dropbear $PKG/etc/rc.d/
+ 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
}
diff --git a/dropbear/dropbear.pam b/dropbear/dropbear.pam
new file mode 100644
index 000000000..a739be471
--- /dev/null
+++ b/dropbear/dropbear.pam
@@ -0,0 +1,14 @@
+#
+# /etc/pam.d/dropbear - dropbear service module configuration
+#
+
+auth include common-auth
+
+account required pam_nologin.so
+account include common-account
+
+password include common-password
+
+session include common-session
+session required pam_limits.so
+
diff --git a/dropbear/dropbear b/dropbear/dropbear.rc
index 20f6b2246..20f6b2246 100644
--- a/dropbear/dropbear
+++ b/dropbear/dropbear.rc

Generated by cgit