blob: e541ec1e16c236d2dbc5c43c5bd46e8ba6c8368d [file] [log] [blame]
gdta3214b72005-12-29 15:40:49 +00001#!/bin/sh
2
Greg Troxelcf4a2bb2007-02-02 16:52:38 +00003$Id$
gdta3214b72005-12-29 15:40:49 +00004
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
Greg Troxel37ccd142007-08-02 13:23:57 +00009# Quagga is currently documented not to require GNU make, but the
10# contents of solaris seem to require it.
11
12if true; then
13 MAKE=gmake
14 echo "WARNING: using gmake to work around buggy solaris/Makefile.am"
15fi
16
gdta3214b72005-12-29 15:40:49 +000017case $1 in
18
19 build)
Greg Troxel409d8e42007-02-02 17:03:03 +000020 ./bootstrap.sh
gdta3214b72005-12-29 15:40:49 +000021 LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
22 ./configure --prefix=/usr/quagga \
23 --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
24 --enable-exampledir=/usr/quagga/share/examples/zebra \
25 --enable-pkgsrcrcdir=/usr/quagga/etc/rc.d \
26 --enable-opaque-lsa --enable-vtysh
27 make
28 ;;
29
30 install)
31 make install
32 ;;
33
34 clean)
35 make clean
36
37esac