diff options
Diffstat (limited to 'net/bandwidthd/files/patch-Makefile')
-rw-r--r-- | net/bandwidthd/files/patch-Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/net/bandwidthd/files/patch-Makefile b/net/bandwidthd/files/patch-Makefile new file mode 100644 index 000000000000..a556b5608a69 --- /dev/null +++ b/net/bandwidthd/files/patch-Makefile @@ -0,0 +1,40 @@ +--- Makefile.orig Mon Sep 22 20:48:07 2003 ++++ Makefile Sun Nov 2 12:28:29 2003 +@@ -1,7 +1,7 @@ + #Possible optimizations -fomit-frame-pointer -ffast-math + OBS= bandwidthd.o graph.o conf.tab.o conf.l.o +-LIBS= -lgd -lpng -lpcap +-CFLAGS= -O3 -Wall ++LIBS+= -lgd -lpng -lpcap ${LDFLAGS} ++CFLAGS+= + NONWALLCFLAGS= -O3 #-g -DDEBUG + + # Debugging stuff +@@ -20,7 +20,7 @@ + $(CC) $(CFLAGS) $(OBS) -o bandwidthd $(LIBS) + + conf.tab.c: conf.y +- bison -d conf.y ++ yacc -d conf.y + + conf.l.c: conf.l + lex -s -i -t -I conf.l > conf.l.c +@@ -34,12 +34,12 @@ + rm -f *.o bandwidthd *~ conf.tab.c conf.tab.h conf.l.c DEADJOE + + install: all +- mkdir -p /usr/local/bandwidthd/etc +- mkdir -p /usr/local/bandwidthd/htdocs +- cp bandwidthd /usr/local/bandwidthd +- cp etc/bandwidthd.conf /usr/local/bandwidthd/etc/ +- cp htdocs/legend.gif /usr/local/bandwidthd/htdocs/ +- cp htdocs/logo.gif /usr/local/bandwidthd/htdocs/ ++ mkdir -p ${PREFIX}/bandwidthd/etc ++ mkdir -p ${PREFIX}/bandwidthd/htdocs ++ cp bandwidthd ${PREFIX}/bandwidthd ++ cp etc/bandwidthd.conf ${PREFIX}/bandwidthd/etc/bandwidthd.conf-dist ++ cp htdocs/legend.gif ${PREFIX}/bandwidthd/htdocs/ ++ cp htdocs/logo.gif ${PREFIX}/bandwidthd/htdocs/ + + #**** Stuff where -WALL is turned off to reduce the noise in a compile so I can see my own errors ******************* + conf.l.o: conf.l.c |