]> git.proxmox.com Git - mirror_frr.git/blame_incremental - README.NetBSD
redhat: Don't set file attributes for symlinks
[mirror_frr.git] / README.NetBSD
... / ...
CommitLineData
1#!/bin/sh
2
3# This file is helpful for building quagga from cvs on NetBSD, and
4# probably on any system using pkgsrc.
5# One should have readline installed already (pkgsrc/devel/readline).
6
7MAKE=make
8# Quagga is currently documented not to require GNU make, but sometimes
9# BSD make fails. Enable this if statement as a workaround.
10if false; then
11 MAKE=gmake
12 echo "WARNING: using gmake to work around nonportable makefiles"
13fi
14
15# Use /usr/quagga to be independent, and /usr/pkg to overwrite pkgsrc.
16PREFIX=/usr/pkg
17
18case $1 in
19
20 build)
21 # Omitted because it is now default:
22 # --enable-opaque-lsa
23 ./bootstrap.sh
24 LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" CPPFLAGS="-I/usr/pkg/include" \
25 ./configure --prefix=${PREFIX} \
26 --sysconfdir=/etc/zebra --localstatedir=/var/run/zebra \
27 --enable-exampledir=${PREFIX}/share/examples/zebra \
28 --enable-pkgsrcrcdir=${PREFIX}/etc/rc.d \
29 --enable-vtysh
30 ${MAKE}
31 ;;
32
33 install)
34 ${MAKE} install
35 ;;
36
37 clean)
38 ${MAKE} clean
39 ;;
40
41 *)
42 echo "Usage: README.NetBSD (build|install|clean)"
43 exit 1
44 ;;
45
46esac