Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (b24e642c17b70e89b7c3022d334abd37681daab9)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (b24e642c17b70e89b7c3022d334abd37681daab9)
  • Date: Tue, 21 May 2013 15:22:50 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 3 +++
net/xl2tpd/BUILD | 5 +++++
net/xl2tpd/CONFIGURE | 12 ++++++++++++
net/xl2tpd/DEPENDS | 3 +++
net/xl2tpd/DETAILS | 42
++++++++++++++++++++++++++++++++++++++++++
net/xl2tpd/HISTORY | 5 +++++
net/xl2tpd/INSTALL | 16 ++++++++++++++++
net/xl2tpd/PRE_BUILD | 6 ++++++
net/xl2tpd/init.d/xl2tpd | 17 +++++++++++++++++
net/xl2tpd/init.d/xl2tpd.conf | 3 +++
net/xl2tpd/kernel-if.patch.gz |binary
net/xl2tpd/xl2tpd.gpg |binary
12 files changed, 112 insertions(+)

New commits:
commit b24e642c17b70e89b7c3022d334abd37681daab9
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

xl2tpd: new spell, Layer 2 Tunnelling Protocol Daemon (RFC 2661)

diff --git a/ChangeLog b/ChangeLog
index 7de8e30..5fd0c7a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2013-05-22 Vlad Glagolev <stealth AT sourcemage.org>
+ * net/xl2tpd: new spell, Layer 2 Tunnelling Protocol Daemon (RFC 2661)
+
2013-05-21 Vlad Glagolev <stealth AT sourcemage.org>
* net/pppd-chldap: new spell, pppd LDAP plugin
* net/accel-ppp: new spell, high performance PPTP/L2TP/PPPoE server
for
diff --git a/net/xl2tpd/BUILD b/net/xl2tpd/BUILD
new file mode 100755
index 0000000..d13588c
--- /dev/null
+++ b/net/xl2tpd/BUILD
@@ -0,0 +1,5 @@
+if [ "$XL2TPD_KERNEL" == "y" ]; then
+ CFLAGS="-DUSE_KERNEL $CFLAGS"
+fi &&
+
+make
diff --git a/net/xl2tpd/CONFIGURE b/net/xl2tpd/CONFIGURE
new file mode 100755
index 0000000..8fc5b3c
--- /dev/null
+++ b/net/xl2tpd/CONFIGURE
@@ -0,0 +1,12 @@
+. "$GRIMOIRE/FUNCTIONS" &&
+
+if ! is_version_less $(get_kernel_version) 2.6.23; then
+ config_query XL2TPD_KERNEL "Use kernel mode operations?" y
+else
+ message "${MESSAGE_COLOR}Kernel version lower than 2.6.23 detected,"
+ message "forcing use of non-kernel mode operations...${DEFAULT_COLOR}" &&
+
+ persistent_add XL2TPD_KERNEL &&
+
+ XL2TPD_KERNEL=n
+fi
diff --git a/net/xl2tpd/DEPENDS b/net/xl2tpd/DEPENDS
new file mode 100755
index 0000000..299ea53
--- /dev/null
+++ b/net/xl2tpd/DEPENDS
@@ -0,0 +1,3 @@
+depends libpcap &&
+
+runtime_depends ppp
diff --git a/net/xl2tpd/DETAILS b/net/xl2tpd/DETAILS
new file mode 100755
index 0000000..892d5f9
--- /dev/null
+++ b/net/xl2tpd/DETAILS
@@ -0,0 +1,42 @@
+ SPELL=xl2tpd
+ VERSION=1.3.1
+ SOURCE=${SPELL}-${VERSION}.tar.gz
+ SOURCE2=${SOURCE}.asc
+ SOURCE_URL[0]=http://ftp.openswan.org/${SPELL}/${SOURCE}
+ SOURCE2_URL[0]=${SOURCE_URL}.asc
+ SOURCE_GPG=xl2tpd.gpg:$SOURCE2:UPSTREAM_KEY
+ SOURCE2_IGNORE=signature
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE=http://www.xelerance.com/services/software/xl2tpd/
+ ENTERED=20130522
+ DOCS="TODO CREDITS BUGS doc/README.* doc/rfc2661.txt $DOCS"
+ DOC_DIRS="examples"
+ LICENSE[0]=GPL
+ KEYWORDS="ppp l2tp"
+ SHORT="Layer 2 Tunnelling Protocol Daemon (RFC 2661)"
+cat << EOF
+xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661).
+
+L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user
+sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP
+servers. Another important application is Virtual Private Networks where the
+IPsec protocol is used to secure the L2TP connection (L2TP/IPsec, RFC 3193).
+The L2TP/IPsec protocol is mainly used by Windows and Mac OS X clients.
+On Linux, xl2tpd can be used in combination with IPsec implementations such
as
+Openswan.
+
+xl2tpd works by opening a pseudo-tty for communicating with pppd. It runs
+completely in userspace but supports kernel mode L2TP.
+
+xl2tpd supports IPsec SA Reference tracking to enable overlapping internal
+NAT'ed IP's by different clients (eg all clients connecting from their
linksys
+internal IP 192.168.1.101) as well as multiple clients behind the same NAT
+router.
+
+xl2tpd supports the pppol2tp kernel mode operations on 2.6.23 or higher,
+or via a patch in contrib for 2.4.x kernels. Note that kernel mode and
+IPsec SA Reference tracking do not yet work together.
+
+xl2tpd is based on the 0.69 L2TP by Jeff McAdams <jeffm AT iglou.com>
+It was de-facto maintained by Jacco de Leeuw <jacco2 AT dds.nl> in 2002 and
2003.
+EOF
diff --git a/net/xl2tpd/HISTORY b/net/xl2tpd/HISTORY
new file mode 100644
index 0000000..aa212a6
--- /dev/null
+++ b/net/xl2tpd/HISTORY
@@ -0,0 +1,5 @@
+2013-05-21 Vlad Glagolev <stealth AT sourcemage.org>
+ * DETAILS, DEPENDS, {PRE_,}BUILD, INSTALL, CONFIGURE, xl2tpd.gpg,
+ init.d/xl2tpd{,.conf}: spell created
+ * kernel-if.patch.gz: added patch from upstream 1.3.2rc2 which fixes
+ several bugs including connection via kernel mode operations
diff --git a/net/xl2tpd/INSTALL b/net/xl2tpd/INSTALL
new file mode 100755
index 0000000..4c0e45d
--- /dev/null
+++ b/net/xl2tpd/INSTALL
@@ -0,0 +1,16 @@
+make PREFIX="$INSTALL_ROOT/usr" install &&
+
+if [[ $INIT_INSTALLED ]]; then
+ install_config_file "$SPELL_DIRECTORY/init.d/xl2tpd.conf" \
+ "$INSTALL_ROOT/etc/sysconfig/xl2tpd"
+fi &&
+
+install -vm 755 -d "$INSTALL_ROOT/etc/xl2tpd" &&
+
+chmod 600 "$SOURCE_DIRECTORY/doc/l2tp-secrets.sample" &&
+
+install_config_file "$SOURCE_DIRECTORY/doc/l2tp-secrets.sample" \
+ "$INSTALL_ROOT/etc/xl2tpd/l2tp-secrets" &&
+
+install_config_file "$SOURCE_DIRECTORY/doc/l2tpd.conf.sample" \
+ "$INSTALL_ROOT/etc/xl2tpd/xl2tpd.conf"
diff --git a/net/xl2tpd/PRE_BUILD b/net/xl2tpd/PRE_BUILD
new file mode 100755
index 0000000..04470f3
--- /dev/null
+++ b/net/xl2tpd/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+
+sedit "s:-O2::" Makefile &&
+
+zcat "$SPELL_DIRECTORY/kernel-if.patch.gz" | patch -p1
diff --git a/net/xl2tpd/init.d/xl2tpd b/net/xl2tpd/init.d/xl2tpd
new file mode 100755
index 0000000..b4d7284
--- /dev/null
+++ b/net/xl2tpd/init.d/xl2tpd
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. /etc/sysconfig/xl2tpd
+
+PROGRAM=/usr/sbin/xl2tpd
+PIDFILE="/var/run/xl2tpd.pid"
+ARGS="$XL2TPD_ARGS"
+RUNLEVEL=3
+NEEDS="+network +local_fs"
+
+. /etc/init.d/smgl_init
+
+start() {
+ [ -d /var/run/xl2tpd ] || mkdir /var/run/xl2tpd
+
+ _start
+}
diff --git a/net/xl2tpd/init.d/xl2tpd.conf b/net/xl2tpd/init.d/xl2tpd.conf
new file mode 100644
index 0000000..02d2898
--- /dev/null
+++ b/net/xl2tpd/init.d/xl2tpd.conf
@@ -0,0 +1,3 @@
+# For the arguments and description see xl2tpd(8)
+
+XL2TPD_ARGS=""
diff --git a/net/xl2tpd/kernel-if.patch.gz b/net/xl2tpd/kernel-if.patch.gz
new file mode 100644
index 0000000..8fed8b9
Binary files /dev/null and b/net/xl2tpd/kernel-if.patch.gz differ
diff --git a/net/xl2tpd/xl2tpd.gpg b/net/xl2tpd/xl2tpd.gpg
new file mode 100644
index 0000000..62e7808
Binary files /dev/null and b/net/xl2tpd/xl2tpd.gpg differ



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (b24e642c17b70e89b7c3022d334abd37681daab9), Vlad Glagolev, 05/21/2013

Archive powered by MHonArc 2.6.24.

Top of Page