File: rules

package info (click to toggle)
vlock 2.2.2-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 580 kB
  • sloc: ansic: 2,946; sh: 871; makefile: 208
file content (39 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
38
39
#!/usr/bin/make -f

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

include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

ifeq ($(origin CC),default)
CC = $(DEB_HOST_GNU_TYPE)-gcc
endif

%:
	dh $@

override_dh_auto_configure:
	./configure CC=$(CC) VLOCK_GROUP=root EXTRA_CFLAGS="$(CFLAGS)" EXTRA_LDFLAGS="$(LDFLAGS)"
	sed -i 's/new\.so//' config.mk # disable unfixably insecure module #702705

# There are some issues in tests. So, do nothing.
override_dh_auto_test:

override_dh_auto_build:
	dh_auto_build -- PREFIX=/usr

override_dh_auto_install:
	dh_auto_install -- PREFIX=/usr

override_dh_installexamples:
	dh_installexamples --exclude=Makefile

override_dh_install:
	dh_install
	mv debian/vlock/etc/pam.d/tmp/vlock.pam debian/vlock/etc/pam.d/vlock
	rmdir debian/vlock/etc/pam.d/tmp/

execute_after_dh_fixperms:
	chmod 0755 debian/vlock/usr/lib/vlock/modules/*.so
	chmod 4755 debian/vlock/usr/sbin/vlock-main