Move all to deprecated folder.

This commit is contained in:
2016-11-16 21:57:57 +01:00
parent 01738a7684
commit 05de7d6c04
9777 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
Replace SUSV3-specific functions index, bcopy, bzero and bcmp by their
POSIX variants.
--- l2tpd-0.70-pre20031121.oorig/osport.h 2004-07-08 22:47:52.000000000 +0200
+++ l2tpd-0.70-pre20031121/osport.h 2006-12-28 15:32:50.000000000 +0100
@@ -37,4 +37,11 @@
#endif /* defined(SOLARIS) */
+#if defined __UCLIBC__ && !defined UCLIBC_SUSV3_LEGACY_MACROS
+# define index(x, y) strchr(x, y)
+# define bcopy(S1, S2, LEN) ((void)memmove(S2, S1, LEN))
+# define bzero(S1, LEN) ((void)memset(S1, 0, LEN))
+# define bcmp(S1,S2,LEN) ((memcmp(S2, S1, LEN)==0)?0:1)
+#endif /* defined __UCLIBC__ && !defined UCLIBC_SUSV3_LEGACY_MACROS */
+
#endif /* _OSPORT_H_ */

View File

@@ -0,0 +1,19 @@
Fix musl build
Downloaded from
http://git.alpinelinux.org/cgit/aports/tree/main/xl2tpd/xl2tpd-compile.patch
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
diff -u --recursive src.orig/xl2tpd-1.3.6/xl2tpd.c src/xl2tpd-1.3.6/xl2tpd.c
--- xl2tpd-1.3.6.orig/xl2tpd.c 2014-01-15 21:58:37.000000000 -0100
+++ xl2tpd-1.3.6/xl2tpd.c 2014-06-21 07:22:21.195278618 -0200
@@ -33,8 +33,6 @@
#if (__GLIBC__ < 2)
# if defined(FREEBSD) || defined(OPENBSD)
# include <sys/signal.h>
-# elif defined(LINUX)
-# include <bsd/signal.h>
# elif defined(SOLARIS)
# include <signal.h>
# endif

View File

@@ -0,0 +1,13 @@
config BR2_PACKAGE_XL2TP
bool "xl2tp"
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBPCAP
select BR2_PACKAGE_OPENSSL
help
Layer 2 Tunnelling Protocol (RFC2661).
xl2tpd is an open source implementation of the L2TP tunneling
protocol. xl2tpd is forked from l2tpd and is maintained by
Xelerance Corporation.
http://www.xelerance.com/software/xl2tpd/

View File

@@ -0,0 +1,26 @@
################################################################################
#
# xl2tp
#
################################################################################
XL2TP_VERSION = v1.3.6
XL2TP_SITE = $(call github,xelerance,xl2tpd,$(XL2TP_VERSION))
XL2TP_DEPENDENCIES = libpcap openssl
XL2TP_LICENSE = GPLv2
XL2TP_LICENSE_FILES = LICENSE
ifeq ($(BR2_STATIC_LIBS),y)
XL2TP_LDLIBS = LDLIBS="`$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs`"
endif
define XL2TP_BUILD_CMDS
$(SED) 's/ -O2 //' $(@D)/Makefile
$(TARGET_CONFIGURE_OPTS) $(MAKE) $(XL2TP_LDLIBS) -C $(@D)
endef
define XL2TP_INSTALL_TARGET_CMDS
$(MAKE) DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D) install
endef
$(eval $(generic-package))

View File

@@ -0,0 +1,27 @@
#!/bin/sh
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/sbin/xl2tpd
PIDFILE=/var/run/xl2tpd.pid
test -f $DAEMON || exit 0
case "$1" in
start)
start-stop-daemon -S -p $PIDFILE -x $DAEMON -- -D &
;;
stop)
start-stop-daemon -K -p $PIDFILE -x $DAEMON
;;
restart|force-reload)
start-stop-daemon -K -p $PIDFILE -x $DAEMON
sleep 1
start-stop-daemon -S -p $PIDFILE -x $DAEMON
;;
*)
echo "Usage: /etc/init.d/xl2tdp {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0