]> git.proxmox.com Git - mirror_frr.git/blobdiff - README.NetBSD
bgpd: Add some vrf <-> vrf code comments
[mirror_frr.git] / README.NetBSD
index e541ec1e16c236d2dbc5c43c5bd46e8ba6c8368d..c97e3bcb387dbcac8a5c030bb7d9be99460bbbe8 100755 (executable)
@@ -1,37 +1,46 @@
 #!/bin/sh
 
-$Id$
-
-# This file is helpful for building quagga from cvs on NetBSD, and
+# This file is helpful for building FRR from cvs on NetBSD, and
 # probably on any system using pkgsrc.  
 # One should have readline installed already (pkgsrc/devel/readline).
 
-# Quagga is currently documented not to require GNU make, but the
-# contents of solaris seem to require it.
-
-if true; then
+MAKE=make
+# FRR is currently documented not to require GNU make, but sometimes
+# BSD make fails.  Enable this if statement as a workaround.
+if false; then
     MAKE=gmake
-    echo "WARNING: using gmake to work around buggy solaris/Makefile.am"
+    echo "WARNING: using gmake to work around nonportable makefiles"
 fi
 
+# Use /usr/frr to be independent, and /usr/pkg to overwrite pkgsrc.
+PREFIX=/usr/pkg
+
 case $1 in
 
     build)
+       # Omitted because it is now default:
+       #   --enable-opaque-lsa
        ./bootstrap.sh
        LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
-       ./configure --prefix=/usr/quagga \
+       ./configure --prefix=${PREFIX} \
            --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
-           --enable-exampledir=/usr/quagga/share/examples/zebra \
-           --enable-pkgsrcrcdir=/usr/quagga/etc/rc.d \
-           --enable-opaque-lsa --enable-vtysh
-       make
+           --enable-exampledir=${PREFIX}/share/examples/zebra \
+           --enable-pkgsrcrcdir=${PREFIX}/etc/rc.d \
+           --enable-vtysh
+       ${MAKE}
        ;;
 
     install)
-       make install
+       ${MAKE} install
        ;;
 
     clean)
-       make clean
+       ${MAKE} clean
+       ;;
+
+    *)
+       echo "Usage: README.NetBSD (build|install|clean)"
+       exit 1
+       ;;
 
 esac