wok 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 c6a1b92559ce
children b3b80062dbe9
files ppp-pam/receipt ppp/receipt
line diff
     1.1 --- a/ppp-pam/receipt	Fri Feb 24 19:11:29 2012 -0500
     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.
     2.1 --- a/ppp/receipt	Fri Feb 24 19:11:29 2012 -0500
     2.2 +++ b/ppp/receipt	Sat Feb 25 10:42:24 2012 +0100
     2.3 @@ -14,10 +14,22 @@
     2.4  compile_rules()
     2.5  {
     2.6  	cd $src
     2.7 +	cat >> include/linux/if_pppol2tp.h <<EOT
     2.8 +/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32
     2.9 + * bits. So we need a different sockaddr structure.
    2.10 + */
    2.11 +struct pppol2tpv3_addr {
    2.12 +	pid_t	pid;			/* pid that owns the fd. 0 => current */
    2.13 +	int	fd;			/* FD of UDP or IP socket to use */
    2.14 +	struct sockaddr_in addr;	/* IP address and port to send to */
    2.15 +	__u32 s_tunnel, s_session;	/* For matching incoming packets */
    2.16 +	__u32 d_tunnel, d_session;	/* For sending outgoing packets */
    2.17 +};
    2.18 +EOT
    2.19  	./configure --prefix=/usr --mandir=/usr/share/man \
    2.20  	$CONFIGURE_ARGS &&
    2.21  	make &&
    2.22 -	make DESTDIR=$PWD/_pkg/usr install
    2.23 +	make DESTDIR=$DESTDIR/usr install
    2.24  }
    2.25  
    2.26  # Rules to gen a SliTaz package suitable for Tazpkg.