wok rev 2236

dropbear-pam: add /etc/pam.d/
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 14 10:09:37 2009 +0000 (2009-02-14)
parents 8f9353288f5b
children 242a22d7215f
files dropbear-pam/receipt dropbear-pam/stuff/pam.d/sshd
line diff
     1.1 --- a/dropbear-pam/receipt	Sat Feb 14 10:04:16 2009 +0000
     1.2 +++ b/dropbear-pam/receipt	Sat Feb 14 10:09:37 2009 +0000
     1.3 @@ -21,7 +21,10 @@
     1.4  	local DROPBEARS
     1.5  	DROPBEARS="dropbearkey dropbearconvert dbclient scp"
     1.6  	cd $src
     1.7 -	sed -i 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' options.h
     1.8 +	rm -rf _pkg
     1.9 +	sed -i  -e 's|/usr/X11R6/bin/xauth|/usr/bin/xauth|' \
    1.10 + 		-e 's|ENABLE_SVR_PASSWORD_AUTH|ENABLE_SVR_PAM_AUTH|' \
    1.11 +		options.h
    1.12  	./configure --prefix=/usr --enable-pam $CONFIGURE_ARGS &&
    1.13  	make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
    1.14  	install -d -m 755 $PWD/_pkg/usr/sbin &&
    1.15 @@ -46,6 +49,7 @@
    1.16  	mkdir -p $fs/etc
    1.17  	cp -a stuff/dropbear $fs/etc
    1.18  	cp -a stuff/init.d $fs/etc
    1.19 +	cp -a stuff/pam.d $fs/etc
    1.20  	touch   $fs/etc/dropbear/dropbear_dss_host_key \
    1.21  		$fs/etc/dropbear/dropbear_rsa_host_key
    1.22  	
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/dropbear-pam/stuff/pam.d/sshd	Sat Feb 14 10:09:37 2009 +0000
     2.3 @@ -0,0 +1,7 @@
     2.4 +#%PAM-1.0
     2.5 +# specify the PAM fallback behaviour
     2.6 +
     2.7 +auth	required	pam_unix.so
     2.8 +account	required	pam_unix.so
     2.9 +password	required	pam_unix.so md5
    2.10 +session	required	pam_unix.so