gdt | a3214b7 | 2005-12-29 15:40:49 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Greg Troxel | b65c639 | 2010-03-10 14:03:54 -0500 | [diff] [blame^] | 3 | # $QuaggaId: Format:%an, %ai, %h$ $ |
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 | |
Greg Troxel | 1483819 | 2007-08-02 13:38:38 +0000 | [diff] [blame] | 9 | # Quagga is currently documented not to require GNU make, but sometimes |
| 10 | # BSD make fails. Enable this if statement as a workaround. |
| 11 | if false; then |
Greg Troxel | 37ccd14 | 2007-08-02 13:23:57 +0000 | [diff] [blame] | 12 | MAKE=gmake |
Greg Troxel | 1483819 | 2007-08-02 13:38:38 +0000 | [diff] [blame] | 13 | echo "WARNING: using gmake to work around nonportable makefiles" |
Greg Troxel | 37ccd14 | 2007-08-02 13:23:57 +0000 | [diff] [blame] | 14 | fi |
| 15 | |
gdt | a3214b7 | 2005-12-29 15:40:49 +0000 | [diff] [blame] | 16 | case $1 in |
| 17 | |
| 18 | build) |
Greg Troxel | 409d8e4 | 2007-02-02 17:03:03 +0000 | [diff] [blame] | 19 | ./bootstrap.sh |
gdt | a3214b7 | 2005-12-29 15:40:49 +0000 | [diff] [blame] | 20 | LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \ |
| 21 | ./configure --prefix=/usr/quagga \ |
| 22 | --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \ |
| 23 | --enable-exampledir=/usr/quagga/share/examples/zebra \ |
| 24 | --enable-pkgsrcrcdir=/usr/quagga/etc/rc.d \ |
| 25 | --enable-opaque-lsa --enable-vtysh |
| 26 | make |
| 27 | ;; |
| 28 | |
| 29 | install) |
| 30 | make install |
| 31 | ;; |
| 32 | |
| 33 | clean) |
| 34 | make clean |
Greg Troxel | 1483819 | 2007-08-02 13:38:38 +0000 | [diff] [blame] | 35 | ;; |
| 36 | |
| 37 | *) |
| 38 | echo "Illegal command $1" |
| 39 | exit 1 |
| 40 | ;; |
gdt | a3214b7 | 2005-12-29 15:40:49 +0000 | [diff] [blame] | 41 | |
| 42 | esac |