File: rules

package info (click to toggle)
fping 5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 944 kB
  • sloc: sh: 4,524; ansic: 2,661; perl: 606; makefile: 29
file content (29 lines) | stat: -rwxr-xr-x 848 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# GNU copyright 1997 to 1999 by Joey Hess.
# Copyright (c) 1999 Herbert Xu <herbert@debian.org>
# Copyright (c) 2004-2005 Anibal Monsalve Salazar <anibal@debian.org>
# Copyright (c) 2012-2017 Axel Beckert <abe@debian.org>

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --enable-ipv4 --enable-ipv6

override_dh_fixperms:
	dh_fixperms
	mv debian/fping/usr/sbin/fping* debian/fping/usr/bin/
	rmdir debian/fping/usr/sbin/
	# Use setuid only on non-linux architectures
	if dpkg-architecture -qDEB_HOST_ARCH_OS | grep -qv linux; then \
		chmod 4755 debian/fping/usr/bin/fping*; \
	fi

override_dh_installman:
	pod2man  -c "" -s 8 -r BACKWARDS-COMPATIBILITY -u debian/fping6.pod debian/fping6.8
	dh_installman