Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+16
View File
@@ -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.
+15
View File
@@ -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
===========================================================================
+31
View File
@@ -0,0 +1,31 @@
# $NetBSD: Makefile,v 1.12 2012/10/23 17:19:05 asau Exp $
#
DISTNAME= rp-l2tp-0.3
PKGREVISION= 1
CATEGORIES= net security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rp-l2tp/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/rp-l2tp/
COMMENT= User-space implementation of layer 2 tunnelling protocol
NOT_FOR_PLATFORM+= Interix-*-* # no userland protocol stack support
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
USE_TOOLS+= gmake
LDFLAGS+= ${EXPORT_SYMBOLS_LDFLAGS}
LDFLAGS.NetBSD+= -lutil
INSTALL_MAKE_FLAGS+= RPM_INSTALL_ROOT=${DESTDIR:Q}
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"
+8
View File
@@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:09:41 joerg 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
+13
View File
@@ -0,0 +1,13 @@
$NetBSD: distinfo,v 1.5 2008/03/11 09:16:38 rtr Exp $
SHA1 (rp-l2tp-0.3.tar.gz) = 3f4f08a5271f0adf1dd90567851f1a8e223ecb72
RMD160 (rp-l2tp-0.3.tar.gz) = 25ed4a68a01c08f3acee1ce01a90673a568db55f
Size (rp-l2tp-0.3.tar.gz) = 191418 bytes
SHA1 (patch-aa) = a351d8bcea431bc47a0a375c770d07e059103841
SHA1 (patch-ab) = 31b9b78bace8ab5c1717944e630f296b81cbbe11
SHA1 (patch-ac) = ed6cb031b458027f7df8a97a051a1f12bc6b5e00
SHA1 (patch-ad) = 943de75b5928bca92ec739106f3c5679189557c3
SHA1 (patch-ae) = 62c6d5fb9ddd69467fbb6ed6b502add0ae646a29
SHA1 (patch-af) = 3fa6c660ca06ddf3ea49e33e31506f714f7ef9b5
SHA1 (patch-ag) = 5dc50f2ace17bb97717d628e9fdfe689443966c0
SHA1 (patch-ah) = fcac0fb3c264d68df1f2dbbc0d548311abdaaa2c
+13
View File
@@ -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,
+47
View File
@@ -0,0 +1,47 @@
$NetBSD: patch-ab,v 1.3 2008/03/11 09:16:38 rtr Exp $
--- Makefile.in.orig 2002-10-01 06:33:55.000000000 +1000
+++ Makefile.in
@@ -26,11 +26,20 @@ install=@INSTALL@
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 @@ libl2tp.a: $(OBJS)
l2tpd: libl2tp.a libevent/libevent.a
$(MAKE) -C handlers
- @CC@ -o l2tpd -rdynamic $(OBJS) $(EXTRA_LIBS)
+ @CC@ $(LDFLAGS) -o l2tpd $(DYNAMIC_FLAGS) $(OBJS) @LIBEVENT@/*.o $(EXTRA_LIBS)
libevent/libevent.a:
test -d libevent || ln -s ../libevent .
@@ -82,8 +91,8 @@ distclean: clean
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
+ -mkdir -p $(RPM_INSTALL_ROOT)${PREFIX}/share/examples
+ $(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
+35
View File
@@ -0,0 +1,35 @@
$NetBSD: patch-ac,v 1.2 2006/05/12 09:41:16 joerg Exp $
--- handlers/pty.c.orig 2002-09-30 19:45:00.000000000 +0000
+++ handlers/pty.c
@@ -21,7 +21,12 @@ static char const RCSID[] =
#include <termios.h>
#include <fcntl.h>
#include <stdio.h>
-#ifndef N_HDLC
+#ifdef __NetBSD__
+#include <util.h>
+#elif defined(__DragonFly__) || defined(__FreeBSD__)
+#include <libutil.h>
+#endif
+#if defined(__linux__) && !defined(N_HDLC)
#include <linux/termios.h>
#endif
@@ -39,6 +44,9 @@ static char const RCSID[] =
int
pty_get(int *mfp, int *sfp)
{
+#if defined(__NetBSD__) || defined(__DragonFly__) || defined(__FreeBSD__)
+ return openpty(mfp, sfp, NULL, NULL, NULL);
+#else
char pty_name[24];
struct termios tios;
int mfd, sfd;
@@ -92,5 +100,6 @@ pty_get(int *mfp, int *sfp)
return -1;
}
return 0;
+#endif
}
+17
View File
@@ -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>
+13
View File
@@ -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();
}
+13
View File
@@ -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:
+21
View File
@@ -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
+17
View File
@@ -0,0 +1,17 @@
$NetBSD: patch-ah,v 1.2 2008/03/11 09:16:38 rtr Exp $
--- handlers/Makefile.in.orig 2008-03-10 15:31:14.000000000 +1100
+++ handlers/Makefile.in
@@ -28,10 +28,10 @@ cmd-control.o: cmd-control.c
gcc $(CFLAGS) -fPIC -c -o $@ $<
sync-pppd.so: pty.o sync-pppd.o
- gcc -shared -o $@ $^
+ gcc -shared $(LDFLAGS) -o $@ $^
cmd.so: cmd.o dstring.o
- gcc -shared -o $@ $^
+ gcc -shared $(LDFLAGS) -o $@ $^
clean:
rm -f *.so *.o *~