pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/rp-l2tp Initial import of rp-l2tp-0.3 into the Net...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8f377a32401b
branches: trunk
changeset: 464983:8f377a32401b
user: agc <agc%pkgsrc.org@localhost>
date: Thu Dec 18 16:39:18 2003 +0000
description:
Initial import of rp-l2tp-0.3 into the NetBSD Packages Collection.
l2tpd is a user-space L2TP daemon. L2TP is the Layer Two Tunneling
Protocol described in RFC 2661. It allows you to tunnel PPP sessions
over a network or transport protocol (in this case, UDP.)
Part of the l2tp code is implemented in the l2tpd program, and part of
it is implemented as "handlers". A handler is a shared-object library
which is dynamically linked into l2tpd at run-time using the
"load-handler" configuration directive.
Although the handlers included with this package (sync-pppd and cmd)
are licensed under the GPL, as a special exception, you may write your
own handlers which link to code in this package and not release them
under the GPL. There may be other reasons why your handlers must
be released under the GPL (for example, they may link with other GPL'd
code), but in the absence of other reasons, you may keep your handlers
proprietary.
diffstat:
net/rp-l2tp/DESCR | 16 +++++++++++++++
net/rp-l2tp/MESSAGE | 15 ++++++++++++++
net/rp-l2tp/Makefile | 23 ++++++++++++++++++++++
net/rp-l2tp/PLIST | 10 +++++++++
net/rp-l2tp/distinfo | 11 ++++++++++
net/rp-l2tp/patches/patch-aa | 13 ++++++++++++
net/rp-l2tp/patches/patch-ab | 46 ++++++++++++++++++++++++++++++++++++++++++++
net/rp-l2tp/patches/patch-ac | 33 +++++++++++++++++++++++++++++++
net/rp-l2tp/patches/patch-ad | 17 ++++++++++++++++
net/rp-l2tp/patches/patch-ae | 13 ++++++++++++
net/rp-l2tp/patches/patch-af | 13 ++++++++++++
net/rp-l2tp/patches/patch-ag | 21 ++++++++++++++++++++
12 files changed, 231 insertions(+), 0 deletions(-)
diffs (279 lines):
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/DESCR Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,16 @@
+l2tpd is a user-space L2TP daemon. L2TP is the Layer Two Tunneling
+Protocol described in RFC 2661. It allows you to tunnel PPP sessions
+over a network or transport protocol (in this case, UDP.)
+
+Part of the l2tp code is implemented in the l2tpd program, and part of
+it is implemented as "handlers". A handler is a shared-object library
+which is dynamically linked into l2tpd at run-time using the
+"load-handler" configuration directive.
+
+Although the handlers included with this package (sync-pppd and cmd)
+are licensed under the GPL, as a special exception, you may write your
+own handlers which link to code in this package and not release them
+under the GPL. There may be other reasons why your handlers must
+be released under the GPL (for example, they may link with other GPL'd
+code), but in the absence of other reasons, you may keep your handlers
+proprietary.
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/MESSAGE Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,15 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+l2tpd needs to be configured to manage the tunnelling - it cannot
+reasonably be set up to use default settings. To configure rp-l2tpd
+this, please make sure the file
+
+ ${PKG_SYSCONFDIR}/l2tp.conf
+
+reflects your network and security settings. An example configuration
+file is provided as:
+
+ ${PREFIX}/share/examples/l2tp.conf
+
+===========================================================================
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/Makefile Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+#
+
+DISTNAME= rp-l2tp-0.3
+CATEGORIES= net security
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rp-l2tp/}
+
+MAINTAINER= tech-pkg%netbsd.org@localhost
+HOMEPAGE= http://sourceforge.net/projects/rp-l2tp/
+COMMENT= User-space implementation of layer 2 tunnelling protocol
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+USE_GMAKE= yes
+
+post-patch:
+ for f in l2tp.conf.5 l2tpd.8; do \
+ ${MV} ${WRKSRC}/man/$$f ${WRKSRC}/man/$$f.in && \
+ ${SED} -e 's|@SYSCONFDIR@|${PKG_SYSCONFDIR}|g' \
+ ${WRKSRC}/man/$$f.in > ${WRKSRC}/man/$$f; \
+ done
+
+.include "../../mk/bsd.pkg.mk"
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/PLIST Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+lib/l2tp/plugins/cmd.so
+lib/l2tp/plugins/sync-pppd.so
+man/man5/l2tp.conf.5
+man/man8/l2tpd.8
+sbin/l2tp-control
+sbin/l2tpd
+share/examples/l2tp.conf
+@dirrm lib/l2tp/plugins
+@dirrm lib/l2tp
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/distinfo Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+SHA1 (rp-l2tp-0.3.tar.gz) = 3f4f08a5271f0adf1dd90567851f1a8e223ecb72
+Size (rp-l2tp-0.3.tar.gz) = 191418 bytes
+SHA1 (patch-aa) = a351d8bcea431bc47a0a375c770d07e059103841
+SHA1 (patch-ab) = 9013297a1e6fede036894be04413feb0cc1bb803
+SHA1 (patch-ac) = 8225dd6f2290b6e66e04f0b1ce67be293d89783c
+SHA1 (patch-ad) = 943de75b5928bca92ec739106f3c5679189557c3
+SHA1 (patch-ae) = 62c6d5fb9ddd69467fbb6ed6b502add0ae646a29
+SHA1 (patch-af) = 3fa6c660ca06ddf3ea49e33e31506f714f7ef9b5
+SHA1 (patch-ag) = 5dc50f2ace17bb97717d628e9fdfe689443966c0
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/patches/patch-aa Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+--- peer.c 2003/12/17 22:51:14 1.1
++++ peer.c 2003/12/17 22:52:35
+@@ -20,6 +20,8 @@
+ #include <stddef.h>
+ #include <string.h>
+
++#include <sys/socket.h>
++
+ static hash_table all_peers;
+ static int peer_process_option(EventSelector *es,
+ char const *name,
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/patches/patch-ab Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,46 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+--- Makefile.in.orig 2002-09-30 21:33:55.000000000 +0100
++++ Makefile.in 2003-12-18 10:24:07.000000000 +0000
+@@ -26,11 +26,20 @@
+ install_dir=@INSTALL@ -d
+ sbindir=@sbindir@
+
++OPSYS= $(shell uname -s)
++
+ OBJS=auth.o debug.o dgram.o main.o md5.o network.o options.o peer.o session.o tunnel.o utils.o
+-EXTRA_LIBS=@LIBEVENT@/*.o -ldl
++
++ifeq (${OPSYS}, Linux)
++EXTRA_LIBS=-ldl
++DYNAMIC_FLAGS= -rdynamic
++endif
++
++ifeq (${OPSYS}, NetBSD)
++endif
+
+ SRCS=$(OBJS:.o=.c)
+-CFLAGS=-g -I.. -I@LIBEVENT@ -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(prefix)\"
++CFLAGS=-g -I.. -I@LIBEVENT@ -Wall -Wstrict-prototypes -ansi -pedantic -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" -DPREFIX=\"$(prefix)\" -DSYSCONFDIR=\""@sysconfdir@"\"
+
+ TARGETS=l2tpd libl2tp.a handlers
+
+@@ -43,7 +52,7 @@
+
+ l2tpd: libl2tp.a libevent/libevent.a
+ $(MAKE) -C handlers
+- @CC@ -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS)
++ @CC@ -o l2tpd $(DYNAMIC_FLAGS) $(OBJS) @LIBEVENT@/*.o $(EXTRA_LIBS)
+
+ libevent/libevent.a:
+ test -d libevent || ln -s ../libevent .
+@@ -82,8 +91,7 @@
+ install: all
+ -mkdir -p $(RPM_INSTALL_ROOT)$(sbindir)
+ $(install) -m 755 -s l2tpd $(RPM_INSTALL_ROOT)$(sbindir)
+- -mkdir -p $(RPM_INSTALL_ROOT)/etc/l2tp
+- $(install) -m 644 l2tp.conf $(RPM_INSTALL_ROOT)/etc/l2tp/l2tp.conf.example
++ $(install) -m 644 l2tp.conf $(RPM_INSTALL_ROOT)${PREFIX}/share/examples/l2tp.conf
+ -mkdir -p $(RPM_INSTALL_ROOT)$(mandir)/man8
+ -mkdir -p $(RPM_INSTALL_ROOT)$(mandir)/man5
+ $(install) -m 644 man/l2tpd.8 $(RPM_INSTALL_ROOT)$(mandir)/man8
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/patches/patch-ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/patches/patch-ac Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,33 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+--- handlers/pty.c 2003/12/18 09:47:10 1.1
++++ handlers/pty.c 2003/12/18 09:49:36
+@@ -21,7 +21,10 @@
+ #include <termios.h>
+ #include <fcntl.h>
+ #include <stdio.h>
+-#ifndef N_HDLC
++#ifdef __NetBSD__
++#include <util.h>
++#endif
++#if defined(__linux__) && !defined(N_HDLC)
+ #include <linux/termios.h>
+ #endif
+
+@@ -39,6 +42,9 @@
+ int
+ pty_get(int *mfp, int *sfp)
+ {
++#ifdef __NetBSD__
++ return openpty(mfp, sfp, NULL, NULL, NULL);
++#else
+ char pty_name[24];
+ struct termios tios;
+ int mfd, sfd;
+@@ -92,5 +98,6 @@
+ return -1;
+ }
+ return 0;
++#endif
+ }
+
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/patches/patch-ad
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/patches/patch-ad Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+*** handlers/cmd-control.c 2002/09/30 19:45:00 1.2
+--- handlers/cmd-control.c 2003/12/18 09:55:45
+***************
+*** 18,22 ****
+ #include <stdio.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+- #include <sys/types.h>
+ #include <sys/stat.h>
+--- 18,22 ----
+ #include <stdio.h>
++ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <sys/un.h>
+ #include <sys/stat.h>
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/patches/patch-ae
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/patches/patch-ae Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+--- main.c 2003/12/18 16:02:21 1.1
++++ main.c 2003/12/18 16:02:56
+@@ -68,7 +68,7 @@
+ l2tp_peer_init();
+ l2tp_debug_set_bitmask(debugmask);
+
+- if (l2tp_parse_config_file(es, "/etc/l2tp/l2tp.conf") < 0) {
++ if (l2tp_parse_config_file(es, SYSCONFDIR "/l2tp.conf") < 0) {
+ l2tp_die();
+ }
+
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/patches/patch-af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/patches/patch-af Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+--- man/l2tp.conf.5 2003/12/18 16:13:33 1.1
++++ man/l2tp.conf.5 2003/12/18 16:14:27
+@@ -10,7 +10,7 @@
+ \fBl2tpd\fR is a user-space L2TP daemon. L2TP is the Layer Two
+ Tunneling Protocol described in RFC 2661. It allows you to tunnel
+ PPP sessions over a network or transport protocol (in this case, UDP.)
+-The file \fB/etc/l2tp/l2tp.conf\fR is the configuration file for the
++The file \fB@SYSCONFDIR@/l2tp.conf\fR is the configuration file for the
+ daemon.
+
+ Each line in the file takes one of the following forms:
diff -r 5126c6a30781 -r 8f377a32401b net/rp-l2tp/patches/patch-ag
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/rp-l2tp/patches/patch-ag Thu Dec 18 16:39:18 2003 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ag,v 1.1.1.1 2003/12/18 16:39:18 agc Exp $
+
+--- man/l2tpd.8 2003/12/18 16:13:33 1.1
++++ man/l2tpd.8 2003/12/18 16:14:53
+@@ -47,14 +47,14 @@
+ fairly lightweight and efficient.
+
+ .SH L2TPD CONFIGURATION
+-On startup, \fBl2tpd\fR reads the configuration file \fB/etc/l2tp/l2tp.conf\fR.
++On startup, \fBl2tpd\fR reads the configuration file \fB@SYSCONFDIR@/l2tp.conf\fR.
+ This configuration file sets operating parameters, describes peers and loads
+ and configures handlers. See \fBl2tp.conf\fR(5) for configuration
+ file details.
+
+ .SH FILES
+ .TP
+-.B /etc/l2tp/l2tp.conf
++.B @SYSCONFDIR@/l2tp.conf
+ Main configuration file.
+ .TP
+ .B /var/run/l2tpctrl
Home |
Main Index |
Thread Index |
Old Index