]>
Commit | Line | Data |
---|---|---|
a3214b79 | 1 | #!/bin/sh |
2 | ||
cf4a2bbe | 3 | $Id$ |
a3214b79 | 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 | ||
37ccd146 GT |
9 | # Quagga is currently documented not to require GNU make, but the |
10 | # contents of solaris seem to require it. | |
11 | ||
12 | if true; then | |
13 | MAKE=gmake | |
14 | echo "WARNING: using gmake to work around buggy solaris/Makefile.am" | |
15 | fi | |
16 | ||
a3214b79 | 17 | case $1 in |
18 | ||
19 | build) | |
409d8e4f | 20 | ./bootstrap.sh |
a3214b79 | 21 | 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 | ||
37 | esac |