bgpd: tighten bounds checking in RR ORF msg reader
[jleu-quagga.git] / README.NetBSD
blob9aac4c35fd557c9c2752a4e82a75c46707d924d4
1 #!/bin/sh
3 # $QuaggaId: Format:%an, %ai, %h$ $
5 # This file is helpful for building quagga from cvs on NetBSD, and
6 # probably on any system using pkgsrc.
7 # One should have readline installed already (pkgsrc/devel/readline).
9 MAKE=make
10 # Quagga is currently documented not to require GNU make, but sometimes
11 # BSD make fails. Enable this if statement as a workaround.
12 if false; then
13 MAKE=gmake
14 echo "WARNING: using gmake to work around nonportable makefiles"
17 # Use /usr/quagga to be independent, and /usr/pkg to overwrite pkgsrc.
18 PREFIX=/usr/pkg
20 case $1 in
22 build)
23 ./bootstrap.sh
24 LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
25 ./configure --prefix=${PREFIX} \
26 --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
27 --enable-exampledir=${PREFIX}/share/examples/zebra \
28 --enable-pkgsrcrcdir=${PREFIX}/etc/rc.d \
29 --enable-opaque-lsa --enable-vtysh
30 ${MAKE}
33 install)
34 ${MAKE} install
37 clean)
38 ${MAKE} clean
42 echo "Usage: README.NetBSD (build|install|clean)"
43 exit 1
46 esac