]> git.proxmox.com Git - lxc.git/blob - debian/rules
buildsys: rules: use build architecture
[lxc.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # output every command that modifies files on the build system.
4 #DH_VERBOSE = 1
5
6 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
7
8 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
9 DPKG_EXPORT_BUILDFLAGS = 1
10 include /usr/share/dpkg/default.mk
11
12 %:
13 dh $@ --parallel --with autoreconf,autotools-dev,quilt,systemd
14
15 override_dh_auto_configure:
16 dh_auto_configure -- \
17 --with-distro=debian \
18 --with-init-script=systemd \
19 --enable-apparmor \
20 --enable-doc \
21 --enable-api-docs \
22 --disable-rpath \
23 --disable-selinux \
24 --enable-bash \
25 --disable-cgmanager \
26 --disable-python \
27 --disable-lua \
28 --disable-examples \
29 --enable-seccomp
30
31 override_dh_strip:
32 dh_strip --dbg-package=lxc-pve-dbg
33
34 override_dh_fixperms:
35 dh_fixperms -Xusr/lib/$(DEB_HOST_MULTIARCH)/lxc/lxc-user-nic
36
37 override_dh_install:
38 rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
39 dh_apparmor -p lxc-pve --profile-name=usr.bin.lxc-start
40 dh_apparmor -p lxc-pve --profile-name=lxc-containers
41 dh_install --fail-missing
42
43 override_dh_systemd_start:
44 dh_systemd_start --no-restart-on-upgrade