File: rules

package info (click to toggle)
snoopy 2.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,016 kB
  • sloc: ansic: 7,169; sh: 4,514; makefile: 1,095
file content (40 lines) | stat: -rwxr-xr-x 1,053 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
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

OS_ID = $(shell cat /etc/os-release | grep ^ID= | cut -d= -f2)


%:
	dh $@


override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--libdir=/lib/$(DEB_HOST_MULTIARCH) \
		--sysconfdir=/etc \
		--with-message-format='[login:%{login} ssh:(%{env:SSH_CONNECTION}) sid:%{sid} tty:%{tty} (%{tty_uid}/%{tty_username}) uid:%{username}(%{uid})/%{eusername}(%{euid}) cwd:%{cwd}]: %{cmdline}'


override_dh_auto_install:
	dh_auto_install
	
	find debian/ -name "*.la" -delete
	
	@if [ "$(OS_ID)" = "ubuntu" ] ; then \
	    mkdir -p                                     debian/snoopy/var/lib/snapd/apparmor/snap-confine ; \
	    cp debian/extra-files/snapd-apparmor-profile debian/snoopy/var/lib/snapd/apparmor/snap-confine/snoopy ; \
	fi


override_dh_clean:
	dh_clean
	
	find . -name Makefile.in -exec rm {} \+
	rm -f aclocal.m4 compile configure test-drive


override_dh_missing:
	dh_missing --fail-missing