File: rules

package info (click to toggle)
libvirt-dbus 1.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 888 kB
  • sloc: ansic: 8,558; xml: 1,588; python: 926; sh: 149; makefile: 19
file content (40 lines) | stat: -rwxr-xr-x 1,171 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
#!/usr/bin/make -f

DEB_BUILD_MAINT_OPTIONS = hardening=+bindnow
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

BUILDDIR = $(CURDIR)/debian/build
DESTDIR = $(CURDIR)/debian/tmp

%:
	dh $@ --builddir $(BUILDDIR)

# Run configure.
#
# We want to be explicit about the user the daemon will run as, even
# though it matches the default, in case upstream changes their mind
# about the name at some point in the future.
override_dh_auto_configure:
	dh_auto_configure -- \
	                  -Dinit_script=other \
	                  -Dsystem_user=libvirtdbus

# Install files.
#
# We use debian/tmp as a staging area so that we can have full control
# over what exactly ends up in the package.
override_dh_auto_install:
	dh_auto_install --destdir $(DESTDIR)

# Install extra files.
#
# The upstream build system takes care of most files, but we also add
# a few extra: this will make it possible to conveniently pick them up
# using the usual debhelper tools later.
execute_after_dh_auto_install:
	install -m 0755 -d \
	        $(DESTDIR)/usr/share/doc/libvirt-dbus/
	install -m 0644 \
	        NEWS.rst \
	        $(DESTDIR)/usr/share/doc/libvirt-dbus/NEWS