]>
Commit | Line | Data |
---|---|---|
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 | ||
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 | ||
9108d962 | 10 | %: |
92de5cbc WB |
11 | dh $@ |
12 | ||
13 | override_dh_auto_clean: | |
14 | rm -fr build | |
9108d962 DM |
15 | |
16 | override_dh_auto_configure: | |
92de5cbc WB |
17 | mkdir -p build |
18 | cd build && meson .. --prefix=/usr \ | |
19 | -Dinit-script=systemd \ | |
20 | -Dapparmor=true \ | |
21 | -Dseccomp=true \ | |
22 | -Dselinux=false \ | |
23 | -Dman=true \ | |
24 | -Dexamples=false \ | |
25 | -Dcgroup-pattern='lxc/%n' | |
26 | ||
27 | # override_dh_auto_build: | |
28 | # cd build && ninja -v | |
29 | # | |
30 | # override_dh_auto_test: | |
31 | # cd build && ninja test | |
9108d962 | 32 | |
f34b9289 WB |
33 | override_dh_fixperms: |
34 | dh_fixperms -Xusr/lib/$(DEB_HOST_MULTIARCH)/lxc/lxc-user-nic | |
9108d962 | 35 | |
419e96ed | 36 | override_dh_install: |
1ffb259f | 37 | rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la |
737d0a61 | 38 | rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/liblxc.a |
b76bfba9 | 39 | dh_apparmor -p lxc-pve --profile-name=usr.bin.lxc-start |
0b34d2a8 | 40 | dh_apparmor -p lxc-pve --profile-name=lxc-containers |
f6eac540 TL |
41 | dh_install |
42 | ||
43 | override_dh_missing: | |
44 | dh_missing --fail-missing | |
ef3ede14 | 45 | |
d3bbd2a2 WB |
46 | override_dh_installsystemd: |
47 | dh_installsystemd -plxc-pve -r lxc-monitord.service lxc-net.service | |
48 | dh_installsystemd -plxc-pve -r --no-restart-after-upgrade lxc.service |