File: rules

package info (click to toggle)
lxcfs 5.0.3-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 752 kB
  • sloc: ansic: 10,316; sh: 583; makefile: 46; python: 27
file content (51 lines) | stat: -rwxr-xr-x 1,420 bytes parent folder | download
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
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/vendor.mk

ifeq ($(DEB_VENDOR),Ubuntu)
	LXCFS_DEPENDS="systemd | cgroup-lite | cgroupfs-mount"
else
	LXCFS_DEPENDS="systemd | cgroupfs-mount"
endif

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

%:
	dh $@ --buildsystem=meson

override_dh_auto_install:
	dh_auto_install
	# Place systemd service file into /lib/, not /usr/lib/ (see https://github.com/lxc/lxcfs/pull/555)
	mkdir debian/lxcfs/lib/ && mv debian/lxcfs/usr/lib/systemd/ debian/lxcfs/lib/
	find debian/lxcfs -type f -name '*.la' -delete
	rm -rf debian/lxcfs/etc/init

override_dh_installinit:
	install -d -m 0755 debian/lxcfs/etc
	install -d -m 0755 debian/lxcfs/etc/init.d
	install -m 0755 config/init/sysvinit/lxcfs debian/lxcfs.init
	dh_installinit -p lxcfs --no-start --no-stop-on-upgrade

override_dh_installsystemd:
	dh_installsystemd -p lxcfs --no-start --no-stop-on-upgrade lxcfs.service

override_dh_installman:
	/usr/bin/help2man -n "Set up cgroup fs for containers" --no-discard-stderr -s 1 -I lxcfs.man.add -N debian/lxcfs/usr/bin/lxcfs > lxcfs.1
	dh_installman lxcfs.1

override_dh_autoreconf:
	[ -e m4 ] || mkdir m4
	dh_autoreconf

override_dh_gencontrol:
	dh_gencontrol -- -Vlxcfs:Depends=$(LXCFS_DEPENDS)

clean:
	dh_autoreconf_clean
	dh_clean