README.NetBSD 926 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. $Id$
  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. # Quagga is currently documented not to require GNU make, but sometimes
  7. # BSD make fails. Enable this if statement as a workaround.
  8. if false; then
  9. MAKE=gmake
  10. echo "WARNING: using gmake to work around nonportable makefiles"
  11. fi
  12. case $1 in
  13. build)
  14. ./bootstrap.sh
  15. LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
  16. ./configure --prefix=/usr/quagga \
  17. --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
  18. --enable-exampledir=/usr/quagga/share/examples/zebra \
  19. --enable-pkgsrcrcdir=/usr/quagga/etc/rc.d \
  20. --enable-opaque-lsa --enable-vtysh
  21. make
  22. ;;
  23. install)
  24. make install
  25. ;;
  26. clean)
  27. make clean
  28. ;;
  29. *)
  30. echo "Illegal command $1"
  31. exit 1
  32. ;;
  33. esac