]> git.proxmox.com Git - lxc.git/blame - debian/rules
enable parallel builds
[lxc.git] / debian / rules
CommitLineData
9108d962 1#!/usr/bin/make -f
b919c812 2
9108d962
DM
3# output every command that modifies files on the build system.
4#DH_VERBOSE = 1
5
f34b9289
WB
6DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
7
9108d962
DM
8# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
9DPKG_EXPORT_BUILDFLAGS = 1
10include /usr/share/dpkg/default.mk
11
9108d962 12%:
d62021ec 13 dh $@ --parallel --with autoreconf,autotools-dev,quilt,systemd
9108d962
DM
14
15override_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 \
ed322262 25 --disable-cgmanager \
9108d962
DM
26 --disable-python \
27 --disable-lua \
234fb942
WB
28 --disable-examples \
29 --enable-seccomp
9108d962
DM
30
31override_dh_strip:
b76bfba9 32 dh_strip --dbg-package=lxc-pve-dbg
9108d962 33
f34b9289
WB
34override_dh_fixperms:
35 dh_fixperms -Xusr/lib/$(DEB_HOST_MULTIARCH)/lxc/lxc-user-nic
9108d962 36
419e96ed 37override_dh_install:
da73bbc6 38 rm debian/tmp/usr/lib/x86_64-linux-gnu/*.la
b76bfba9 39 dh_apparmor -p lxc-pve --profile-name=usr.bin.lxc-start
0b34d2a8 40 dh_apparmor -p lxc-pve --profile-name=lxc-containers
419e96ed 41 dh_install --fail-missing
ef3ede14 42
9f38024e
WB
43override_dh_systemd_start:
44 dh_systemd_start --no-restart-on-upgrade