File: rules

package info (click to toggle)
vlock 2.2.2-8
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 508 kB
  • ctags: 322
  • sloc: ansic: 2,950; sh: 882; makefile: 205
file content (32 lines) | stat: -rwxr-xr-x 790 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
30
31
32
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
include /usr/share/dpkg/architecture.mk
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_fixperms:
	dh_fixperms
	chmod 0755 debian/vlock/usr/lib/vlock/modules/*.so
	chmod 4755 debian/vlock/usr/sbin/vlock-main