update buildroot to 2017.02.11
This commit is contained in:
17
bsp/buildroot-2017.02.11/package/xl2tp/0001-legacy.patch
Normal file
17
bsp/buildroot-2017.02.11/package/xl2tp/0001-legacy.patch
Normal 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_ */
|
||||
13
bsp/buildroot-2017.02.11/package/xl2tp/Config.in
Normal file
13
bsp/buildroot-2017.02.11/package/xl2tp/Config.in
Normal 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/
|
||||
2
bsp/buildroot-2017.02.11/package/xl2tp/xl2tp.hash
Normal file
2
bsp/buildroot-2017.02.11/package/xl2tp/xl2tp.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# locally computed
|
||||
sha256 1164b574e93a44c2a2e76c0c68d8d60437bd884a6c964d9c68be1556278e3d2d xl2tp-v1.3.8.tar.gz
|
||||
26
bsp/buildroot-2017.02.11/package/xl2tp/xl2tp.mk
Normal file
26
bsp/buildroot-2017.02.11/package/xl2tp/xl2tp.mk
Normal file
@@ -0,0 +1,26 @@
|
||||
################################################################################
|
||||
#
|
||||
# xl2tp
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XL2TP_VERSION = v1.3.8
|
||||
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
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) PREFIX=/usr -C $(@D) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
27
bsp/buildroot-2017.02.11/package/xl2tp/xl2tpd
Executable file
27
bsp/buildroot-2017.02.11/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