Merge pull request #148 from DHowett/master

Build sanoid as a native Debian package
This commit is contained in:
Jim Salter 2017-11-08 10:10:21 -05:00 committed by GitHub
commit 03c15e42b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 98 additions and 0 deletions

9
debian/changelog vendored Normal file
View File

@ -0,0 +1,9 @@
sanoid (1.4.16) unstable; urgency=medium
* merged @hrast01's extended fix to support -o option1=val,option2=val passthrough to SSH. merged @JakobR's
* off-by-one fix to stop unnecessary extra snapshots being taken under certain conditions. merged @stardude900's
* update to INSTALL for FreeBSD users re:symlinks. Implemented @LordAro's update to change DIE to WARN when
* encountering a dataset with no snapshots and --no-sync-snap set during recursive replication. Implemented
* @LordAro's update to sanoid.conf to add an ignore template which does not snap, prune, or monitor.
-- Jim Salter <github@jrs-s.net> Wed, 9 Aug 2017 12:28:49 -0400

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

14
debian/control vendored Normal file
View File

@ -0,0 +1,14 @@
Source: sanoid
Section: unknown
Priority: optional
Maintainer: Dustin L. Howett <dustin@howett.net>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.8
Homepage: https://github.com/jimsalterjrs/sanoid
Vcs-Git: https://github.com/jimsalterjrs/sanoid.git
Vcs-Browser: https://github.com/jimsalterjrs/sanoid
Package: sanoid
Architecture: all
Depends: ${misc:Depends}, ${perl:Depends}, zfsutils-linux, libconfig-inifiles-perl
Description: Policy-driven snapshot management and replication tools

33
debian/copyright vendored Normal file
View File

@ -0,0 +1,33 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: sanoid
Source: <https://github.com/jimsalterjrs/sanoid>
Files: *
Copyright: 2017 Jim Salter <github@jrs-s.net>
License: GPL-3.0+
Files: debian/*
Copyright: 2017 Jim Salter <github@jrs-s.net>
License: GPL-3.0+
License: GPL-3.0+
This program 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 3 of the License, or
(at your option) any later version.
.
This package 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
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.

20
debian/rules vendored Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/make -f
# See debhelper(7) for more info
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
%:
dh $@ --with systemd
DESTDIR = $(CURDIR)/debian/sanoid
override_dh_auto_install:
@mkdir -p $(DESTDIR)/usr/sbin; \
cp sanoid syncoid findoid sleepymutex $(DESTDIR)/usr/sbin;
@mkdir -p $(DESTDIR)/etc/sanoid; \
cp sanoid.defaults.conf $(DESTDIR)/etc/sanoid;
@mkdir -p $(DESTDIR)/usr/share/doc/sanoid; \
cp sanoid.conf $(DESTDIR)/usr/share/doc/sanoid/sanoid.conf.example;
@mkdir -p $(DESTDIR)/lib/systemd/system; \
cp debian/sanoid.timer $(DESTDIR)/lib/systemd/system;

1
debian/sanoid.README.Debian vendored Normal file
View File

@ -0,0 +1 @@
To start, copy the example config file in /usr/share/doc/sanoid to /etc/sanoid/sanoid.conf.

1
debian/sanoid.docs vendored Normal file
View File

@ -0,0 +1 @@
README.md

9
debian/sanoid.service vendored Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Snapshot ZFS Pool
Requires=zfs.target
After=zfs.target
ConditionFileNotEmpty=/etc/sanoid/sanoid.conf
[Service]
Type=oneshot
ExecStart=/usr/sbin/sanoid --cron

9
debian/sanoid.timer vendored Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Run Sanoid Every 15 Minutes
[Timer]
OnCalendar=*:0/15
Persistent=true
[Install]
WantedBy=timers.target

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)