From 1cccda8588c6d7a7e117493c0e9755882688c749 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 8 Oct 2013 19:29:15 +0000 Subject: [PATCH] bird: Update to 1.3.11 and fix build issues MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Based on patch by Álvaro Fernández Rojas Signed-off-by: Jo-Philipp Wich --- bird/Makefile | 4 ++-- bird/files/bird4.init | 11 +++++++---- bird/files/bird4loop | 2 +- bird/files/bird6.init | 11 +++++++---- bird/files/bird6loop | 2 +- bird/patches/0001-change_config_name.patch | 20 -------------------- 6 files changed, 18 insertions(+), 32 deletions(-) delete mode 100644 bird/patches/0001-change_config_name.patch diff --git a/bird/Makefile b/bird/Makefile index 6565f01..dfccbba 100644 --- a/bird/Makefile +++ b/bird/Makefile @@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bird -PKG_VERSION:=1.3.7 +PKG_VERSION:=1.3.11 PKG_RELEASE:=1 PKG_SOURCE:=bird-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=ftp://bird.network.cz/pub/bird -PKG_MD5SUM:=c400b008ef834d9e7288dcdbe41b7c15 +PKG_MD5SUM:=8ad2eb997fb8251bc5b24cf32619571b PKG_BUILD_DEPENDS:=libncurses libreadline include $(INCLUDE_DIR)/package.mk diff --git a/bird/files/bird4.init b/bird/files/bird4.init index 8ac5e75..18243bb 100644 --- a/bird/files/bird4.init +++ b/bird/files/bird4.init @@ -1,21 +1,24 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2010-2011 OpenWrt.org -START=50 +START=99 +STOP=10 SERVICE_DAEMONIZE=1 SERVICE_WRITE_PID=1 +BIRD="/usr/sbin/bird4 -c /etc/bird4.conf" + start() { - service_start /usr/sbin/bird4 -d + service_start $BIRD -d # ( SERVICE_MATCH_NAME=1 service_start /usr/sbin/bird4loop ) } stop() { # ( SERVICE_MATCH_NAME=1 service_stop /usr/sbin/bird4loop ) - service_stop /usr/sbin/bird4 + service_stop $BIRD } reload() { - service_reload /usr/sbin/bird4 + service_reload $BIRD } diff --git a/bird/files/bird4loop b/bird/files/bird4loop index 074a9a2..8154902 100644 --- a/bird/files/bird4loop +++ b/bird/files/bird4loop @@ -1,6 +1,6 @@ #!/bin/sh -BIRD=/usr/sbin/bird4 +BIRD="/usr/sbin/bird4 -c /etc/bird4.conf" $BIRD -p || return 1 diff --git a/bird/files/bird6.init b/bird/files/bird6.init index 2efb4f0..67b32f1 100644 --- a/bird/files/bird6.init +++ b/bird/files/bird6.init @@ -1,21 +1,24 @@ #!/bin/sh /etc/rc.common # Copyright (C) 2010-2011 OpenWrt.org -START=50 +START=99 +STOP=10 SERVICE_DAEMONIZE=1 SERVICE_WRITE_PID=1 +BIRD="/usr/sbin/bird6 -c /etc/bird6.conf" + start() { - service_start /usr/sbin/bird6 -d + service_start $BIRD -d # ( SERVICE_MATCH_NAME=1 service_start /usr/sbin/bird6loop ) } stop() { # ( SERVICE_MATCH_NAME=1 service_stop /usr/sbin/bird6loop ) - service_stop /usr/sbin/bird6 + service_stop $BIRD } reload() { - service_reload /usr/sbin/bird6 + service_reload $BIRD } diff --git a/bird/files/bird6loop b/bird/files/bird6loop index c01cf2e..510add4 100644 --- a/bird/files/bird6loop +++ b/bird/files/bird6loop @@ -1,6 +1,6 @@ #!/bin/sh -BIRD=/usr/sbin/bird6 +BIRD="/usr/sbin/bird6 -c /etc/bird6.conf" $BIRD -p || return 1 diff --git a/bird/patches/0001-change_config_name.patch b/bird/patches/0001-change_config_name.patch deleted file mode 100644 index 98532f7..0000000 --- a/bird/patches/0001-change_config_name.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff --git a/sysdep/config.h b/sysdep/config.h -index 03399bd..bc5eb77 100644 ---- a/sysdep/config.h -+++ b/sysdep/config.h -@@ -46,11 +46,11 @@ typedef u16 word; - # endif - #else - # ifdef DEBUGGING --# define PATH_CONFIG "bird.conf" --# define PATH_CONTROL_SOCKET "bird.ctl" -+# define PATH_CONFIG "bird4.conf" -+# define PATH_CONTROL_SOCKET "bird4.ctl" - # else --# define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf" --# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl" -+# define PATH_CONFIG PATH_CONFIG_DIR "/bird4.conf" -+# define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird4.ctl" - # endif - #endif - -- 2.30.2