wok-6.x rev 11798
ppp: build rp-pppoe.so (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 25 10:55:20 2012 +0100 (2012-02-25) |
parents | 03063b2a437d |
children | 525975702575 |
files | ppp-pam/receipt ppp/receipt |
line diff
1.1 --- a/ppp-pam/receipt Sat Feb 25 10:42:24 2012 +0100 1.2 +++ b/ppp-pam/receipt Sat Feb 25 10:55:20 2012 +0100 1.3 @@ -18,7 +18,9 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + grep -qs pppol2tpv3_addr include/linux/if_pppol2tp.h || 1.8 cat >> include/linux/if_pppol2tp.h <<EOT 1.9 +#ifndef __LINUX_IF_PPPOL2TP_H 1.10 /* The L2TPv3 protocol changes tunnel and session ids from 16 to 32 1.11 * bits. So we need a different sockaddr structure. 1.12 */ 1.13 @@ -29,6 +31,7 @@ 1.14 __u32 s_tunnel, s_session; /* For matching incoming packets */ 1.15 __u32 d_tunnel, d_session; /* For sending outgoing packets */ 1.16 }; 1.17 +#endif 1.18 EOT 1.19 sed -i 's/#USE_PAM/USE_PAM/' pppd/Makefile.linux 1.20 ./configure --prefix=/usr --mandir=/usr/share/man \
2.1 --- a/ppp/receipt Sat Feb 25 10:42:24 2012 +0100 2.2 +++ b/ppp/receipt Sat Feb 25 10:55:20 2012 +0100 2.3 @@ -14,7 +14,9 @@ 2.4 compile_rules() 2.5 { 2.6 cd $src 2.7 + grep -qs pppol2tpv3_addr include/linux/if_pppol2tp.h || 2.8 cat >> include/linux/if_pppol2tp.h <<EOT 2.9 +#ifndef __LINUX_IF_PPPOL2TP_H 2.10 /* The L2TPv3 protocol changes tunnel and session ids from 16 to 32 2.11 * bits. So we need a different sockaddr structure. 2.12 */ 2.13 @@ -25,6 +27,7 @@ 2.14 __u32 s_tunnel, s_session; /* For matching incoming packets */ 2.15 __u32 d_tunnel, d_session; /* For sending outgoing packets */ 2.16 }; 2.17 +#endif 2.18 EOT 2.19 ./configure --prefix=/usr --mandir=/usr/share/man \ 2.20 $CONFIGURE_ARGS &&