]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/Makefile.am
Give the ability to non-root user to play with the containers. This feature
[mirror_lxc.git] / src / lxc / Makefile.am
index f13b77de9241f2958c28f03c69d1e55977274d15..8542183dffb162357bc8dba2a501d9dbcd3bf86c 100644 (file)
@@ -22,8 +22,10 @@ liblxc_la_SOURCES = \
        monitor.c monitor.h \
        kill.c \
        freezer.c \
+       checkpoint.c \
+       restart.c \
        version.c \
-       lxc_cgroup.c lxc_cgroup.h \
+       cgroup.c cgroup.h \
        lxc.h \
        lxc_utils.h \
        lxc_lock.c lxc_lock.h \
@@ -41,7 +43,8 @@ liblxc_la_SOURCES = \
 liblxc_la_LDFLAGS = -release @PACKAGE_VERSION@
 
 bin_SCRIPTS = \
-       lxc-ps
+       lxc-ps \
+       lxc-checkconfig
 
 bin_PROGRAMS = \
        lxc-create \
@@ -55,8 +58,10 @@ bin_PROGRAMS = \
        lxc-kill \
        lxc-freeze \
        lxc-info \
+       lxc-cgroup \
        lxc-unfreeze \
-       lxc-priority \
+       lxc-checkpoint \
+       lxc-restart \
        lxc-version
 
 lxc_create_SOURCES = lxc_create.c lxc_config.c lxc_config.h
@@ -71,7 +76,7 @@ lxc_start_LDADD = liblxc.la
 lxc_stop_SOURCES = lxc_stop.c
 lxc_stop_LDADD = liblxc.la
 
-lxc_execute_SOURCES = lxc_execute.c
+lxc_execute_SOURCES = lxc_execute.c lxc_config.c lxc_config.h
 lxc_execute_LDADD = liblxc.la
 
 lxc_monitor_SOURCES = lxc_monitor.c
@@ -95,8 +100,29 @@ 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:
+       -@/usr/sbin/setcap cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep $(bindir)/lxc-execute 2>&1 > /dev/null && \
+       /usr/sbin/setcap cap_net_admin,cap_net_raw,cap_sys_admin,cap_dac_override=ep $(bindir)/lxc-start && \
+       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)
\ No newline at end of file