wok-6.x diff dropbear/receipt @ rev 12284

graphviz: try a fix (xorg-dev as bdep)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Apr 15 16:18:24 2012 +0200 (2012-04-15)
parents 3cfda88ee539
children fa1321eb3c4e
line diff
     1.1 --- a/dropbear/receipt	Tue Nov 08 19:18:40 2011 +0000
     1.2 +++ b/dropbear/receipt	Sun Apr 15 16:18:24 2012 +0200
     1.3 @@ -7,7 +7,7 @@
     1.4  MAINTAINER="pascal.bellard@slitaz.org"
     1.5  TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.6  DEPENDS="zlib"
     1.7 -BUILD_DEPENDS="zlib-dev"
     1.8 +BUILD_DEPENDS="zlib zlib-dev pam pam-dev"
     1.9  SUGGESTED="sftp-server"
    1.10  WEB_SITE="http://matt.ucc.asn.au/dropbear/dropbear.html"
    1.11  WGET_URL="http://matt.ucc.asn.au/dropbear/releases/$TARBALL"
    1.12 @@ -24,6 +24,7 @@
    1.13  	cd $src
    1.14  	sed -i  -e 's|/usr/.*/xauth|/usr/bin/xauth|' \
    1.15  		-e 's|/usr/.*/sftp-server|/usr/sbin/sftp-server|' \
    1.16 + 		-e 's|ENABLE_SVR_PAM_AUTH|ENABLE_SVR_PASSWORD_AUTH|' \
    1.17  		options.h
    1.18  	./configure --prefix=/usr --without-pam $CONFIGURE_ARGS &&
    1.19  	make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
    1.20 @@ -31,6 +32,13 @@
    1.21  	install -m 755 dropbearmulti $DESTDIR/usr/sbin/dropbear &&
    1.22  	chown root $DESTDIR/usr/sbin/dropbear &&
    1.23  	chgrp 0 $DESTDIR/usr/sbin/dropbear &&
    1.24 +	sed -i 's|ENABLE_SVR_PASSWORD_AUTH|ENABLE_SVR_PAM_AUTH|' \
    1.25 +		options.h
    1.26 +	./configure --prefix=/usr --enable-pam $CONFIGURE_ARGS &&
    1.27 +	make PROGRAMS="dropbear $DROPBEARS" MULTI=1 &&
    1.28 +	install -m 755 dropbearmulti $DESTDIR/usr/sbin/dropbear-pam &&
    1.29 +	chown root $DESTDIR/usr/sbin/dropbear-pam &&
    1.30 +	chgrp 0 $DESTDIR/usr/sbin/dropbear-pam &&
    1.31  	install -d -m 755 $DESTDIR/usr/bin &&
    1.32  	for i in $DROPBEARS ssh; do
    1.33  		ln -s ../sbin/dropbear $DESTDIR/usr/bin/$i
    1.34 @@ -43,6 +51,7 @@
    1.35  	mkdir -p $fs/usr
    1.36  	cp -a $_pkg/usr/bin $fs/usr
    1.37  	cp -a $_pkg/usr/sbin $fs/usr
    1.38 +	rm -f $fs/usr/sbin/dropbear-pam
    1.39  	# Config file and init script.
    1.40  	mkdir -p $fs/etc
    1.41  	cp -a $stuff/dropbear $fs/etc