# SliTaz package receipt. PACKAGE="ppp" VERSION="2.4.5" CATEGORY="network" SHORT_DESC="Implements the Point-to-Point Protocol (PPP)." MAINTAINER="pankso@slitaz.org" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://ppp.samba.org/" WGET_URL="ftp://ftp.samba.org/pub/ppp/$TARBALL" CONFIG_FILES="/etc/ppp" # Rules to configure and make the package. compile_rules() { cd $src if ! grep -qs pppol2tpv3_addr include/linux/if_pppol2tp.h ; then sed -i /#endif/d include/linux/if_pppol2tp.h cat >> include/linux/if_pppol2tp.h < current */ int fd; /* FD of UDP or IP socket to use */ struct sockaddr_in addr; /* IP address and port to send to */ __u32 s_tunnel, s_session; /* For matching incoming packets */ __u32 d_tunnel, d_session; /* For sending outgoing packets */ }; #endif EOT fi ./configure --prefix=/usr --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR/usr install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $_pkg/usr/sbin $fs/usr cp -a $_pkg/usr/lib $fs/usr # Config files. mkdir -p $fs/etc/ppp/scripts cp $stuff/README.scripts $fs/etc/ppp cp -a $src/etc.ppp/* $fs/etc/ppp # PPP scripts. cp -a $src/scripts/ppp-on $fs/etc/ppp/scripts cp -a $src/scripts/ppp-on-dialer $fs/etc/ppp/scripts sed -i 's:ppp/ppp-on-dialer:ppp/scripts/ppp-on-dialer:' $fs/etc/ppp/scripts/ppp-on cp -a $src/scripts/ppp-off $fs/etc/ppp/scripts cp -a $src/scripts/callback $fs/etc/ppp/scripts cp -a $src/scripts/redialer $fs/etc/ppp/scripts cat >> $fs/etc/ppp/ip-up < /etc/resolv.conf grep search /etc/ppp/resolv.prev >> /etc/resolv.conf cat /etc/ppp/resolv.conf >> /etc/resolv.conf chmod 644 /etc/resolv.conf else cp /etc/ppp/resolv.conf /etc chmod 644 /etc/resolv.conf fi fi EOT cat >> $fs/etc/ppp/ip-down <