dnstop (20080321-1) Makefile.patch

Summary

 Makefile |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

    
download this patch

Patch contents

--- Makefile.orig	2008-03-28 21:20:21.000000000 +0100
+++ Makefile	2008-03-28 22:11:20.000000000 +0100
@@ -1,5 +1,5 @@
 CFLAGS=-g -Wall
-OPTFLAGS=-DUSE_IPV6=1 -DUSE_PPP=0
+OPTFLAGS=-DUSE_IPV6=1 -DUSE_PPP=1
 PROG=dnstop
 DATE != date +%Y%m%d
 CC=gcc
@@ -14,8 +14,8 @@
 	hashtbl.o \
 	lookup3.o
 
-PREFIX=/usr/local
-BINDIR=$(PREFIX)/bin
+PREFIX=$(DESTDIR)/usr
+BINDIR=$(PREFIX)/sbin
 DATADIR=$(PREFIX)/share
 MANDIR=$(DATADIR)/man
 
@@ -44,6 +44,8 @@
 	md5 *.gz > MD5s.txt
 
 install: $(PROG)
+	install -d $(BINDIR)
+	install -d $(MANDIR)/man8
 	install -m 755 $(PROG) $(BINDIR)
 	install -m 644 $(PROG).8 $(MANDIR)/man8