-INCLUDES= -I$(top_srcdir)/src
-
+INCLUDES= -I$(top_srcdir)/src -DLXCPATH="\"$(localstatedir)/lxc\"" -DLXCBINDIR="\"$(bindir)\""
+AM_LDFLAGS= -lutil
lib_LTLIBRARIES = liblxc.la
pkginclude_HEADERS = \
monitor.h \
destroy.c \
start.c \
stop.c \
- execute.c \
monitor.c monitor.h \
- kill.c \
+ console.c \
freezer.c \
+ checkpoint.c \
+ restart.c \
version.c \
- lxc_cgroup.c lxc_cgroup.h \
+ error.h error.c \
+ cgroup.c cgroup.h \
lxc.h \
lxc_utils.h \
lxc_lock.c lxc_lock.h \
network.c network.h \
nl.c nl.h \
rtnl.c rtnl.h \
- genl.c genl.h
+ genl.c genl.h \
+ \
+ mainloop.c mainloop.h \
+ af_unix.c af_unix.h \
+ \
+ cr_plugin_columbia.c lxc_plugin.h
liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@
bin_SCRIPTS = \
- lxc-ps
+ lxc-ps \
+ lxc-netstat \
+ lxc-ls \
+ lxc-checkconfig
bin_PROGRAMS = \
+ lxc-unshare \
+ lxc-init \
lxc-create \
lxc-destroy \
lxc-stop \
lxc-monitor \
lxc-wait \
lxc-console \
- lxc-kill \
lxc-freeze \
lxc-info \
+ lxc-cgroup \
lxc-unfreeze \
- lxc-priority \
+ lxc-checkpoint \
+ lxc-restart \
lxc-version
+lxc_unshare_SOURCES = lxc_unshare.c
+lxc_unshare_LDADD = liblxc.la
+
+lxc_init_SOURCES = lxc_init.c
+lxc_init_LDADD = liblxc.la
+
lxc_create_SOURCES = lxc_create.c lxc_config.c lxc_config.h
lxc_create_LDADD = liblxc.la
lxc_info_SOURCES = lxc_info.c
lxc_info_LDADD = liblxc.la
-lxc_kill_SOURCES = lxc_kill.c
-lxc_kill_LDADD = liblxc.la
-
lxc_freeze_SOURCES = lxc_freeze.c
lxc_freeze_LDADD = liblxc.la
lxc_unfreeze_SOURCES = lxc_unfreeze.c
lxc_unfreeze_LDADD = liblxc.la
-lxc_priority_SOURCES = lxc_priority.c
-lxc_priority_LDADD = liblxc.la
+lxc_cgroup_SOURCES = lxc_cgroup.c
+lxc_cgroup_LDADD = liblxc.la
+
+lxc_checkpoint_SOURCES = lxc_checkpoint.c
+lxc_checkpoint_LDADD = liblxc.la
+
+lxc_restart_SOURCES = lxc_restart.c
+lxc_restart_LDADD = liblxc.la
lxc_version_SOURCES = lxc_version.c
lxc_version_LDADD = liblxc.la
+
+install-exec-local:
+ -@export PATH=$$PATH:/sbin:/usr/sbin && \
+ mkdir -p $(localstatedir) && \
+ \
+ setcap cap_sys_admin=ep $(bindir)/lxc-create && \
+ \
+ setcap cap_sys_chroot,cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \
+ $(bindir)/lxc-execute && \
+ \
+ setcap cap_sys_chroot,cap_setpcap,cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \
+ $(bindir)/lxc-start && \
+ \
+ setcap cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \
+ $(bindir)/lxc-restart && \
+ \
+ setcap cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep \
+ $(bindir)/lxc-unshare && \
+ \
+ setcap cap_sys_admin=ep \
+ $(bindir)/lxc-init && \
+ \
+ setcap cap_sys_admin=ep \
+ $(bindir)/lxc-netstat && \
+ \
+ mkdir -p $(prefix)/var/lxc && \
+ chmod ugo+rw $(prefix)/var/lxc || \
+ (echo && echo && \
+ echo "*****************************************************************" && \
+ echo "* *" && \
+ echo "* The installation failed to set file capabilities, that is ok, *" && \
+ echo "* but you won't have enough privilege to run the 'lxc' commands *" && \
+ echo "* and you will need to run them as 'root' yourself. *" && \
+ echo "* *" && \
+ echo "*****************************************************************" && \
+ echo && echo)