wok-stable diff ppp-pam/receipt @ rev 11797

ppp: build rp-pppoe.so
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 25 10:42:24 2012 +0100 (2012-02-25)
parents 7b13b3b4b836
children b3b80062dbe9
line diff
     1.1 --- a/ppp-pam/receipt	Sun May 08 09:40:48 2011 +0000
     1.2 +++ b/ppp-pam/receipt	Sat Feb 25 10:42:24 2012 +0100
     1.3 @@ -18,11 +18,23 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 +	cat >> include/linux/if_pppol2tp.h <<EOT
     1.8 +/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32
     1.9 + * bits. So we need a different sockaddr structure.
    1.10 + */
    1.11 +struct pppol2tpv3_addr {
    1.12 +	pid_t	pid;			/* pid that owns the fd. 0 => current */
    1.13 +	int	fd;			/* FD of UDP or IP socket to use */
    1.14 +	struct sockaddr_in addr;	/* IP address and port to send to */
    1.15 +	__u32 s_tunnel, s_session;	/* For matching incoming packets */
    1.16 +	__u32 d_tunnel, d_session;	/* For sending outgoing packets */
    1.17 +};
    1.18 +EOT
    1.19  	sed -i 's/#USE_PAM/USE_PAM/' pppd/Makefile.linux
    1.20  	./configure --prefix=/usr --mandir=/usr/share/man \
    1.21  	$CONFIGURE_ARGS &&
    1.22  	make &&
    1.23 -	make DESTDIR=$PWD/_pkg/usr install
    1.24 +	make DESTDIR=$DESTDIR/usr install
    1.25  }
    1.26  
    1.27  # Rules to gen a SliTaz package suitable for Tazpkg.