File: rules

package info (click to toggle)
nodm 0.13-1.3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 536 kB
  • ctags: 169
  • sloc: ansic: 1,942; sh: 365; makefile: 82
file content (27 lines) | stat: -rwxr-xr-x 900 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

override_dh_auto_configure:
	# upstream tarball is without configure. autogen.sh will create it
	NOCONFIGURE=1 ./autogen.sh
	dh_auto_configure $(DHFLAGS)

override_dh_auto_install:
	dh_auto_install -- systemdsystemunitdir=/lib/systemd/system
	echo "# Debian-specific change until all display managers participate in /etc/X11/default-display-manager" >> debian/nodm/lib/systemd/system/nodm.service
	echo "ExecStartPre=/bin/sh -c '[ \"\$$(cat /etc/X11/default-display-manager 2>/dev/null)\" = \"/usr/sbin/nodm\" ]'" >> debian/nodm/lib/systemd/system/nodm.service

override_dh_auto_test:
	#make check

override_dh_installinit:
	dh_installinit -r -- defaults

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --destdir=..