# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
# 
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
# 
# ROCK Linux: rock-src/package/tsa/quagga/quagga.conf
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
# 
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
# 
# --- ROCK-COPYRIGHT-NOTE-END ---

var_append confopt ' ' '--enable-netlink'
var_append confopt ' ' '--enable-vtysh'
var_append confopt ' ' '--enable-nssa'
var_append confopt ' ' '--enable-opaque-lsa'
var_append confopt ' ' '--enable-ospf-te'
var_append confopt ' ' '--sysconfdir=/etc/zebra'
var_append confopt ' ' '--localstatedir=/var/run/zebra'

#termcap lib is in /lib but quaqqa is too stupid too add it to its linker paths
var_append GCC_WRAPPER_INSERT ' ' '-L/lib'

init_and_ownerships() {

  install_init zebra  $confdir/zebra.init
  install_init ospfd  $confdir/ospfd.init
  install_init ospf6d $confdir/ospf6d.init
  install_init bgpd   $confdir/bgpd.init
  install_init ripd   $confdir/ripd.init
  install_init ripngd $confdir/ripngd.init
  
  chown quagga:quagga $root/etc/zebra
  mkdir -p $root/var/run/zebra && chown quagga:quagga $root/var/run/zebra
}

postmake=init_and_ownerships