Update buidlroot to version 2016.08.1
This commit is contained in:
24
bsp/buildroot/package/dante/0001-fix-sparc-compile.patch
Normal file
24
bsp/buildroot/package/dante/0001-fix-sparc-compile.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
Signal handling for sparc is broken, fix it.
|
||||
|
||||
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
|
||||
|
||||
--- dante-1.4.1.orig/lib/tostring.c 2014-08-21 18:21:50.000000000 +0200
|
||||
+++ dante-1.4.1/lib/tostring.c 2016-07-10 10:08:39.785662622 +0200
|
||||
@@ -1526,7 +1526,7 @@ signal2string(sig)
|
||||
return "SIGKILL";
|
||||
#endif /* SIGKILL */
|
||||
|
||||
-#if (defined SIGLOST) && (!defined SIGABRT || SIGLOST != SIGABRT)
|
||||
+#if (defined SIGLOST) && (!defined SIGABRT || SIGLOST != SIGABRT || SIGLOST != SIGPWR)
|
||||
case SIGLOST:
|
||||
return "SIGLOST";
|
||||
#endif /* SIGLOST */
|
||||
@@ -1551,7 +1551,7 @@ signal2string(sig)
|
||||
return "SIGPROF";
|
||||
#endif /* SIGPROF */
|
||||
|
||||
-#ifdef SIGPWR
|
||||
+#if (defined SIGPWR) && SIGPWR != SIGLOST
|
||||
case SIGPWR:
|
||||
return "SIGPWR";
|
||||
#endif /* SIGPWR */
|
||||
@@ -0,0 +1,42 @@
|
||||
From c00e284dd2baa5ecdb0c9586044399cd7cacce3e Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 8 Aug 2016 12:31:40 +0200
|
||||
Subject: [PATCH] compiler.m4: do not remove -g flag
|
||||
|
||||
A sed expression such as 's/-g//' not only removes the -g
|
||||
debugging-related flag, but also turns more specific flags such as
|
||||
-mfloat-gprs=double into -mfloatprs=double, which is no longer a valid
|
||||
flag.
|
||||
|
||||
However, it turns out that removing -g is not necessary: having -g0
|
||||
after -g negates the -g, and having -ggdb after -g is enough to produce
|
||||
debugging information for GDB.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
compiler.m4 | 6 ------
|
||||
1 file changed, 6 deletions(-)
|
||||
|
||||
diff --git a/compiler.m4 b/compiler.m4
|
||||
index 3a23406..621372c 100644
|
||||
--- a/compiler.m4
|
||||
+++ b/compiler.m4
|
||||
@@ -378,15 +378,9 @@ else
|
||||
gcc)
|
||||
if test x"$aixldbug" != x; then
|
||||
#disable debug info
|
||||
- if echo $CFLAGS | grep -- "-g" >/dev/null; then
|
||||
- CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
|
||||
- fi
|
||||
CFLAGS="$CFLAGS${CFLAGS:+ }-g0"
|
||||
else
|
||||
#use -ggdb also when not debugging
|
||||
- if echo $CFLAGS | grep -- "-g" >/dev/null; then
|
||||
- CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'`"
|
||||
- fi
|
||||
CFLAGS="$CFLAGS${CFLAGS:+ }-ggdb"
|
||||
fi
|
||||
;;
|
||||
--
|
||||
2.7.4
|
||||
|
||||
11
bsp/buildroot/package/dante/Config.in
Normal file
11
bsp/buildroot/package/dante/Config.in
Normal file
@@ -0,0 +1,11 @@
|
||||
config BR2_PACKAGE_DANTE
|
||||
bool "dante"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
Dante is a product developed by Inferno Nettverk A/S. It
|
||||
consists of a SOCKS server and a SOCKS client, implementing
|
||||
RFC 1928 and related standards. It is a flexible product
|
||||
that can be used to provide convenient and secure network
|
||||
connectivity.
|
||||
|
||||
http://www.inet.no/dante/
|
||||
40
bsp/buildroot/package/dante/S50dante
Normal file
40
bsp/buildroot/package/dante/S50dante
Normal file
@@ -0,0 +1,40 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Starts dante
|
||||
#
|
||||
|
||||
# Allow a few customizations from a config file
|
||||
test -r /etc/default/dante && . /etc/default/dante
|
||||
|
||||
start() {
|
||||
printf "Starting dante: "
|
||||
start-stop-daemon -S -q -p /var/run/dante.pid \
|
||||
--exec /usr/sbin/sockd -- $DAEMON_ARGS
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
stop() {
|
||||
printf "Stopping dante: "
|
||||
start-stop-daemon -K -q -p /var/run/dante.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
restart() {
|
||||
stop
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
2
bsp/buildroot/package/dante/dante.hash
Normal file
2
bsp/buildroot/package/dante/dante.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 b6d232bd6fefc87d14bf97e447e4fcdeef4b28b16b048d804b50b48f261c4f53 dante-1.4.1.tar.gz
|
||||
34
bsp/buildroot/package/dante/dante.mk
Normal file
34
bsp/buildroot/package/dante/dante.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# dante
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DANTE_VERSION = 1.4.1
|
||||
DANTE_SITE = http://www.inet.no/dante/files
|
||||
DANTE_LICENSE = BSD-3c
|
||||
DANTE_LICENSE_FILES = LICENSE
|
||||
|
||||
# Dante uses a *VERY* old configure.ac
|
||||
DANTE_LIBTOOL_PATCH = NO
|
||||
|
||||
DANTE_CONF_OPTS += --disable-client --disable-preload
|
||||
|
||||
define DANTE_INSTALL_CONFIG_FILE
|
||||
$(INSTALL) -D -m 644 $(@D)/example/sockd.conf \
|
||||
$(TARGET_DIR)/etc/sockd.conf
|
||||
endef
|
||||
|
||||
DANTE_POST_INSTALL_TARGET_HOOKS += DANTE_INSTALL_CONFIG_FILE
|
||||
|
||||
define DANTE_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/dante/dante.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/dante.service
|
||||
endef
|
||||
|
||||
define DANTE_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 755 package/dante/S50dante \
|
||||
$(TARGET_DIR)/etc/init.d/S50dante
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
15
bsp/buildroot/package/dante/dante.service
Normal file
15
bsp/buildroot/package/dante/dante.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=SOCKS v4 and v5 compatible proxy server and client
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=-/etc/default/dante
|
||||
PIDFile=/run/dante.pid
|
||||
ExecStart=/usr/sbin/sockd -D -p /run/dante.pid $DAEMON_ARGS
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user