Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
4 DPKG_EXPORT_BUILDFLAGS = 1
5 include /usr/share/dpkg/buildflags.mk
6
7 BUILDDIR = $(CURDIR)/debian/build
8 DESTDIR = $(CURDIR)/debian/tmp
9
10 %:
11 dh $@ --builddir $(BUILDDIR)
12
13 # Run configure.
14 #
15 # We want to be explicit about the user the daemon will run as, even
16 # though it matches the default, in case upstream changes their mind
17 # about the name at some point in the future.
18 override_dh_auto_configure:
19 dh_auto_configure -- \
20 -Dinit_script=other \
21 -Dsystem_user=libvirtdbus
22
23 # Install files.
24 #
25 # We use debian/tmp as a staging area so that we can have full control
26 # over what exactly ends up in the package.
27 override_dh_auto_install:
28 dh_auto_install --destdir $(DESTDIR)
29
30 # Install extra files.
31 #
32 # The upstream build system takes care of most files, but we also add
33 # a few extra: this will make it possible to conveniently pick them up
34 # using the usual debhelper tools later.
35 execute_after_dh_auto_install:
36 install -m 0755 -d \
37 $(DESTDIR)/usr/share/doc/libvirt-dbus/
38 install -m 0644 \
39 NEWS.rst \
40 $(DESTDIR)/usr/share/doc/libvirt-dbus/NEWS