File: rules

package info (click to toggle)
sanoid 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 648 kB
  • sloc: perl: 3,166; sh: 590; makefile: 25
file content (34 lines) | stat: -rwxr-xr-x 800 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/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 $@

DESTDIR = $(CURDIR)/debian/sanoid
override_dh_auto_install:
	install -d $(DESTDIR)/etc/sanoid
	install -m 664 sanoid.defaults.conf $(DESTDIR)/etc/sanoid

	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

	dh_installsystemd --name sanoid-prune

override_dh_installinit:
	dh_installinit --noscripts

override_dh_systemd_enable:
	dh_systemd_enable sanoid.timer
	dh_systemd_enable sanoid-prune.service

override_dh_systemd_start:
	dh_systemd_start sanoid.timer