summaryrefslogtreecommitdiff
path: root/README.NetBSD
blob: 10754815d0ea4e4134fd6504945678837629813a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh

$Id$

# This file is helpful for building quagga from cvs on NetBSD, and
# probably on any system using pkgsrc.  
# One should have readline installed already (pkgsrc/devel/readline).

case $1 in

    build)
	./bootstrap.sh
	LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
    	./configure --prefix=/usr/quagga \
	    --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
	    --enable-exampledir=/usr/quagga/share/examples/zebra \
	    --enable-pkgsrcrcdir=/usr/quagga/etc/rc.d \
	    --enable-opaque-lsa --enable-vtysh
	make
	;;

    install)
    	make install
	;;

    clean)
    	make clean

esac