mirror of https://github.com/jimsalterjrs/sanoid
Merge pull request #446 from peterNordin/debian-packaging
Debian packaging
This commit is contained in:
commit
1f616e74cc
|
|
@ -0,0 +1,7 @@
|
|||
*.debhelper
|
||||
*.debhelper.log
|
||||
*.substvars
|
||||
debhelper-build-stamp
|
||||
files
|
||||
sanoid
|
||||
tmp
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
- This package needs to be a 3.0 (quilt) format, not 3.0 (native).
|
||||
- Fix the changelog
|
||||
- Move the packaging out to a separate repository, or at a minimum,
|
||||
a separate branch.
|
||||
- Provide an extended description in debian/control
|
||||
- Figure out a plan for sanoid.defaults.conf. It is not supposed to be
|
||||
edited, so it shouldn't be installed in /etc. At a minimum, install
|
||||
it under /usr and make a symlink, but preferably patch sanoid to look
|
||||
there directly.
|
||||
- Man pages are necessary for all the utilities installed.
|
||||
- With these, there is probably no need to ship README.md.
|
||||
- Break out syncoid into a separate package?
|
||||
|
|
@ -1 +1 @@
|
|||
9
|
||||
10
|
||||
|
|
|
|||
|
|
@ -1,14 +1,24 @@
|
|||
Source: sanoid
|
||||
Section: unknown
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Jim Salter <jim@openoid.net>
|
||||
Build-Depends: debhelper (>= 9)
|
||||
Standards-Version: 3.9.8
|
||||
Build-Depends: debhelper (>= 10)
|
||||
Standards-Version: 4.1.2
|
||||
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 | zfs, libconfig-inifiles-perl, libcapture-tiny-perl
|
||||
Depends: libcapture-tiny-perl,
|
||||
libconfig-inifiles-perl,
|
||||
systemd,
|
||||
zfsutils-linux | zfs,
|
||||
${misc:Depends},
|
||||
${perl:Depends}
|
||||
Recommends: gzip,
|
||||
lzop,
|
||||
mbuffer,
|
||||
openssh-client | ssh-client,
|
||||
pv
|
||||
Description: Policy-driven snapshot management and replication tools
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: sanoid
|
||||
Source: <https://github.com/jimsalterjrs/sanoid>
|
||||
Source: https://github.com/jimsalterjrs/sanoid
|
||||
|
||||
Files: *
|
||||
Copyright: 2017 Jim Salter <github@jrs-s.net>
|
||||
|
|
@ -8,6 +8,7 @@ License: GPL-3.0+
|
|||
|
||||
Files: debian/*
|
||||
Copyright: 2017 Jim Salter <github@jrs-s.net>
|
||||
2017 Richard Laager <rlaager@wiktel.com>
|
||||
License: GPL-3.0+
|
||||
|
||||
License: GPL-3.0+
|
||||
|
|
@ -26,8 +27,3 @@ License: GPL-3.0+
|
|||
.
|
||||
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.
|
||||
|
|
|
|||
|
|
@ -5,18 +5,25 @@
|
|||
#export DH_VERBOSE = 1
|
||||
|
||||
%:
|
||||
dh $@ --with systemd
|
||||
dh $@
|
||||
|
||||
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-prune.service debian/sanoid.timer $(DESTDIR)/lib/systemd/system;
|
||||
install -d $(DESTDIR)/etc/sanoid
|
||||
install -m 664 sanoid.defaults.conf $(DESTDIR)/etc/sanoid
|
||||
|
||||
install -d $(DESTDIR)/lib/systemd/system
|
||||
install -m 664 debian/sanoid-prune.service debian/sanoid.timer \
|
||||
$(DESTDIR)/lib/systemd/system
|
||||
|
||||
install -d $(DESTDIR)/usr/sbin
|
||||
install -m 775 \
|
||||
findoid sanoid sleepymutex syncoid \
|
||||
$(DESTDIR)/usr/sbin
|
||||
|
||||
install -d $(DESTDIR)/usr/share/doc/sanoid
|
||||
install -m 664 sanoid.conf \
|
||||
$(DESTDIR)/usr/share/doc/sanoid/sanoid.conf.example
|
||||
|
||||
override_dh_installinit:
|
||||
dh_installinit --noscripts
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
To start, copy the example config file in /usr/share/doc/sanoid to /etc/sanoid/sanoid.conf.
|
||||
To start, copy the example config file in /usr/share/doc/sanoid to
|
||||
/etc/sanoid/sanoid.conf.
|
||||
|
|
|
|||
Loading…
Reference in New Issue