File: rules

package info (click to toggle)
consolekit2 1.2.6-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,568 kB
  • sloc: ansic: 23,228; xml: 2,126; makefile: 1,145; sh: 677; python: 585
file content (47 lines) | stat: -rwxr-xr-x 1,457 bytes parent folder | download | duplicates (2)
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
41
42
43
44
45
46
47
#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed -Wl,-O1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --with autoreconf

ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFFLAGS = --enable-libudev \
	--enable-udev-acl
endif

override_dh_autoreconf:
	# As XDT macros are present in configure.ac, plain dh_autoreconf runs
	# xdt-autogen, see #893746; but that invokes glib-gettextize which creates an
	# incompatible po/Makefile.in.in.  So ensure ./autogen.sh itself is run.
	NOCONFIGURE=1 dh_autoreconf --as-needed ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- $(CONFFLAGS) \
		--libexecdir="\$$(prefix)/lib/ConsoleKit" \
		--with-rundir=/run \
		--with-xinitrc-dir=/etc/X11/Xsession.d \
		--enable-polkit \
		--enable-libevdev \
		--enable-libdrm \
		--enable-libselinux \
		--enable-pam-module \
		--with-pid-file=/run/console-kit-daemon.pid \
		--without-systemdsystemunitdir \
		--enable-docbook-docs \
		--enable-gtk-doc \
		--with-pam-module-dir=/usr/lib/$(DEB_HOST_MULTIARCH)/security

override_dh_install:
	# la files are not required any more
	rm debian/tmp/usr/lib/*/security/pam_ck_connector.la \
	   debian/tmp/usr/lib/*/libck-connector.la \
	   debian/tmp/usr/lib/*/libconsolekit.la
	# end user doesn't need these files
	rm debian/tmp/usr/sbin/ck-log-system-restart \
	   debian/tmp/usr/sbin/ck-log-system-start \
	   debian/tmp/usr/sbin/ck-log-system-stop
	dh_install