blob: 10754815d0ea4e4134fd6504945678837629813a [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
9case $1 in
10
11 build)
Greg Troxel409d8e42007-02-02 17:03:03 +000012 ./bootstrap.sh
gdta3214b72005-12-29 15:40:49 +000013 LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
14 ./configure --prefix=/usr/quagga \
15 --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
16 --enable-exampledir=/usr/quagga/share/examples/zebra \
17 --enable-pkgsrcrcdir=/usr/quagga/etc/rc.d \
18 --enable-opaque-lsa --enable-vtysh
19 make
20 ;;
21
22 install)
23 make install
24 ;;
25
26 clean)
27 make clean
28
29esac
30