]> git.proxmox.com Git - mirror_frr.git/blame - README.NetBSD
ospf6d: fix decimal area ID cli
[mirror_frr.git] / README.NetBSD
CommitLineData
a3214b79 1#!/bin/sh
2
a3214b79 3# This file is helpful for building quagga from cvs on NetBSD, and
4# probably on any system using pkgsrc.
5# One should have readline installed already (pkgsrc/devel/readline).
6
85c4968b 7MAKE=make
14838194
GT
8# Quagga is currently documented not to require GNU make, but sometimes
9# BSD make fails. Enable this if statement as a workaround.
10if false; then
37ccd146 11 MAKE=gmake
14838194 12 echo "WARNING: using gmake to work around nonportable makefiles"
37ccd146
GT
13fi
14
85c4968b
GT
15# Use /usr/quagga to be independent, and /usr/pkg to overwrite pkgsrc.
16PREFIX=/usr/pkg
17
a3214b79 18case $1 in
19
20 build)
fe0a1a45
GT
21 # Omitted because it is now default:
22 # --enable-opaque-lsa
409d8e4f 23 ./bootstrap.sh
a3214b79 24 LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
85c4968b 25 ./configure --prefix=${PREFIX} \
a3214b79 26 --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
85c4968b
GT
27 --enable-exampledir=${PREFIX}/share/examples/zebra \
28 --enable-pkgsrcrcdir=${PREFIX}/etc/rc.d \
fe0a1a45 29 --enable-vtysh
85c4968b 30 ${MAKE}
a3214b79 31 ;;
32
33 install)
85c4968b 34 ${MAKE} install
a3214b79 35 ;;
36
37 clean)
85c4968b 38 ${MAKE} clean
14838194
GT
39 ;;
40
41 *)
85c4968b 42 echo "Usage: README.NetBSD (build|install|clean)"
14838194
GT
43 exit 1
44 ;;
a3214b79 45
46esac