7 MANDIR
=${PREFIX}/share
/man
8 DOCDIR
=${PREFIX}/share
/doc
/${PACKAGE}
9 LXC_SCRIPT_DIR
=${PREFIX}/share
/lxc
10 LXC_TMPL_DIR
=${LXC_SCRIPT_DIR}/templates
11 LXC_HOOK_DIR
=${LXC_SCRIPT_DIR}/hooks
12 LXC_CONFIG_DIR
=${LXC_SCRIPT_DIR}/config
13 LXC_COMMON_CONFIG_DIR
=${LXC_CONFIG_DIR}/common.conf.d
14 SERVICEDIR
=${DESTDIR}/lib
/systemd
/system
16 MAN1DIR
=${MANDIR}/man1
/
17 MAN5DIR
=${MANDIR}/man5
/
18 BASHCOMPLDIR
=${PREFIX}/share
/bash-completion
/completions
/
19 ZSHCOMPLDIR
=${PREFIX}/share
/zsh
/vendor-completions
/
20 export PERLDIR
=${PREFIX}/share
/perl5
22 # this require package pve-doc-generator
24 include /usr
/share
/pve-doc-generator
/pve-doc-generator.mk
29 PVE_GENERATING_DOCS
=1 perl
-I.
-T
-e
"use PVE::CLI::pct; PVE::CLI::pct->generate_bash_completions();" >$@.tmp
33 PVE_GENERATING_DOCS
=1 perl
-I.
-T
-e
"use PVE::CLI::pct; PVE::CLI::pct->generate_zsh_completions();" >$@.tmp
41 install: pct lxc-pve.conf lxc-pve-prestart-hook lxc-pve-autodev-hook lxc-pve-poststop-hook \
42 lxcnetaddbr pct
.1 pct.conf
.5 pct.bash-completion pct.zsh-completion pve-userns.seccomp
43 PVE_GENERATING_DOCS
=1 perl
-I.
-T
-e
"use PVE::CLI::pct; PVE::CLI::pct->verify_api();"
45 install -m
0755 pct
${SBINDIR}
46 install -d
${LXC_SCRIPT_DIR}
47 install -m
0755 lxcnetaddbr
${LXC_SCRIPT_DIR}
48 install -m
0755 pve-container-stop-wrapper
${LXC_SCRIPT_DIR}
49 install -d
-m0755
${SERVICEDIR}
50 install -m0644 pve-container@.service
${SERVICEDIR}/
51 install -m0644
'system-pve\x2dcontainer.slice' ${SERVICEDIR}/
52 install -d
${LXC_HOOK_DIR}
53 install -m
0755 lxc-pve-prestart-hook
${LXC_HOOK_DIR}
54 install -m
0755 lxc-pve-autodev-hook
${LXC_HOOK_DIR}
55 install -m
0755 lxc-pve-poststop-hook
${LXC_HOOK_DIR}
56 install -d
${LXC_CONFIG_DIR}
57 install -m
0644 pve-userns.seccomp
${LXC_CONFIG_DIR}/pve-userns.seccomp
58 install -d
${LXC_COMMON_CONFIG_DIR}
59 install -m
0644 lxc-pve.conf
${LXC_COMMON_CONFIG_DIR}/01-pve.conf
60 install -m
0644 -D pct.bash-completion
${BASHCOMPLDIR}/pct
61 install -m
0644 -D pct.zsh-completion
${ZSHCOMPLDIR}/_pct
65 install -m
0644 pct
.1 ${MAN1DIR}
66 gzip
-9 ${MAN1DIR}/pct
.1
67 install -m
0644 pct.conf
.5 ${MAN5DIR}
68 gzip
-9 ${MAN5DIR}/pct.conf
.5
69 cd
${MAN5DIR}; ln
-s pct.conf
.5.gz ct.conf
.5.gz
70 install -D
-m
0644 10-pve-ct-inotify-limits.conf
${LIBDIR}/sysctl.d
/10-pve-ct-inotify-limits.conf
72 pve-userns.seccomp
: /usr
/share
/lxc
/config
/common.seccomp
74 echo
'keyctl errno 38' >> $@
84 rm -rf
*.1 *.5 *.tmp
*.bash-completion
85 rm -rf
*.1 *.5 *.tmp
*.zsh-completion
86 find .
-name
'*~' -exec
rm {} ';'