Initial Commit
- initial default booting image
This commit is contained in:
38
package/xl2tp/0001-Fix-compiling-with-C23.patch
Normal file
38
package/xl2tp/0001-Fix-compiling-with-C23.patch
Normal file
@@ -0,0 +1,38 @@
|
||||
From cabd67927d8ed565c36cdd0cbf9b9dbd71606009 Mon Sep 17 00:00:00 2001
|
||||
From: Jaco Kroon <jaco@uls.co.za>
|
||||
Date: Thu, 21 Nov 2024 00:12:29 +0200
|
||||
Subject: [PATCH] Fix compiling with C23.
|
||||
|
||||
https://bugs.gentoo.org/944070
|
||||
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
|
||||
|
||||
Upstream: https://github.com/xelerance/xl2tpd/commit/cabd67927d8ed565c36cdd0cbf9b9dbd71606009
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
xl2tpd.c | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/xl2tpd.c b/xl2tpd.c
|
||||
index 791d5a4..4bf15fd 100644
|
||||
--- a/xl2tpd.c
|
||||
+++ b/xl2tpd.c
|
||||
@@ -74,7 +74,7 @@ static int control_handle_lac_hangup(FILE* resf, char* bufp);
|
||||
static int control_handle_lac_disconnect(FILE* resf, char* bufp);
|
||||
static int control_handle_lac_add_modify(FILE* resf, char* bufp);
|
||||
static int control_handle_lac_remove(FILE* resf, char* bufp);
|
||||
-static int control_handle_lac_status();
|
||||
+static int control_handle_lac_status(FILE* resf, char* bufp);
|
||||
static int control_handle_lns_remove(FILE* resf, char* bufp);
|
||||
|
||||
static struct control_requests_handler control_handlers[] = {
|
||||
@@ -1549,7 +1549,8 @@ static int control_handle_lac_remove(FILE* resf, char* bufp){
|
||||
return 1;
|
||||
}
|
||||
|
||||
-static int control_handle_lac_status(){
|
||||
+static int control_handle_lac_status(FILE*, char*)
|
||||
+{
|
||||
show_status ();
|
||||
return 1;
|
||||
}
|
||||
12
package/xl2tp/Config.in
Normal file
12
package/xl2tp/Config.in
Normal file
@@ -0,0 +1,12 @@
|
||||
config BR2_PACKAGE_XL2TP
|
||||
bool "xl2tp"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_LIBPCAP
|
||||
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/
|
||||
3
package/xl2tp/xl2tp.hash
Normal file
3
package/xl2tp/xl2tp.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# locally computed
|
||||
sha256 a4270e00c65f8ef356cab350a0375fbd26a63870eedf0a7d07b2ff1f71b18995 xl2tp-1.3.19.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
|
||||
27
package/xl2tp/xl2tp.mk
Normal file
27
package/xl2tp/xl2tp.mk
Normal file
@@ -0,0 +1,27 @@
|
||||
################################################################################
|
||||
#
|
||||
# xl2tp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XL2TP_VERSION = 1.3.19
|
||||
XL2TP_SITE = $(call github,xelerance,xl2tpd,v$(XL2TP_VERSION))
|
||||
XL2TP_DEPENDENCIES = libpcap
|
||||
XL2TP_LICENSE = GPL-2.0
|
||||
XL2TP_LICENSE_FILES = LICENSE
|
||||
XL2TP_SELINUX_MODULES = l2tp
|
||||
|
||||
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
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
27
package/xl2tp/xl2tpd
Executable file
27
package/xl2tp/xl2tpd
Executable 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
|
||||
Reference in New Issue
Block a user