dist-hook:
echo $(VERSION) >$(distdir)/RELEASE
+###--------------------------------------------------------------------------
+### Debian packaging.
+
+EXTRA_DIST += debian/copyright debian/changelog
+EXTRA_DIST += debian/control debian/rules
+EXTRA_DIST += debian/compat
+
###----- That's all, folks --------------------------------------------------
--- /dev/null
+*.log
+*.substvars
+rsync-backup
+files
+substvars
--- /dev/null
+rsync-backup (0.99.1) unstable; urgency=low
+
+ * Initial packaging.
+
+ -- Mark Wooding <mdw@distorted.org.uk> Sun, 07 Oct 2012 23:27:24 +0100
+
--- /dev/null
+Source: rsync-backup
+Section: utils
+Priority: extra
+Maintainer: Mark Wooding <mdw@distorted.org.uk>
+XS-Python-Version: >= 2.5
+Build-Depends: mlib-dev (>= 2.1.0), debhelper (>= 8.1)
+Standards-Version: 3.1.1
+
+Package: rsync-backup
+Architecture: any
+Depends: ${shlibs:Depends}, rsync, openssh-client
+Recommends: lvm2
+Description: Yet another `rsync --link-dest' backup script.
+ It uses rsync's ability to create hardlinks from (apparently) similar
+ existing local trees to make incre- mental dumps efficient, even from remote
+ sources. Restoring files is easy because the backups created are just
+ directories full of files, exactly as they were on the source - and this is
+ verified using the fshash(1) program (included).
+ .
+ The script does more than just running rsync. It is also responsible for
+ creating and removing snapshots of volumes to be backed up, and expiring old
+ dumps according to a user-specified retention policy.
--- /dev/null
+rsync-backup is copyright (c) 2012 Mark Wooding.
+
+rsync-backup is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+rsync-backup is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License in
+/usr/share/common-licenses/GPL; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
--- /dev/null
+create-backup-volume
+mount-backup-volume
+umount-backup-volume
--- /dev/null
+#! /usr/bin/make -f
+%:; dh $@ -Bdebian/build --parallel