]> git.proxmox.com Git - mirror_frr.git/blob - README.NetBSD
Update for git and emphasize asking for good reports.
[mirror_frr.git] / README.NetBSD
1 #!/bin/sh
2
3 # $QuaggaId: Format:%an, %ai, %h$ $
4
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).
8
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"
15 fi
16
17 # Use /usr/quagga to be independent, and /usr/pkg to overwrite pkgsrc.
18 PREFIX=/usr/pkg
19
20 case $1 in
21
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}
31 ;;
32
33 install)
34 ${MAKE} install
35 ;;
36
37 clean)
38 ${MAKE} clean
39 ;;
40
41 *)
42 echo "Usage: README.NetBSD (build|install|clean)"
43 exit 1
44 ;;
45
46 esac