File ourmon-web.code-destdir.patch of Package ourmon

Index: mrourmon/src/web.code/Makefile
===================================================================
--- mrourmon.orig/src/web.code/Makefile
+++ mrourmon/src/web.code/Makefile
@@ -21,6 +21,7 @@
 #
 BINDIR=/home/mrourmon/bin
 WEBDIR=/home/mrourmon/web.pages/bard
+DESTDIR=
 CFLAGS=-O 
 #CFLAGS=-g
 #
@@ -41,20 +42,20 @@ clean:
 # install everything including perl and shellscripts in this directory in the BINDIR
 oldinstall:
 	make drawtopn
-	cp drawtopn ${BINDIR}/drawtopn
-	chmod +x ${BINDIR}/drawtopn
-	cp batchip.sh batchipall.sh omupdate.sh ${BINDIR}
-	cp ombatch*.pl wormtolog.pl daily.pl monbackup.pl ${BINDIR}
-	cp omupdate.pl tcpworm.pl irc.pl ${BINDIR}
-	cp mklogdir.sh ${BINDIR}
-	chmod +x ${BINDIR}/*.sh
-	chmod +x ${BINDIR}/*.pl
+	cp drawtopn ${DESTDIR}/${BINDIR}/drawtopn
+	chmod +x ${DESTDIR}/${BINDIR}/drawtopn
+	cp batchip.sh batchipall.sh omupdate.sh ${DESTDIR}/${BINDIR}
+	cp ombatch*.pl wormtolog.pl daily.pl monbackup.pl ${DESTDIR}/${BINDIR}
+	cp omupdate.pl tcpworm.pl irc.pl ${DESTDIR}/${BINDIR}
+	cp mklogdir.sh ${DESTDIR}/${BINDIR}
+	chmod +x ${DESTDIR}/${BINDIR}/*.sh
+	chmod +x ${DESTDIR}/${BINDIR}/*.pl
 
 # nothing to do
 install:
-	cp bard/* ${WEBDIR}
-	cp batchip.sh batchipall.sh omupdate.sh ${BINDIR}
-	cp *.pl ${BINDIR}
-	cp mklogdir.sh ${BINDIR}
-	chmod +x ${BINDIR}/*.sh
-	chmod +x ${BINDIR}/*.pl
+	cp bard/* ${DESTDIR}/${WEBDIR}
+	cp batchip.sh batchipall.sh omupdate.sh ${DESTDIR}/${BINDIR}
+	cp *.pl ${DESTDIR}/${BINDIR}
+	cp mklogdir.sh ${DESTDIR}/${BINDIR}
+	chmod +x ${DESTDIR}/${BINDIR}/*.sh
+	chmod +x ${DESTDIR}/${BINDIR}/*.pl