FreeBSD Bugzilla – Attachment 152060 Details for
Bug 197036
[patch] net/quagga make rc script conform to the Porter's Handbook guidelines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
The Patch
quagga.diff (text/plain), 2.49 KB, created by
Serhii (Sergey) Kozlov
on 2015-01-23 20:39:05 UTC
(
hide
)
Description:
The Patch
Filename:
MIME Type:
Creator:
Serhii (Sergey) Kozlov
Created:
2015-01-23 20:39:05 UTC
Size:
2.49 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 377757) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= quagga > PORTVERSION= 0.99.23.1 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= net ipv6 > MASTER_SITES= SAVANNAH > >Index: files/quagga.in >=================================================================== >--- files/quagga.in (revision 377757) >+++ files/quagga.in (working copy) >@@ -8,22 +8,24 @@ > # KEYWORD: nojail shutdown > > # Add the following line to /etc/rc.conf to enable quagga: >-# quagga_enable="YES" >+# quagga_enable="YES" > # > # You may also wish to use the following variables to fine-tune startup: >-# quagga_flags="-d" >+# quagga_flags="" > # quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd" > # quagga_vysh_boot="YES" > # Per daemon tuning may be done with daemon_name_flags >-# zebra_flags="-dP 0" >-# bgpd_flags="-dnrP 0" and so on >+# zebra_flags="-P 0" >+# bgpd_flags="-nrP 0" and so on > # If you want to give the routing deamons a chance to catchup before > # continueing, set quagga_wait_for to a "default" or certain prefix. > # quagga_wait_for="default" >+# Set the time limit for the wait. >+# quagga_wait_seconds="5" > # > # If the quagga daemons require additional shared libraries to start, > # use the following variable to run ldconfig(8) in advance: >-#quagga_extralibs_path="/usr/local/lib ..." >+# quagga_extralibs_path="/usr/local/lib ..." > # > > . /etc/rc.subr >@@ -35,13 +37,16 @@ > stop_postcmd="rm -f $pidfile" > configtest_cmd=check_config > extra_commands=configtest >+command_args="-d" > > load_rc_config $name > > quagga_enable=${quagga_enable:-"NO"} >-quagga_flags=${quagga_flags:-"-d"} >+quagga_flags=${quagga_flags:-""} > quagga_daemons=${quagga_daemons:-"zebra ripd ripngd ospfd ospf6d bgpd isisd"} > quagga_vtysh_boot=${quagga_vtysh_boot:-"NO"} >+quagga_wait_for=${quagga_wait_for:-""} >+quagga_wait_seconds=${quagga_wait_seconds:-"5"} > > check_config() > { >@@ -58,6 +63,8 @@ > > start_postcmd() > { >+ local waited_for >+ waited_for=0 > # Wait only when last daemon has started. > if [ "${quagga_daemons}" = "${quagga_daemons% ${name}}" ]; then > return; >@@ -64,10 +71,12 @@ > fi > if [ ${quagga_wait_for} ]; then > echo Waiting for ${quagga_wait_for} route... >- while true; do >+ while [ ${waited_for} -lt ${quagga_wait_seconds} ]; do > /sbin/route -n get ${quagga_wait_for} >/dev/null 2>&1 && break; >+ waited_for=$((${waited_for}+1)) > sleep 1; > done >+ [ ${waited_for} -lt ${quagga_wait_seconds} ] || echo Giving up... > fi > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197036
: 152060