Index: head/net/babeld/Makefile =================================================================== --- head/net/babeld/Makefile (revision 480791) +++ head/net/babeld/Makefile (revision 480792) @@ -1,23 +1,27 @@ # Created by: Hung-Yi Chen # $FreeBSD$ PORTNAME= babeld -PORTVERSION= 1.8.1 +PORTVERSION= 1.8.2 CATEGORIES= net MASTER_SITES= http://www.pps.univ-paris-diderot.fr/~jch/software/files/ MAINTAINER= gaod@hychen.org COMMENT= Distance-vector routing protocol LICENSE= MIT MAKE_ARGS= CDEBUGFLAGS="-O2 -g -Wall" PLIST_FILES= bin/babeld \ - man/man8/babeld.8.gz + man/man8/babeld.8.gz \ + "@sample etc/babeld.conf.sample" +USE_RC_SUBR= babeld + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/babeld ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_MAN} ${WRKSRC}/babeld.man ${STAGEDIR}${PREFIX}/man/man8/babeld.8 + ${INSTALL_DATA} ${FILESDIR}/babeld.conf ${STAGEDIR}${PREFIX}/etc/babeld.conf.sample .include Index: head/net/babeld/distinfo =================================================================== --- head/net/babeld/distinfo (revision 480791) +++ head/net/babeld/distinfo (revision 480792) @@ -1,3 +1,3 @@ -TIMESTAMP = 1525712441 -SHA256 (babeld-1.8.1.tar.gz) = 9c249c73f5292ec18d1dd70934195edf2cbfa51f0a0fca937e16104f7fc006bf -SIZE (babeld-1.8.1.tar.gz) = 92784 +TIMESTAMP = 1531659508 +SHA256 (babeld-1.8.2.tar.gz) = 07edecb132386d5561a767482bc5200e04239b18e48c2f0f47ae1c78d60fe5dc +SIZE (babeld-1.8.2.tar.gz) = 92852 Index: head/net/babeld/files/babeld.conf =================================================================== --- head/net/babeld/files/babeld.conf (nonexistent) +++ head/net/babeld/files/babeld.conf (revision 480792) @@ -0,0 +1,35 @@ +# babel config file +# +# This config file simply documents 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 ip 0.0.0.0/0 le 0 metric 128 + +# same but for IPv6 +# redistribute local ip ::/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 refuses to redistribute routes with a protocol number of "boot"; +# this is standard practice, and means that you cannot easily +# redistribute the default route installed by dhcp. It is however +# possible to redistribute such route by explicitly specifying "proto 3" +# on the redistribute line. +## redistribute ip 0.0.0.0/0 le 0 proto 3 metric 128 + Property changes on: head/net/babeld/files/babeld.conf ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/babeld/files/babeld.in =================================================================== --- head/net/babeld/files/babeld.in (nonexistent) +++ head/net/babeld/files/babeld.in (revision 480792) @@ -0,0 +1,35 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: babeld dynamicrouting +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# babeld_enable (bool): Set to NO by default. +# Set it to YES to enable babeld. +# babeld_config (path): Set to /usr/local/etc/babeld.conf +# by default. +# + +. /etc/rc.subr + +name="babeld" +rcvar=babeld_enable + +command=/usr/local/bin/${name} + +load_rc_config $name + +extra_commands="reload" + +: ${babeld_enable="NO"} +: ${babeld_config="/usr/local/etc/babeld.conf"} + +command_args="-D -I /var/run/${name}.pid $babeld_config" + +run_rc_command "$1" + Property changes on: head/net/babeld/files/babeld.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property