summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 3c262e6a570a49cf7ab316b0c15a26280ae8cf50 (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
#!/usr/bin/make -f 

LDFLAGS+=-Wl,--as-needed

%:
	dh $@ --with quilt,autoreconf,translations --parallel

override_dh_autoreconf:
	NOCONFIGURE=1 dh_autoreconf ./autogen.sh

# NOTE: Using GNOME for now, but we still need a proper configuration system
# See https://launchpad.net/bugs/799754
override_dh_auto_configure:
	dh_auto_configure -- --with-greeter-user=lightdm --with-user-session=ubuntu --enable-gtk-doc

override_dh_auto_test:
	#Disabled for now, are failing for some reason
	#DEBUG=1 dh_auto_test || { cat tests/test-suite.log; exit 1; }

override_dh_install:
	rm -r debian/tmp/usr/share/help/C/
	# we do install pam through installpam and init through installinit
	dh_install -X.a -X.la -Xpam.d -X'etc/init/lightdm.conf' --fail-missing
	chmod +x debian/lightdm/usr/lib/lightdm/lightdm-greeter-session

override_dh_installinit:
	dh_installinit --no-start

override_dh_installpam:
	dh_installpam
	dh_installpam --name=lightdm-autologin
	dh_installpam --name=lightdm-greeter
	
override_dh_makeshlibs:
	dh_makeshlibs -pliblightdm-gobject-1-0 -V'liblightdm-gobject-1-0 (>= 0.9.2)' -- -c4
	dh_makeshlibs -Nliblightdm-gobject-1-0