From owner-svn-ports-all@freebsd.org Thu Sep 27 08:56:08 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 093EA10A6949; Thu, 27 Sep 2018 08:56:08 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B11077C510; Thu, 27 Sep 2018 08:56:07 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id ABF9523DBD; Thu, 27 Sep 2018 08:56:07 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8R8u7m2077417; Thu, 27 Sep 2018 08:56:07 GMT (envelope-from madpilot@FreeBSD.org) Received: (from madpilot@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8R8u6WW077413; Thu, 27 Sep 2018 08:56:06 GMT (envelope-from madpilot@FreeBSD.org) Message-Id: <201809270856.w8R8u6WW077413@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: madpilot set sender to madpilot@FreeBSD.org using -f From: Guido Falsi Date: Thu, 27 Sep 2018 08:56:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r480792 - in head/net/babeld: . files X-SVN-Group: ports-head X-SVN-Commit-Author: madpilot X-SVN-Commit-Paths: in head/net/babeld: . files X-SVN-Commit-Revision: 480792 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Sep 2018 08:56:08 -0000 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 ? 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 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" +