Date: Thu, 2 Oct 2014 18:33:43 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r369845 - in head/net/quagga: . files Message-ID: <201410021833.s92IXhgG031777@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Thu Oct 2 18:33:43 2014 New Revision: 369845 URL: https://svnweb.freebsd.org/changeset/ports/369845 QAT: https://qat.redports.org/buildarchive/r369845/ Log: Learn to write shell scripts. Pointy hat to: mat Sponsored by: Absolight Modified: head/net/quagga/Makefile head/net/quagga/files/quagga.in Modified: head/net/quagga/Makefile ============================================================================== --- head/net/quagga/Makefile Thu Oct 2 18:31:30 2014 (r369844) +++ head/net/quagga/Makefile Thu Oct 2 18:33:43 2014 (r369845) @@ -3,6 +3,7 @@ PORTNAME= quagga PORTVERSION= 0.99.23.1 +PORTREVISION= 1 CATEGORIES= net ipv6 MASTER_SITES= SAVANNAH Modified: head/net/quagga/files/quagga.in ============================================================================== --- head/net/quagga/files/quagga.in Thu Oct 2 18:31:30 2014 (r369844) +++ head/net/quagga/files/quagga.in Thu Oct 2 18:33:43 2014 (r369845) @@ -43,44 +43,6 @@ quagga_flags=${quagga_flags:-"-d"} quagga_daemons=${quagga_daemons:-"zebra ripd ripngd ospfd ospf6d bgpd isisd"} quagga_vtysh_boot=${quagga_vtysh_boot:-"NO"} -quagga_cmd=$1 - -case "$1" in - force*) - quagga_cmd=${quagga_cmd#force} - ;; - fast*) - quagga_cmd=${quagga_cmd#fast} - ;; -esac -shift - -if [ $# -ge 1 ]; then - quagga_daemons="$*" -fi - -case "${quagga_cmd}" in - start) - if [ ! -z ${quagga_extralibs_path} ]; then - /sbin/ldconfig -m ${quagga_extralibs_path} - fi - do_cmd "start" - ;; - stop) - quagga_daemons=$(reverse_list ${quagga_daemons}) - do_cmd "stop" - ;; - restart) - quagga_daemons=$(reverse_list ${quagga_daemons}) - do_cmd "stop" - quagga_daemons=$(reverse_list ${quagga_daemons}) - do_cmd "start" - ;; - *) - do_cmd "${quagga_cmd}" - ;; -esac - check_config() { echo "Checking $daemon.conf" @@ -137,3 +99,41 @@ do_cmd() fi return ${ret} } + +quagga_cmd=$1 + +case "$1" in + force*) + quagga_cmd=${quagga_cmd#force} + ;; + fast*) + quagga_cmd=${quagga_cmd#fast} + ;; +esac +shift + +if [ $# -ge 1 ]; then + quagga_daemons="$*" +fi + +case "${quagga_cmd}" in + start) + if [ ! -z ${quagga_extralibs_path} ]; then + /sbin/ldconfig -m ${quagga_extralibs_path} + fi + do_cmd "start" + ;; + stop) + quagga_daemons=$(reverse_list ${quagga_daemons}) + do_cmd "stop" + ;; + restart) + quagga_daemons=$(reverse_list ${quagga_daemons}) + do_cmd "stop" + quagga_daemons=$(reverse_list ${quagga_daemons}) + do_cmd "start" + ;; + *) + do_cmd "${quagga_cmd}" + ;; +esac
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410021833.s92IXhgG031777>