From: Steven Barth Date: Thu, 10 Apr 2014 17:03:29 +0000 (+0200) Subject: mcast-tools: add initial port X-Git-Url: http://git.openwrt.org/?p=feed%2Frouting.git;a=commitdiff_plain;h=c0eb80e7361eb6ba87ef7d7898b81a502dc9fcc8;hp=4dd022ad966a6f7a721824353744d6839a3770a7 mcast-tools: add initial port --- diff --git a/mcast-tools/Makefile b/mcast-tools/Makefile new file mode 100644 index 0000000..7a918bd --- /dev/null +++ b/mcast-tools/Makefile @@ -0,0 +1,62 @@ +# +# Copyright (C) 2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=mcast-tools +PKG_SOURCE_VERSION:=e5c860f174c6deb4cc30211e895831aca0a55b7f +PKG_VERSION:=2014-04-06 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/F0rth/mcast-tools.git +PKG_MAINTAINER:=Steven Barth + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_ARGS+=--enable-mldv2host --disable-pim6dd --disable-mcastread --disable-mcastsend --disable-mfc --disable-mtrace6 --disable-pmsft +TARGET_CFLAGS+=-DIP6OPT_RTALERT_LEN=4 -D_GNU_SOURCE + +define Package/pim6sd + SECTION:=net + CATEGORY:=Network + SUBMENU:=Routing and Redirection + TITLE:=Sparse PIM IPv6 Multicast Routing Daemon +endef + +define Package/pim6sd/description + pim6sd is an IPv6 multicast routing daemon, which supports PIMv2(Protocol + Independent Multicast Version 2) sparse mode and SSM(Source-Specific- + Multicast) for IPv6. +endef + +define Package/pim6sd/conffiles +/etc/pim6sd.conf +endef + +define Build/Prepare + $(call Build/Prepare/Default) + ( cd $(PKG_BUILD_DIR) ; \ + aclocal ; \ + autoheader ; \ + automake --add-missing; \ + autoconf ; \ + ) +endef + +define Package/pim6sd/install + $(INSTALL_DIR) $(1)/etc/init.d + $(INSTALL_CONF) ./files/pim6sd.conf $(1)/etc + $(INSTALL_BIN) ./files/pim6sd.init $(1)/etc/init.d/pim6sd + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/pim6sd/pim6sd $(1)/usr/sbin/pim6sd +endef + +$(eval $(call BuildPackage,pim6sd)) diff --git a/mcast-tools/files/pim6sd.conf b/mcast-tools/files/pim6sd.conf new file mode 100644 index 0000000..63e1223 --- /dev/null +++ b/mcast-tools/files/pim6sd.conf @@ -0,0 +1,105 @@ +#The timer granularity. +#More this value is small,more pim6sd will be accurate +#default if not specified : 5 +#BE SURE to have to same granularity on ALL routers, +#otherwise.... + +#granularity 5; + +#syntax : phyint [metric] [preference] +#metric and pref are for the asserts messages +#samples : + +#phyint ed1 disable; +#phyint de0 disable; +#phyint ed0 disable; +#phyint gif0 disable; + +#---------------Protocol timer specifications---------------------------# +#Notes : theses value are the default spec value! +#do not touch it if you don't know what you do!! +#you MUST change theses values according to the granularity value! +#syntax : 'hello_period '. +# number is the period in second between 2 hello messages +# and coef is the coef to determine the hello holdtime=hello_period*coef +# default if not specified: 30 3.5 + +#hello_period 30 3.5; + +#syntax : 'join_prune_period '. +# number is the period in second between 2 join/prune messages +# and coef is the coef to determine the join/prune holdtime=join_prune_period*coef +# default if not specified : 60 3.5 + +#join_prune_period 60 3.5; + +#syntax : 'data_timeout '. +# number is the time after which (S,G) state for a silent source will be deleted +# default if not specified : 210 + +#data_timeout 210; + +#syntax : 'register_suppression_timeout '. +# This is the mean interval between receiving a Register-Stop and allowing +#Register to be send again. +# default if not specified : 60 + +#register_suppression_timeout 60; + +#syntax : 'probe_time '. +#This is the time between sending a null Register and the Register-Suppression-Timer +#expiring unless it is restarted by receiving a Register-Stop. +#default if not specified : 5 + +#probe_time 5; + +#syntax : 'assert_timeout '. +#this is the interval between the last time an Assert is received and the time at which the +#assert is timeout +#default if not specified : 180 + +#assert_timeout 180; + +#syntax :