gdt | a3214b7 | 2005-12-29 15:40:49 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Greg Troxel | cf4a2bb | 2007-02-02 16:52:38 +0000 | [diff] [blame] | 3 | $Id$ |
gdt | a3214b7 | 2005-12-29 15:40:49 +0000 | [diff] [blame] | 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 | |
| 9 | case $1 in |
| 10 | |
| 11 | build) |
Greg Troxel | 409d8e4 | 2007-02-02 17:03:03 +0000 | [diff] [blame] | 12 | ./bootstrap.sh |
gdt | a3214b7 | 2005-12-29 15:40:49 +0000 | [diff] [blame] | 13 | 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 | |
| 29 | esac |
| 30 | |