File: rules

package info (click to toggle)
acct 6.6.4-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 4,344 kB
  • sloc: ansic: 15,912; sh: 11,364; cpp: 290; makefile: 149
file content (38 lines) | stat: -rwxr-xr-x 983 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
38
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DH_VERBOSE = 1
include /usr/share/dpkg/pkg-info.mk
%:
	dh $@

override_dh_auto_clean:
	dh_auto_clean
	rm -f config.log

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		$(NULL)
	# Ensure any embedded "updated.." timestamps in documentation match the
	# latest entry in debian/changelog.
	touch --date="@$(SOURCE_DATE_EPOCH)" accounting.texi

override_dh_auto_build:
	dh_auto_build
	$(MAKE) info
	makeinfo --html accounting.texi -o html

override_dh_auto_install:
	dh_auto_install --destdir=$(CURDIR)/debian/tmp

	# Removing last, it's in the sysvinit package instead.
	rm -f debian/tmp/usr/bin/last
	rm -f debian/tmp/usr/share/man/man1/last.1

override_dh_installman:
	dh_installman ac.1 accton.8 dump-acct.8 dump-utmp.8 lastcomm.1 sa.8	

override_dh_installinit:
	dh_installinit -- start 20 2 3 4 5 . stop 20 1 .