summaryrefslogtreecommitdiffstats
path: root/ppp
diff options
context:
space:
mode:
Diffstat (limited to 'ppp')
-rw-r--r--ppp/.footprint54
-rw-r--r--ppp/.md5sum3
-rw-r--r--ppp/.sha256sum3
-rw-r--r--ppp/Pkgfile25
-rw-r--r--ppp/Pkgfile.old21
-rw-r--r--ppp/ppp-2.4.5-pppol2tp.patch25
-rw-r--r--ppp/ppp-nofilter.patch12
7 files changed, 143 insertions, 0 deletions
diff --git a/ppp/.footprint b/ppp/.footprint
new file mode 100644
index 0000000..123c999
--- /dev/null
+++ b/ppp/.footprint
@@ -0,0 +1,54 @@
+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
+-rwxr-xr-x root/root usr/lib/pppd/2.4.5/winbind.so
+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/pppstats
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/chat.8.bz2
+-rw-r--r-- root/root usr/share/man/man8/pppd-radattr.8.bz2
+-rw-r--r-- root/root usr/share/man/man8/pppd-radius.8.bz2
+-rw-r--r-- root/root usr/share/man/man8/pppd.8.bz2
+-rw-r--r-- root/root usr/share/man/man8/pppdump.8.bz2
+-rw-r--r-- root/root usr/share/man/man8/pppstats.8.bz2
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/.sha256sum b/ppp/.sha256sum
new file mode 100644
index 0000000..9b497e5
--- /dev/null
+++ b/ppp/.sha256sum
@@ -0,0 +1,3 @@
+c0f647110dacfa889ad36edca7ff8852e6f3aa3a3ddee4791bd97f066a043d51 ppp-2.4.5-pppol2tp.patch
+43317afec9299f9920b96f840414c977f0385410202d48e56d2fdb8230003505 ppp-2.4.5.tar.gz
+ac6100526d256e341183aa6470515f85cfb6195277b801339c4f7930942132fa ppp-nofilter.patch
diff --git a/ppp/Pkgfile b/ppp/Pkgfile
new file mode 100644
index 0000000..7a46b18
--- /dev/null
+++ b/ppp/Pkgfile
@@ -0,0 +1,25 @@
+description="A daemon which implements the PPP protocol for internetworking over dialup lines."
+packager="CRUX System Team <core-ports AT crux DOT nu>"
+maintainer="Lukc <lukc AT upyum DOT com>"
+url="http://www.samba.org/ppp/"
+depends=(zlib openssl)
+
+name=ppp
+version=2.4.5
+release=2
+source=(
+ http://ppp.samba.org/ftp/$name/$name-$version.tar.gz
+ file://$name-nofilter.patch
+ file://$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=$prefix --sysconfdir=$sysconfdir;
+ 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