summaryrefslogtreecommitdiff
path: root/debian/rules
blob: a2937c88077e7b5f83ab2344018b95cc1c082408 (plain)
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
#!/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