mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
From 324e1ebc7b86f68f49fb4f1c34a4de60d18dd3c1 Mon Sep 17 00:00:00 2001
|
||||
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Date: Sun, 23 Nov 2014 12:17:11 +0100
|
||||
Subject: [PATCH 2/3] Don't force -fstack-protector, the toolchain might lack
|
||||
support for it
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
Makefile.am | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 80633e7..8b5a2e4 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -43,7 +43,6 @@ DISABLE_WARNINGS = \
|
||||
|
||||
AM_CFLAGS = \
|
||||
-fno-strict-aliasing \
|
||||
- -fstack-protector \
|
||||
$(ENABLE_WARNINGS) \
|
||||
$(DISABLE_WARNINGS)
|
||||
|
||||
--
|
||||
2.1.0
|
||||
|
||||
8
package/radvd/Config.in
Normal file
8
package/radvd/Config.in
Normal file
@@ -0,0 +1,8 @@
|
||||
config BR2_PACKAGE_RADVD
|
||||
bool "radvd"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
select BR2_PACKAGE_FLEX
|
||||
help
|
||||
IPv6 Router Advertisement Daemon.
|
||||
|
||||
http://www.litech.org/radvd/
|
||||
59
package/radvd/S50radvd
Normal file
59
package/radvd/S50radvd
Normal file
@@ -0,0 +1,59 @@
|
||||
#!/bin/sh
|
||||
|
||||
DAEMON="radvd"
|
||||
PIDFILE="/var/run/$DAEMON.pid"
|
||||
|
||||
RADVD_ARGS="-m syslog"
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
[ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
|
||||
|
||||
[ -f /etc/radvd.conf ] || exit 0
|
||||
|
||||
[ -f /proc/sys/net/ipv6/conf/all/forwarding ] || {
|
||||
echo "Error: radvd requires IPv6 forwarding support."
|
||||
exit 1
|
||||
}
|
||||
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
echo "1" > /proc/sys/net/ipv6/conf/all/forwarding
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
start-stop-daemon -S -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON" \
|
||||
-- $RADVD_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf 'Stopping %s: ' "$DAEMON"
|
||||
start-stop-daemon -K -q -p "$PIDFILE" -x "/usr/sbin/$DAEMON"
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
echo "OK"
|
||||
else
|
||||
echo "FAIL"
|
||||
fi
|
||||
return "$status"
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start|stop)
|
||||
"$1";;
|
||||
restart|reload)
|
||||
restart;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart|reload}"
|
||||
exit 1
|
||||
esac
|
||||
3
package/radvd/radvd.hash
Normal file
3
package/radvd/radvd.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# From http://www.litech.org/radvd/dist/radvd-2.18.tar.gz.sha256
|
||||
sha256 4f573e36b96ba92d03b5abbbd5f059b9c8994967812c77852f44049ac5a448fd radvd-2.18.tar.gz
|
||||
sha256 40a6db00cf0b97f031eaa6c6e87157788f40ced1b88e3ea6d78779bd2a39dc80 COPYRIGHT
|
||||
24
package/radvd/radvd.mk
Normal file
24
package/radvd/radvd.mk
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
#
|
||||
# radvd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RADVD_VERSION = 2.18
|
||||
RADVD_SITE = http://www.litech.org/radvd/dist
|
||||
RADVD_DEPENDENCIES = host-bison flex host-flex host-pkgconf
|
||||
# We need to ignore <linux/if_arp.h>, because radvd already includes
|
||||
# <net/if_arp.h>, which conflicts with <linux/if_arp.h>.
|
||||
RADVD_CONF_ENV = \
|
||||
ac_cv_prog_cc_c99='-std=gnu99' \
|
||||
ac_cv_header_linux_if_arp_h=no
|
||||
# For 0002-Don-t-force-fstack-protector-the-toolchain-might-lac.patch
|
||||
RADVD_AUTORECONF = YES
|
||||
RADVD_LICENSE = BSD-4-Clause-like
|
||||
RADVD_LICENSE_FILES = COPYRIGHT
|
||||
|
||||
define RADVD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -D -m 0755 package/radvd/S50radvd $(TARGET_DIR)/etc/init.d/S50radvd
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user