--- a/debian/rules Fri Apr 29 13:00:10 2011 +0200
+++ b/debian/rules Fri Apr 29 16:26:48 2011 +0200
@@ -15,7 +15,7 @@
configure-stamp:
dh_testdir
# Add here commands to configure the package.
- ./configure --prefix=/usr
+ perl Build.PL --install-base=/usr
touch $@
@@ -25,7 +25,7 @@
dh_testdir
# Add here commands to compile the package.
- chmod +x ftbackup
+ ./Build
#docbook-to-man debian/ftbackup.sgml > ftbackup.1
touch $@
@@ -36,7 +36,7 @@
rm -f build-stamp configure-stamp
# Add here commands to clean up after the build process.
- -$(MAKE) distclean
+ -./Build distclean
dh_clean
@@ -47,10 +47,10 @@
dh_installdirs
# Add here commands to install the package into debian/ftbackup.
- $(MAKE) DESTDIR=$(CURDIR)/debian/ftbackup install
+ ./Build --destdir=$(CURDIR)/debian/ftbackup install
- install -d $(CURDIR)/debian/ftbackup/etc/ftbackup
- install -m 0600 ftbackup.conf.example $(CURDIR)/debian/ftbackup/etc/ftbackup/default
+ install -d $(CURDIR)/debian/ftbackup/etc
+ install -m 0600 ftbackup.conf.example $(CURDIR)/debian/ftbackup/etc/ftbackup.conf
# Build architecture-independent files here.
binary-indep: build install