[Mod] First commit

This commit is contained in:
2022-10-31 22:18:58 +08:00
commit 1c8a3d9709
13090 changed files with 526733 additions and 0 deletions

12
package/xl2tp/Config.in Normal file
View 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
View File

@ -0,0 +1,3 @@
# locally computed
sha256 898d9b6a374c78dea5f20d80fd50fac13428ad746fefb16ff5f6bec449affe67 xl2tp-1.3.17.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE

27
package/xl2tp/xl2tp.mk Normal file
View File

@ -0,0 +1,27 @@
################################################################################
#
# xl2tp
#
################################################################################
XL2TP_VERSION = 1.3.17
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
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