From d66ce687ea3e03cba2467f90f24a0f16d0574249 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sun, 27 Jul 2008 17:05:37 +0000 Subject: [PATCH] Update babel to 0.15 add a sample configuration file SVN-Revision: 11964 --- ipv6/babel/Makefile | 10 +++++-- ipv6/babel/files/babel.conf | 56 +++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+), 2 deletions(-) create mode 100644 ipv6/babel/files/babel.conf diff --git a/ipv6/babel/Makefile b/ipv6/babel/Makefile index ca09a1ff07..19f22b3e08 100644 --- a/ipv6/babel/Makefile +++ b/ipv6/babel/Makefile @@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=babel -PKG_VERSION:=0.14 +PKG_VERSION:=0.15 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/ -PKG_MD5SUM:=d850a0e5044acb64038205197503937e +PKG_MD5SUM:=510da09a471bba78bb8178810094e3de include $(INCLUDE_DIR)/package.mk @@ -36,6 +36,10 @@ define Package/babel/description never counting to infinity. endef +define Package/babel/conffiles +/etc/babel.conf +endef + MAKE_FLAGS += \ CC="$(TARGET_CC)" \ CFLAGS="$(TARGET_CFLAGS)" \ @@ -43,6 +47,8 @@ MAKE_FLAGS += \ define Package/babel/install $(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/babel $(1)/usr/sbin/ + $(INSTALL_DIR) $(1)/etc + $(INSTALL_CONF) ./files/babel.conf $(1)/etc/ endef $(eval $(call BuildPackage,babel)) diff --git a/ipv6/babel/files/babel.conf b/ipv6/babel/files/babel.conf new file mode 100644 index 0000000000..20ba36c5f3 --- /dev/null +++ b/ipv6/babel/files/babel.conf @@ -0,0 +1,56 @@ +# babel config file +# Copyright (C) 2008 Juliusz Chroboczek, L. Aaron Kaplan +# , +# +# This config file simply docuements sample entries. +# "redistribute" means: redistribute routes from other +# routing protocols into babel. "local" means addresses assigned to local interfaces. +# +# the default rules are: +# +## redistribute local +## redistribute deny +# +# this says, redistribute local addresses but no other routes + + + +# redistribute IPv4 default route into babel +## redistribute local 0.0.0.0/0 le 0 metric 128 + +# same but for IPv6 +## redistribute local ::/0 le 0 metric 128 + +# don't redistribute all local addresses, only selected ones +# after the first line, the "deny" rules kicks in. After the "deny" +# no redistribute local rules are going to match +## redistribute local ip 192.160.4.0/24 +## redistribute local deny +# babel config file +# Copyright (C) 2008 Juliusz Chroboczek, L. Aaron Kaplan +# , +# +# This config file simply docuements sample entries. +# "redistribute" means: redistribute routes from other +# routing protocols into babel. "local" means addresses assigned to local interfaces. +# +# the default rules are: +# +## redistribute local +## redistribute deny +# +# this says, redistribute local addresses but no other routes + + + +# redistribute IPv4 default route into babel +## redistribute local 0.0.0.0/0 le 0 metric 128 + +# same but for IPv6 +## redistribute local ::/0 le 0 metric 128 + +# don't redistribute all local addresses, only selected ones +# after the first line, the "deny" rules kicks in. After the "deny" +# no redistribute local rules are going to match +## redistribute local ip 192.160.4.0/24 +## redistribute local deny -- 2.30.2