svn commit: r480792 - in head/net/babeld: . files
Guido Falsi
madpilot at FreeBSD.org
Thu Sep 27 08:56:08 UTC 2018
Author: madpilot
Date: Thu Sep 27 08:56:06 2018
New Revision: 480792
URL: https://svnweb.freebsd.org/changeset/ports/480792
Log:
- Update net/babeld to 1.8.2
- Add startup script
- Add sample configuration file
PR: 229785
Submitted by: Max Stucchi ?<max at stucchi.ch>
Approved by: Maintainer timeout
Added:
head/net/babeld/files/
head/net/babeld/files/babeld.conf (contents, props changed)
head/net/babeld/files/babeld.in (contents, props changed)
Modified:
head/net/babeld/Makefile
head/net/babeld/distinfo
Modified: head/net/babeld/Makefile
==============================================================================
--- head/net/babeld/Makefile Thu Sep 27 08:53:03 2018 (r480791)
+++ head/net/babeld/Makefile Thu Sep 27 08:56:06 2018 (r480792)
@@ -2,7 +2,7 @@
# $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/
@@ -14,10 +14,14 @@ 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 <bsd.port.mk>
Modified: head/net/babeld/distinfo
==============================================================================
--- head/net/babeld/distinfo Thu Sep 27 08:53:03 2018 (r480791)
+++ head/net/babeld/distinfo Thu Sep 27 08:56:06 2018 (r480792)
@@ -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
Added: head/net/babeld/files/babeld.conf
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/babeld/files/babeld.conf Thu Sep 27 08:56:06 2018 (r480792)
@@ -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
+
Added: head/net/babeld/files/babeld.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/babeld/files/babeld.in Thu Sep 27 08:56:06 2018 (r480792)
@@ -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"
+
More information about the svn-ports-head
mailing list