diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2006-07-17 16:28:21 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2006-07-17 16:28:21 +0000 |
commit | 84b5fba371a722abd72ce9756e6907ab2f6f0f0a (patch) | |
tree | c64b1000b17e41c2ea681efb84f3c4257d925850 /net | |
parent | 5118c2ac377050ac6043be9d9195d8281b90320c (diff) | |
download | ports-84b5fba371a722abd72ce9756e6907ab2f6f0f0a.tar.gz ports-84b5fba371a722abd72ce9756e6907ab2f6f0f0a.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/quagga/Makefile | 2 | ||||
-rw-r--r-- | net/quagga/files/quagga.sh.in | 18 | ||||
-rw-r--r-- | net/quagga/files/watchquagga.sh.in | 9 |
3 files changed, 16 insertions, 13 deletions
diff --git a/net/quagga/Makefile b/net/quagga/Makefile index 5461edc9bf33..599986eb53a2 100644 --- a/net/quagga/Makefile +++ b/net/quagga/Makefile @@ -7,7 +7,7 @@ PORTNAME= quagga PORTVERSION= 0.99.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net ipv6 MASTER_SITES= http://quagga.net/download/ diff --git a/net/quagga/files/quagga.sh.in b/net/quagga/files/quagga.sh.in index 868b00db1d69..9a28950558b3 100644 --- a/net/quagga/files/quagga.sh.in +++ b/net/quagga/files/quagga.sh.in @@ -2,9 +2,7 @@ # # PROVIDE: quagga -# REQUIRE: netif routing mountcritlocal -# BEFORE: NETWORKING -# KEYWORD: shutdown +# REQUIRE: NETWORKING # # Add the following line to /etc/rc.conf to enable quagga: @@ -13,6 +11,10 @@ # You may also wish to use the following variables to fine-tune startup: #quagga_flags="-d" #quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd" +# Per daemon tuning may be done with daemon_name_flags +#zebra_flags="-dP 0" +#bgpd_flags="-dnrP 0" and so on +# # # If the quagga daemons require additional shared libraries to start, # use the following variable to run ldconfig(8) in advance: @@ -34,12 +36,13 @@ stop_postcmd() # set defaults -quagga_enable=${quagga_enable:-"NO"} -quagga_flags=${quagga_flags:-"-d"} -quagga_daemons=${quagga_daemons:-"zebra ripd ripngd ospfd ospf6d bgpd isisd"} -quagga_extralibs_path=${quagga_extralibs_path:-""} load_rc_config $name +: ${quagga_enable="NO"} +: ${quagga_flags="-d"} +: ${quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd"} +: ${quagga_extralibs_path=""} + quagga_cmd=$1 case "$1" in @@ -72,5 +75,6 @@ for daemon in ${quagga_daemons}; do if [ ${quagga_cmd} = "stop" -a -z $(check_process ${command}) ]; then continue fi + eval flags=\$\{${daemon}_flags:-\"${quagga_flags}\"\} run_rc_command "$1" done diff --git a/net/quagga/files/watchquagga.sh.in b/net/quagga/files/watchquagga.sh.in index d9af072e47f6..be31f48c1f70 100644 --- a/net/quagga/files/watchquagga.sh.in +++ b/net/quagga/files/watchquagga.sh.in @@ -2,9 +2,7 @@ # # PROVIDE: watchquagga -# REQUIRE: netif routing mountcritlocal quagga -# BEFORE: NETWORKING -# KEYWORD: shutdown +# REQUIRE: NETWORKING quagga # # Add the following line to /etc/rc.conf to enable quagga: @@ -30,10 +28,11 @@ stop_postcmd() # set defaults -watchquagga_enable=${watchquagga_enable:-"NO"} -watchquagga_flags=${watchquagga_flags:-""} load_rc_config $name +: ${watchquagga_enable="NO"} +: ${watchquagga_flags=""} + command=%%PREFIX%%/sbin/watchquagga pidfile=%%LOCALSTATE_DIR%%/watchquagga.pid run_rc_command "$1" |