#! /bin/sh /usr/share/dpatch/dpatch-run
## 10_Makefile_destdir.dpatch by  <"Kurt B. Kaiser" <kbk@shore.net>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: add DESTDIR to paths

@DPATCH@
diff -urNad flexbackup~/Makefile flexbackup/Makefile
--- flexbackup~/Makefile	2003-07-29 10:00:07.000000000 -0700
+++ flexbackup/Makefile	2006-09-05 13:52:42.000000000 -0700
@@ -7,12 +7,12 @@
 PREFIX=/usr
 
 # Where the script binary should go
-BINPATH = $(PREFIX)/bin
+BINPATH = $(DESTDIR)$(PREFIX)/bin
 # Where the manpage should go
-MANPATH = $(PREFIX)/share/man
+MANPATH = $(DESTDIR)$(PREFIX)/share/man
 
 # Where flexbackup.conf should be stored
-CONFFILE = /etc/flexbackup.conf
+CONFFILE = $(DESTDIR)/etc/flexbackup.conf
 
 # Where perl lives
 PERLPATH = /usr/bin/perl
