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
|
#!/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 --no-restart-after-upgrade -- defaults
override_dh_installsystemd:
dh_installsystemd -r --no-restart-after-upgrade
get-orig-source:
uscan --noconf --force-download --rename --download-current-version --destdir=..
|