File: rules

package info (click to toggle)
btrbk 0.32.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 596 kB
  • sloc: perl: 6,077; sh: 722; python: 201; makefile: 142
file content (27 lines) | stat: -rwxr-xr-x 658 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
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1

# main packaging script based on dh7 syntax

%:
	dh $@


# fix lintian issues:
# - systemd-service-file-outside-lib
# - duplicate-changelog-files
override_dh_auto_configure:
	dh_auto_configure
	sed -i \
	  -e 's/ChangeLog//' \
	  Makefile

execute_after_dh_auto_install:
	# Let dh place btrbk.service and btrbk.timer.
	mv debian/btrbk/usr/lib/systemd/system/* debian/
	rmdir debian/btrbk/usr/lib/systemd/system debian/btrbk/usr/lib/systemd

execute_after_dh_auto_clean:
	rm -f debian/btrbk.service debian/btrbk.timer