chiark / gitweb /
creating suite suites/unstable
[elogind.git] / debian / rules
1 #! /usr/bin/make -f
2
3 # The options have been chooses as follows:
4 # - manually set pamlibdir because we'Re installing in /usr by default but 
5 #   pam libs must go to /lib/*/security
6 # - Disable lto because this makes the build fail with static library 
7 #   warnings and with  linking errors. (It seems taht instead of ar/ld 
8 #   gcc-ar and gcc should be used)
9 # - tests disabled beacuase some of the tests seem to require elogind running.
10 #   Need to sort out which tests could be run
11
12 CONFFLAGS = \
13   --with-pamlibdir=/lib/$(DEB_HOST_MULTIARCH)/security \
14   --with-udevrulesdir=/lib/udev/rules.d \
15   --disable-lto \
16   --disable-tests
17
18 CONFFLAGS_CGROUPCTRL_ELOGIND= \
19   --with-cgroup-controller=elogind
20
21 override_dh_autoreconf:
22         dh_autoreconf ./autogen.sh
23
24 override_dh_auto_configure:
25         dh_auto_configure --builddirectory=build \
26     -- $(CONFFLAGS) $(CONFFLAGS_CGROUPCTRL_ELOGIND)
27
28 override_dh_missing:
29         dh_missing --list-missing
30
31 override_dh_shlibdeps:
32         dh_shlibdeps -- -xlibeudev1
33           
34 %:
35         dh $@ --builddirectory=build --with autoreconf --parallel