Adam Tkac ad265a6
diff -up dnscap-134/Makefile.in.installfix dnscap-134/Makefile.in
Adam Tkac ad265a6
--- dnscap-134/Makefile.in.installfix	2012-01-06 13:18:32.207596332 +0100
Adam Tkac ad265a6
+++ dnscap-134/Makefile.in	2012-01-06 13:19:58.580734469 +0100
Adam Tkac ad265a6
@@ -45,11 +45,11 @@ OBJS=	${prog}.o \
Adam Tkac ad265a6
 all: ${prog} ${prog}.cat1
Adam Tkac ad265a6
 
Adam Tkac ad265a6
 install: all
Adam Tkac ad265a6
-	mkdir -p ${bindir} ${mandir}
Adam Tkac ad265a6
-	if [ -f ${bindir}/${prog} ]; then \
Adam Tkac ad265a6
-		mv -f ${bindir}/${prog} ${bindir}/${prog}.old; fi
Adam Tkac ad265a6
-	cp ${prog} ${bindir}
Adam Tkac ad265a6
-	cp ${prog}.cat1 /usr/local/man/cat1/${prog}.1
Adam Tkac ad265a6
+	mkdir -p ${DESTDIR}${bindir} ${DESTDIR}${mandir}/man1
Adam Tkac ad265a6
+	if [ -f ${DESTDIR}${bindir}/${prog} ]; then \
Adam Tkac ad265a6
+		mv -f ${DESTDIR}${bindir}/${prog} ${DESTDIR}${bindir}/${prog}.old; fi
Adam Tkac ad265a6
+	cp ${prog} ${DESTDIR}${bindir}
Adam Tkac ad265a6
+	cp ${prog}.1 ${DESTDIR}${mandir}/man1
Adam Tkac ad265a6
 
Adam Tkac ad265a6
 .c.o:
Adam Tkac ad265a6
 	${CC} ${CFLAGS} -c $<