]> git.proxmox.com Git - lxc.git/blob - debian/rules
apparmor: add rule for allowing remount of boot_id
[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 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
7 DPKG_EXPORT_BUILDFLAGS = 1
8 include /usr/share/dpkg/default.mk
9
10 %:
11 dh $@ --with autoreconf,quilt
12
13 override_dh_auto_configure:
14 dh_auto_configure -- \
15 --with-distro=debian \
16 --with-init-script=systemd \
17 --enable-apparmor \
18 --enable-doc \
19 --enable-api-docs \
20 --disable-rpath \
21 --disable-selinux \
22 --enable-bash \
23 --disable-cgmanager \
24 --disable-python \
25 --disable-lua \
26 --disable-examples \
27 --enable-seccomp \
28 --disable-static \
29 --with-cgroup-pattern='lxc/%n' \
30 SECCOMP_CFLAGS="-I/usr/lib/pve-libseccomp2.4/include" \
31 SECCOMP_LIBS="-L/usr/lib/$(DEB_HOST_MULTIARCH)/pve-libseccomp2.4 -lseccomp" \
32
33 override_dh_fixperms:
34 dh_fixperms -Xusr/lib/$(DEB_HOST_MULTIARCH)/lxc/lxc-user-nic
35
36 override_dh_install:
37 rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
38 dh_apparmor -p lxc-pve --profile-name=usr.bin.lxc-start
39 dh_apparmor -p lxc-pve --profile-name=lxc-containers
40 dh_install --fail-missing
41
42 override_dh_installsystemd:
43 dh_installsystemd -plxc-pve -r lxc-monitord.service lxc-net.service
44 dh_installsystemd -plxc-pve -r --no-restart-after-upgrade lxc.service