wok-4.x view ppp/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 | e5ae411e1d8c |
children | b3b80062dbe9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="ppp"
4 VERSION="2.4.5"
5 CATEGORY="network"
6 SHORT_DESC="Implements the Point-to-Point Protocol (PPP)."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://ppp.samba.org/"
10 WGET_URL="ftp://ftp.samba.org/pub/ppp/$TARBALL"
11 CONFIG_FILES="/etc/ppp"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 cat >> include/linux/if_pppol2tp.h <<EOT
18 /* The L2TPv3 protocol changes tunnel and session ids from 16 to 32
19 * bits. So we need a different sockaddr structure.
20 */
21 struct pppol2tpv3_addr {
22 pid_t pid; /* pid that owns the fd. 0 => current */
23 int fd; /* FD of UDP or IP socket to use */
24 struct sockaddr_in addr; /* IP address and port to send to */
25 __u32 s_tunnel, s_session; /* For matching incoming packets */
26 __u32 d_tunnel, d_session; /* For sending outgoing packets */
27 };
28 EOT
29 ./configure --prefix=/usr --mandir=/usr/share/man \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR/usr install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $_pkg/usr/sbin $fs/usr
40 cp -a $_pkg/usr/lib $fs/usr
41 # Config files.
42 mkdir -p $fs/etc/ppp/scripts
43 cp $stuff/README.scripts $fs/etc/ppp
44 cp -a $src/etc.ppp/* $fs/etc/ppp
45 # PPP scripts.
46 cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts
47 cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts
49 cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts
50 cp -a $src/scripts/callback $fs/etc/ppp/scripts
51 cp -a $src/scripts/redialer $fs/etc/ppp/scripts
53 cp -a $src/scripts/ip-up.local.add $fs/etc/ppp/ip-up
54 cp -a $src/scripts/ip-down.local.add $fs/etc/ppp/ip-down
55 chmod +x $fs/etc/ppp/ip*
56 # insert #!/bin/sh on top line in ip* scripts
57 sed -i '1i\#!/bin/sh' $fs/etc/ppp/ip*
58 # add empty peers dir
59 mkdir -p $fs/etc/ppp/peers
60 sed -i 's:ppp/ppp-on-dialer:ppp/script/ppp-on-dialer:' $fs/etc/ppp/scripts/ppp-on
62 }