#!/usr/bin/make -f include /usr/share/dpkg/architecture.mk %: dh $@ --with autoreconf ifeq (linux, $(DEB_HOST_ARCH_OS)) with-systemd := --with-systemdsystemunitdir=/lib/systemd/system else with-systemd := endif ifeq ($(DEB_HOST_ARCH_OS),linux) CONFFLAGS = --enable-udev-acl endif override_dh_auto_configure: dh_auto_configure -- $(CONFFLAGS) \ --libexecdir="\$$(prefix)/lib/ConsoleKit" \ --enable-pam-module \ --enable-docbook-docs \ --with-pid-file=/var/run/console-kit-daemon.pid \ $(with-systemd) \ --with-pam-module-dir=/lib/$(DEB_HOST_MULTIARCH)/security override_dh_auto_install: dh_auto_install install -m 755 debian/pam-foreground-compat.ck debian/tmp/usr/lib/ConsoleKit/run-session.d/ install -D -m 644 debian/libpam-ck-connector.pam-auth-update debian/tmp/usr/share/pam-configs/consolekit override_dh_install: dh_install ifeq ($(DEB_HOST_ARCH_OS),linux) dh_install -pconsolekit debian/tmp/lib/udev/ endif