File: rules

package info (click to toggle)
rsnapshot 1.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,636 kB
  • sloc: perl: 4,778; xml: 382; sh: 340; ruby: 232; makefile: 119
file content (37 lines) | stat: -rwxr-xr-x 963 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
35
36
37
#!/usr/bin/make -f

export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PREFIX=/usr

%:
	dh $@

override_dh_update_autotools_config:
	./autogen.sh
	./configure

override_dh_install:
	dh_install
	# rename default configfile
	mv $(CURDIR)/debian/rsnapshot/etc/rsnapshot.conf.default \
	   $(CURDIR)/debian/rsnapshot/etc/rsnapshot.conf
	# html doc, see debian/doc-base
	cp $(CURDIR)/docs/HOWTOs/rsnapshot-HOWTO.en.html \
	   $(CURDIR)/debian/rsnapshot/usr/share/doc/rsnapshot/html/

override_dh_installexamples:
	# Remove unnecessary extra license file, (Policy Manual section 12.5)
	dh_installexamples -X utils/rsnapshotdb/LICENSE.txt

override_dh_fixperms:
	dh_fixperms
	# Fix permissions of the default rsnapshot_root directory
	chmod 0700 $(CURDIR)/debian/rsnapshot/var/cache/rsnapshot

override_dh_compress:
	# Do not compress example perl utilities
	dh_compress --exclude=.pl

override_dh_auto_test:
	# Tests require a special environment