File: rules

package info (click to toggle)
physlock 13-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 136 kB
  • sloc: ansic: 532; makefile: 58
file content (19 lines) | stat: -rwxr-xr-x 436 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
#DH_VERBOSE = 1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
CFLAGS+=$(CPPFLAGS)

%:
	dh $@

# set appropriate PREFIX
override_dh_auto_install:
	make PREFIX=$(shell pwd)/debian/physlock/usr install
	# ensure setuid bit is enabled
	chmod u+s $(shell pwd)/debian/physlock/usr/bin/physlock

override_dh_fixperms:
	dh_fixperms --exclude /usr/bin/physlock