diff options
author | Lukc <lukc@upyum.com> | 2010-12-11 19:15:23 +0100 |
---|---|---|
committer | Lukc <lukc@upyum.com> | 2010-12-11 19:15:35 +0100 |
commit | 6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch) | |
tree | b5e6da6d95b9a1235d82032b509b80483a886ff5 /ppp | |
download | base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2 base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip |
Engagement initial.
Diffstat (limited to 'ppp')
-rw-r--r-- | ppp/.footprint | 55 | ||||
-rw-r--r-- | ppp/.md5sum | 3 | ||||
-rw-r--r-- | ppp/Pkgfile | 21 | ||||
-rw-r--r-- | ppp/Pkgfile.old | 21 | ||||
-rw-r--r-- | ppp/ppp-2.4.5-pppol2tp.patch | 25 | ||||
-rw-r--r-- | ppp/ppp-nofilter.patch | 12 |
6 files changed, 137 insertions, 0 deletions
diff --git a/ppp/.footprint b/ppp/.footprint new file mode 100644 index 0000000..bbeca65 --- /dev/null +++ b/ppp/.footprint @@ -0,0 +1,55 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/ppp/ +-rw------- root/root etc/ppp/chap-secrets +-rw-r--r-- root/root etc/ppp/options +-rw------- root/root etc/ppp/pap-secrets +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/pppd/ +-rw-r--r-- root/root usr/include/pppd/ccp.h +-rw-r--r-- root/root usr/include/pppd/chap-new.h +-rw-r--r-- root/root usr/include/pppd/chap_ms.h +-rw-r--r-- root/root usr/include/pppd/eap.h +-rw-r--r-- root/root usr/include/pppd/ecp.h +-rw-r--r-- root/root usr/include/pppd/fsm.h +-rw-r--r-- root/root usr/include/pppd/ipcp.h +-rw-r--r-- root/root usr/include/pppd/ipxcp.h +-rw-r--r-- root/root usr/include/pppd/lcp.h +-rw-r--r-- root/root usr/include/pppd/magic.h +-rw-r--r-- root/root usr/include/pppd/md4.h +-rw-r--r-- root/root usr/include/pppd/md5.h +-rw-r--r-- root/root usr/include/pppd/patchlevel.h +-rw-r--r-- root/root usr/include/pppd/pathnames.h +-rw-r--r-- root/root usr/include/pppd/pppcrypt.h +-rw-r--r-- root/root usr/include/pppd/pppd.h +-rw-r--r-- root/root usr/include/pppd/session.h +-rw-r--r-- root/root usr/include/pppd/sha1.h +-rw-r--r-- root/root usr/include/pppd/spinlock.h +-rw-r--r-- root/root usr/include/pppd/tdb.h +-rw-r--r-- root/root usr/include/pppd/upap.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/pppd/ +drwxr-xr-x root/root usr/lib/pppd/2.4.5/ +-rwxr-xr-x root/root usr/lib/pppd/2.4.5/minconn.so +-rwxr-xr-x root/root usr/lib/pppd/2.4.5/passprompt.so +-rwxr-xr-x root/root usr/lib/pppd/2.4.5/passwordfd.so +-rwsr-x--- root/root usr/lib/pppd/2.4.5/pppoatm.so +-rwxr-xr-x root/root usr/lib/pppd/2.4.5/radattr.so +-rwxr-xr-x root/root usr/lib/pppd/2.4.5/radius.so +-rwxr-xr-x root/root usr/lib/pppd/2.4.5/radrealms.so +-rwsr-x--- root/root usr/lib/pppd/2.4.5/rp-pppoe.so +-rwxr-xr-x root/root usr/lib/pppd/2.4.5/winbind.so +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/chat.8.gz +-rw-r--r-- root/root usr/man/man8/pppd-radattr.8.gz +-rw-r--r-- root/root usr/man/man8/pppd-radius.8.gz +-rw-r--r-- root/root usr/man/man8/pppd.8.gz +-rw-r--r-- root/root usr/man/man8/pppdump.8.gz +-rw-r--r-- root/root usr/man/man8/pppstats.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/chat +-rwxr-xr-x root/root usr/sbin/pppd +-rwxr-xr-x root/root usr/sbin/pppdump +-rwxr-xr-x root/root usr/sbin/pppoe-discovery +-rwxr-xr-x root/root usr/sbin/pppstats diff --git a/ppp/.md5sum b/ppp/.md5sum new file mode 100644 index 0000000..b307a7f --- /dev/null +++ b/ppp/.md5sum @@ -0,0 +1,3 @@ +2176942344ec44bc42390e1a4b73317c ppp-2.4.5-pppol2tp.patch +4621bc56167b6953ec4071043fe0ec57 ppp-2.4.5.tar.gz +24867da3561a2ba62f555ac717af77cb ppp-nofilter.patch diff --git a/ppp/Pkgfile b/ppp/Pkgfile new file mode 100644 index 0000000..38f1eb2 --- /dev/null +++ b/ppp/Pkgfile @@ -0,0 +1,21 @@ +description="A daemon which implements the PPP protocol for internetworking over dialup lines" +packager="" +maintainer="CRUX System Team, core-ports at crux dot nu" +url="http://www.samba.org/ppp/" +depends=(zlib openssl) + +name=ppp +version=2.4.5 +release=2 +source=(http://ppp.samba.org/ftp/ppp/ppp-2.4.5.tar.gz ppp-nofilter.patch ppp-2.4.5-pppol2tp.patch) +build () +{ + cd $name-$version; + patch -p1 -i $SRC/$name-nofilter.patch; + patch -p1 -i $SRC/$name-$version-pppol2tp.patch; + ./configure --prefix=/usr --sysconfdir=/etc; + make; + make -j1 INSTROOT=$PKG install install-etcppp; + mv $PKG/usr/{share/man,man} && rm -r $PKG/usr/share; + chmod +w -R $PKG +} diff --git a/ppp/Pkgfile.old b/ppp/Pkgfile.old new file mode 100644 index 0000000..c9e0a35 --- /dev/null +++ b/ppp/Pkgfile.old @@ -0,0 +1,21 @@ +# Description: A daemon which implements the PPP protocol for internetworking over dialup lines +# URL: http://www.samba.org/ppp/ +# Maintainer: CRUX System Team, core-ports at crux dot nu +# Depends on: zlib, openssl + +name=ppp +version=2.4.5 +release=2 +source=(http://ppp.samba.org/ftp/ppp/$name-$version.tar.gz \ + $name-nofilter.patch $name-$version-pppol2tp.patch) + +build () { + cd $name-$version + patch -p1 -i $SRC/$name-nofilter.patch + patch -p1 -i $SRC/$name-$version-pppol2tp.patch + ./configure --prefix=/usr --sysconfdir=/etc + make + make -j1 INSTROOT=$PKG install install-etcppp + mv $PKG/usr/{share/man,man} && rm -r $PKG/usr/share + chmod +w -R $PKG +} diff --git a/ppp/ppp-2.4.5-pppol2tp.patch b/ppp/ppp-2.4.5-pppol2tp.patch new file mode 100644 index 0000000..b683acf --- /dev/null +++ b/ppp/ppp-2.4.5-pppol2tp.patch @@ -0,0 +1,25 @@ +# https://bugzilla.redhat.com/show_bug.cgi?id=617625 + +--- ppp-2.4.5/include/linux/if_pppol2tp.h 2009-11-16 22:26:07.000000000 +0000 ++++ ppp-2.4.5/include/linux/if_pppol2tp.h 2010-07-16 22:35:22.000000000 +0100 +@@ -32,6 +32,20 @@ + __u16 d_tunnel, d_session; /* For sending outgoing packets */ + }; + ++/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32 ++ * bits. So we need a different sockaddr structure. ++ */ ++struct pppol2tpv3_addr { ++ pid_t pid; /* pid that owns the fd. ++ * 0 => 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 */ ++}; ++ + /* Socket options: + * DEBUG - bitmask of debug message categories + * SENDSEQ - 0 => don't send packets with sequence numbers diff --git a/ppp/ppp-nofilter.patch b/ppp/ppp-nofilter.patch new file mode 100644 index 0000000..fb68a9a --- /dev/null +++ b/ppp/ppp-nofilter.patch @@ -0,0 +1,12 @@ +diff -ru ppp-2.4.3/pppd/Makefile.linux ppp-2.4.3-new/pppd/Makefile.linux +--- ppp-2.4.3/pppd/Makefile.linux 2004-11-13 13:02:22.000000000 +0100 ++++ ppp-2.4.3-new/pppd/Makefile.linux 2004-12-12 00:05:13.582252968 +0100 +@@ -48,7 +48,7 @@ + # Uncomment the next line to include support for PPP packet filtering. + # This requires that the libpcap library and headers be installed + # and that the kernel driver support PPP packet filtering. +-FILTER=y ++#FILTER=y + + # Uncomment the next line to enable multilink PPP (enabled by default) + # Linux distributions: Please leave multilink ENABLED in your builds |