From owner-svn-ports-all@freebsd.org Sun Apr 15 11:23:42 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 96496F89F4F; Sun, 15 Apr 2018 11:23:42 +0000 (UTC) (envelope-from olivier@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 47E89704DF; Sun, 15 Apr 2018 11:23:42 +0000 (UTC) (envelope-from olivier@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 42D7D64E0; Sun, 15 Apr 2018 11:23:42 +0000 (UTC) (envelope-from olivier@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3FBNgDW023078; Sun, 15 Apr 2018 11:23:42 GMT (envelope-from olivier@FreeBSD.org) Received: (from olivier@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3FBNf2U023075; Sun, 15 Apr 2018 11:23:41 GMT (envelope-from olivier@FreeBSD.org) Message-Id: <201804151123.w3FBNf2U023075@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: olivier set sender to olivier@FreeBSD.org using -f From: Olivier Cochard Date: Sun, 15 Apr 2018 11:23:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467384 - in head/net/frr: . files X-SVN-Group: ports-head X-SVN-Commit-Author: olivier X-SVN-Commit-Paths: in head/net/frr: . files X-SVN-Commit-Revision: 467384 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.25 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: Sun, 15 Apr 2018 11:23:42 -0000 Author: olivier Date: Sun Apr 15 11:23:41 2018 New Revision: 467384 URL: https://svnweb.freebsd.org/changeset/ports/467384 Log: Fix watchfrr RC script and build on 10.3 PR: 227415 Reported by: pautina@kharkiv.net Added: head/net/frr/files/patch-lib_vty.h (contents, props changed) Modified: head/net/frr/Makefile head/net/frr/files/watchfrr.in Modified: head/net/frr/Makefile ============================================================================== --- head/net/frr/Makefile Sun Apr 15 11:10:28 2018 (r467383) +++ head/net/frr/Makefile Sun Apr 15 11:23:41 2018 (r467384) @@ -2,6 +2,7 @@ PORTNAME= frr PORTVERSION= 4.0 +PORTREVISION= 1 DISTVERSIONPREFIX= frr- CATEGORIES= net ipv6 Added: head/net/frr/files/patch-lib_vty.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net/frr/files/patch-lib_vty.h Sun Apr 15 11:23:41 2018 (r467384) @@ -0,0 +1,48 @@ +--- lib/vty.h.orig 2018-03-12 00:53:37 UTC ++++ lib/vty.h +@@ -189,45 +189,6 @@ struct vty_arg { + /* Integrated configuration file. */ + #define INTEGRATE_DEFAULT_CONFIG "frr.conf" + +-#if CONFDATE > 20180401 +-CPP_NOTICE("It's probably time to remove VTY_NEWLINE compatibility foo.") +-#endif +- +-/* for compatibility */ +-#define VNL "\n" CPP_WARN("VNL has been replaced with \\n.") +-#define VTYNL "\n" CPP_WARN("VTYNL has been replaced with \\n.") +-#define VTY_NEWLINE "\n" CPP_WARN("VTY_NEWLINE has been replaced with \\n.") +-#define VTY_GET_INTEGER(desc, v, str) \ +- { \ +- (v) = strtoul((str), NULL, 10); \ +- } \ +- CPP_WARN("VTY_GET_INTEGER is no longer useful, use strtoul() or DEFPY.") +-#define VTY_GET_INTEGER_RANGE(desc, v, str, min, max) \ +- { \ +- (v) = strtoul((str), NULL, 10); \ +- } \ +- CPP_WARN( \ +- "VTY_GET_INTEGER_RANGE is no longer useful, use strtoul() or DEFPY.") +-#define VTY_GET_ULONG(desc, v, str) \ +- { \ +- (v) = strtoul((str), NULL, 10); \ +- } \ +- CPP_WARN("VTY_GET_ULONG is no longer useful, use strtoul() or DEFPY.") +-#define VTY_GET_ULL(desc, v, str) \ +- { \ +- (v) = strtoull((str), NULL, 10); \ +- } \ +- CPP_WARN("VTY_GET_ULL is no longer useful, use strtoull() or DEFPY.") +-#define VTY_GET_IPV4_ADDRESS(desc, v, str) \ +- inet_aton((str), &(v)) CPP_WARN( \ +- "VTY_GET_IPV4_ADDRESS is no longer useful, use inet_aton() or DEFPY.") +-#define VTY_GET_IPV4_PREFIX(desc, v, str) \ +- str2prefix_ipv4((str), &(v)) CPP_WARN( \ +- "VTY_GET_IPV4_PREFIX is no longer useful, use str2prefix_ipv4() or DEFPY.") +-#define vty_outln(vty, str, ...) \ +- vty_out(vty, str "\n", ##__VA_ARGS__) CPP_WARN( \ +- "vty_outln is no longer useful, use vty_out(...\\n...)") +- + /* Default time out value */ + #define VTY_TIMEOUT_DEFAULT 600 + Modified: head/net/frr/files/watchfrr.in ============================================================================== --- head/net/frr/files/watchfrr.in Sun Apr 15 11:10:28 2018 (r467383) +++ head/net/frr/files/watchfrr.in Sun Apr 15 11:23:41 2018 (r467384) @@ -12,6 +12,8 @@ # # You may also wish to use the following variables to fine-tune startup: # watchfrr_flags +# Example of flags usage: +# watchfrr_flags=" -d -r /usr/sbin/servicebBfrrbBrestartbB%s -s /usr/sbin/servicebBfrrbBstartbB%s -k /usr/sbin/servicebBfrrbBstopbB%s -b bB -t 30 zebra ripd ripngd ospfd ospf6d bgpd isisd eigrpd babeld" . /etc/rc.subr @@ -23,8 +25,9 @@ load_rc_config $name stop_postcmd="rm -f $pidfile" watchfrr_enable=${watchfrr_enable:-"NO"} +watchfrr_flags=${watchfrr_flags:-"-d -r /usr/sbin/servicebBfrrbBrestartbB%s -s /usr/sbin/servicebBfrrbBstartbB%s -k /usr/sbin/servicebBfrrbBstopbB%s -b bB -t 30 zebra ripd ripngd ospfd ospf6d bgpd isisd eigrpd babeld"} command=%%PREFIX%%/sbin/watchfrr -pidfile=%%LOCALSTATE_DIR%%/watchfrr.pid +pidfile=/var/run/frr/watchfrr.pid run_rc_command "$1"