]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/Makefile.am
Add more capabilities
[mirror_lxc.git] / src / lxc / Makefile.am
CommitLineData
05f05512 1INCLUDES= -I$(top_srcdir)/src -DLXCPATH="\"$(localstatedir)/lxc\"" -DLXCBINDIR="\"$(bindir)\""
b0a33c1e 2AM_LDFLAGS= -lutil
0ad19a3f 3lib_LTLIBRARIES = liblxc.la
4pkginclude_HEADERS = \
eae6543d 5 monitor.h \
0ad19a3f 6 lxc.h \
7 lxc_cgroup.h \
8 lxc_conf.h \
9 lxc_list.h \
10 lxc_lock.h \
11 lxc_log.h \
12 lxc_namespace.h \
13 lxc_state.h \
14 lxc_utils.h
15
16liblxc_la_SOURCES = \
17 create.c \
18 destroy.c \
19 start.c \
20 stop.c \
0ad19a3f 21 monitor.c monitor.h \
b0a33c1e 22 console.c \
0ad19a3f 23 freezer.c \
925aaa31 24 checkpoint.c \
25 restart.c \
681799f9 26 version.c \
58412580 27 error.h error.c \
576f946d 28 cgroup.c cgroup.h \
0ad19a3f 29 lxc.h \
30 lxc_utils.h \
31 lxc_lock.c lxc_lock.h \
32 lxc_namespace.h \
33 lxc_conf.c lxc_conf.h \
34 lxc_list.h \
35 lxc_state.c lxc_state.h \
36 lxc_log.c lxc_log.h \
37 \
38 network.c network.h \
39 nl.c nl.h \
40 rtnl.c rtnl.h \
13832f48 41 genl.c genl.h \
42 \
b0a33c1e 43 mainloop.c mainloop.h \
44 af_unix.c af_unix.h \
45 \
13832f48 46 cr_plugin_columbia.c lxc_plugin.h
0ad19a3f 47
48liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@
5e97c3fc 49
50bin_SCRIPTS = \
22e761af 51 lxc-ps \
0387b7a0 52 lxc-netstat \
13832f48 53 lxc-ls \
22e761af 54 lxc-checkconfig
5e97c3fc 55
56bin_PROGRAMS = \
13832f48 57 lxc-unshare \
05f05512 58 lxc-init \
5e97c3fc 59 lxc-create \
60 lxc-destroy \
61 lxc-stop \
62 lxc-start \
63 lxc-execute \
64 lxc-monitor \
b3ec9713 65 lxc-wait \
5e97c3fc 66 lxc-console \
5e97c3fc 67 lxc-freeze \
0ad19a3f 68 lxc-info \
576f946d 69 lxc-cgroup \
187d3a35 70 lxc-unfreeze \
925aaa31 71 lxc-checkpoint \
72 lxc-restart \
681799f9 73 lxc-version
5e97c3fc 74
13832f48 75lxc_unshare_SOURCES = lxc_unshare.c
76lxc_unshare_LDADD = liblxc.la
77
05f05512 78lxc_init_SOURCES = lxc_init.c
79lxc_init_LDADD = liblxc.la
80
c2cc9f0a 81lxc_create_SOURCES = lxc_create.c lxc_config.c lxc_config.h
96f3e4eb 82lxc_create_LDADD = liblxc.la
5e97c3fc 83
84lxc_destroy_SOURCES = lxc_destroy.c
96f3e4eb 85lxc_destroy_LDADD = liblxc.la
5e97c3fc 86
87lxc_start_SOURCES = lxc_start.c
96f3e4eb 88lxc_start_LDADD = liblxc.la
5e97c3fc 89
90lxc_stop_SOURCES = lxc_stop.c
96f3e4eb 91lxc_stop_LDADD = liblxc.la
5e97c3fc 92
7b40d70f 93lxc_execute_SOURCES = lxc_execute.c lxc_config.c lxc_config.h
96f3e4eb 94lxc_execute_LDADD = liblxc.la
5e97c3fc 95
96lxc_monitor_SOURCES = lxc_monitor.c
96f3e4eb 97lxc_monitor_LDADD = liblxc.la
5e97c3fc 98
b3ec9713 99lxc_wait_SOURCES = lxc_wait.c
100lxc_wait_LDADD = liblxc.la
101
5e97c3fc 102lxc_console_SOURCES = lxc_console.c
96f3e4eb 103lxc_console_LDADD = liblxc.la
5e97c3fc 104
0ad19a3f 105lxc_info_SOURCES = lxc_info.c
96f3e4eb 106lxc_info_LDADD = liblxc.la
5e97c3fc 107
5e97c3fc 108lxc_freeze_SOURCES = lxc_freeze.c
96f3e4eb 109lxc_freeze_LDADD = liblxc.la
5e97c3fc 110
111lxc_unfreeze_SOURCES = lxc_unfreeze.c
96f3e4eb 112lxc_unfreeze_LDADD = liblxc.la
187d3a35 113
576f946d 114lxc_cgroup_SOURCES = lxc_cgroup.c
115lxc_cgroup_LDADD = liblxc.la
681799f9 116
925aaa31 117lxc_checkpoint_SOURCES = lxc_checkpoint.c
118lxc_checkpoint_LDADD = liblxc.la
119
120lxc_restart_SOURCES = lxc_restart.c
121lxc_restart_LDADD = liblxc.la
122
681799f9 123lxc_version_SOURCES = lxc_version.c
124lxc_version_LDADD = liblxc.la
805415fc 125
126install-exec-local:
693dcea5 127 -@export PATH=$$PATH:/sbin:/usr/sbin && \
845eac4b 128 mkdir -p $(localstatedir) && \
44931bc7 129 \
130 setcap cap_sys_admin=ep $(bindir)/lxc-create && \
131 \
132 setcap cap_sys_chroot,cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \
13832f48 133 $(bindir)/lxc-execute && \
44931bc7 134 \
135 setcap cap_sys_chroot,cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \
13832f48 136 $(bindir)/lxc-start && \
44931bc7 137 \
13832f48 138 setcap cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \
139 $(bindir)/lxc-restart && \
44931bc7 140 \
13832f48 141 setcap cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \
142 $(bindir)/lxc-unshare && \
44931bc7 143 \
13832f48 144 setcap cap_sys_admin=ep \
145 $(bindir)/lxc-init && \
44931bc7 146 \
13832f48 147 setcap cap_sys_admin=ep \
148 $(bindir)/lxc-netstat && \
44931bc7 149 \
13832f48 150 mkdir -p $(prefix)/var/lxc && \
151 chmod ugo+rw $(prefix)/var/lxc || \
805415fc 152 (echo && echo && \
153 echo "*****************************************************************" && \
154 echo "* *" && \
155 echo "* The installation failed to set file capabilities, that is ok, *" && \
156 echo "* but you won't have enough privilege to run the 'lxc' commands *" && \
157 echo "* and you will need to run them as 'root' yourself. *" && \
158 echo "* *" && \
159 echo "*****************************************************************" && \
96950ed0 160 echo && echo)