From 0e27ccf3cd31ffa9aef39cd733e9f93b3739c7d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20St=C3=BChmer?= Date: Thu, 30 Apr 2015 13:54:07 +0200 Subject: [PATCH] Describe building the debian package --- Debian.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Debian.md b/Debian.md index 28afc59..df6d517 100644 --- a/Debian.md +++ b/Debian.md @@ -1 +1,29 @@ -Welcome to the zfs-auto-snapshot wiki! +Make ZFS Snapshots work on Debian +================================= + +A `.deb` package can be created for `zfs-auto-snapshot` in just a few (manual) steps. + +As a non-root user do: + +Get the code: + + $ cd /usr/src (or wherever you want to build the .deb) + $ git clone https://github.com/zfsonlinux/zfs-auto-snapshot.git + +Optional: If you want to expose snapshots via Samba's [vfs_shadow_copy2](https://www.samba.org/samba/docs/man/manpages/vfs_shadow_copy2.8.html) to Windows users as *shadow copies* you must merge this code first: + + $ git checkout leecallen + $ git merge master + $ editor src/zfs-auto-snapshot.sh (manually fix a conflict) + $ git add . + $ git commit -a + +Get the debian-specific changes and build the `.deb`: + + $ git merge origin/debian + $ dpkg-buildpackage -b -uc -us + +As root install the `.deb`: + + $ sudo dpkg -i ../zfs-auto-snapshot_*.deb +