Commit d6101a8f by Stéphane Graber Committed by GitHub

Merge pull request #1109 from brauner/2016-07-31/append_to_search_path

partially reorganize repo
parents 40292280 ca1e6c02
...@@ -842,9 +842,9 @@ AC_CONFIG_FILES([ ...@@ -842,9 +842,9 @@ AC_CONFIG_FILES([
src/Makefile src/Makefile
src/lxc/Makefile src/lxc/Makefile
src/lxc/lxc-checkconfig
src/lxc/lxc-start-ephemeral
src/lxc/lxc.functions src/lxc/lxc.functions
src/lxc/tools/lxc-checkconfig
src/lxc/tools/lxc-start-ephemeral
src/lxc/version.h src/lxc/version.h
src/python-lxc/Makefile src/python-lxc/Makefile
......
...@@ -17,8 +17,8 @@ noinst_HEADERS = \ ...@@ -17,8 +17,8 @@ noinst_HEADERS = \
bdev/lxcrbd.h \ bdev/lxcrbd.h \
bdev/lxcrsync.h \ bdev/lxcrsync.h \
bdev/lxczfs.h \ bdev/lxczfs.h \
cgroups/cgroup.h \
caps.h \ caps.h \
cgroup.h \
conf.h \ conf.h \
console.h \ console.h \
error.h \ error.h \
...@@ -80,6 +80,9 @@ liblxc_so_SOURCES = \ ...@@ -80,6 +80,9 @@ liblxc_so_SOURCES = \
bdev/lxcrbd.c bdev/lxcrbd.h \ bdev/lxcrbd.c bdev/lxcrbd.h \
bdev/lxcrsync.c bdev/lxcrsync.h \ bdev/lxcrsync.c bdev/lxcrsync.h \
bdev/lxczfs.c bdev/lxczfs.h \ bdev/lxczfs.c bdev/lxczfs.h \
cgroups/cgfs.c \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
commands.c commands.h \ commands.c commands.h \
start.c start.h \ start.c start.h \
execute.c \ execute.c \
...@@ -88,9 +91,6 @@ liblxc_so_SOURCES = \ ...@@ -88,9 +91,6 @@ liblxc_so_SOURCES = \
freezer.c \ freezer.c \
error.h error.c \ error.h error.c \
parse.c parse.h \ parse.c parse.h \
cgfs.c \
cgfsng.c \
cgroup.c cgroup.h \
lxc.h \ lxc.h \
initutils.c initutils.h \ initutils.c initutils.h \
utils.c utils.h \ utils.c utils.h \
...@@ -122,7 +122,7 @@ liblxc_so_SOURCES = \ ...@@ -122,7 +122,7 @@ liblxc_so_SOURCES = \
$(LSM_SOURCES) $(LSM_SOURCES)
if ENABLE_CGMANAGER if ENABLE_CGMANAGER
liblxc_so_SOURCES += cgmanager.c liblxc_so_SOURCES += cgroups/cgmanager.c
endif endif
if IS_BIONIC if IS_BIONIC
...@@ -138,8 +138,7 @@ liblxc_so_SOURCES += ../include/getline.c ../include/getline.h ...@@ -138,8 +138,7 @@ liblxc_so_SOURCES += ../include/getline.c ../include/getline.h
endif endif
endif endif
AM_CFLAGS=-I$(top_srcdir)/src \ AM_CFLAGS=-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-DLXCPATH=\"$(LXCPATH)\" \ -DLXCPATH=\"$(LXCPATH)\" \
-DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \ -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
-DLXCINITDIR=\"$(LXCINITDIR)\" \ -DLXCINITDIR=\"$(LXCINITDIR)\" \
...@@ -152,7 +151,11 @@ AM_CFLAGS=-I$(top_srcdir)/src \ ...@@ -152,7 +151,11 @@ AM_CFLAGS=-I$(top_srcdir)/src \
-DLXC_USERNIC_CONF=\"$(LXC_USERNIC_CONF)\" \ -DLXC_USERNIC_CONF=\"$(LXC_USERNIC_CONF)\" \
-DDEFAULT_CGROUP_PATTERN=\"$(DEFAULT_CGROUP_PATTERN)\" \ -DDEFAULT_CGROUP_PATTERN=\"$(DEFAULT_CGROUP_PATTERN)\" \
-DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \ -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
-DSBINDIR=\"$(SBINDIR)\" -DSBINDIR=\"$(SBINDIR)\" \
-I $(top_srcdir)/src \
-I $(top_srcdir)/src/lxc \
-I $(top_srcdir)/src/lxc/bdev \
-I $(top_srcdir)/src/lxc/cgroups
if ENABLE_APPARMOR if ENABLE_APPARMOR
AM_CFLAGS += -DHAVE_APPARMOR AM_CFLAGS += -DHAVE_APPARMOR
...@@ -189,14 +192,14 @@ liblxc_so_LDADD += $(CGMANAGER_LIBS) $(DBUS_LIBS) $(NIH_LIBS) $(NIH_DBUS_LIBS) ...@@ -189,14 +192,14 @@ liblxc_so_LDADD += $(CGMANAGER_LIBS) $(DBUS_LIBS) $(NIH_LIBS) $(NIH_DBUS_LIBS)
liblxc_so_CFLAGS += $(CGMANAGER_CFLAGS) $(DBUS_CFLAGS) $(NIH_CFLAGS) $(NIH_DBUS_CFLAGS) liblxc_so_CFLAGS += $(CGMANAGER_CFLAGS) $(DBUS_CFLAGS) $(NIH_CFLAGS) $(NIH_DBUS_CFLAGS)
endif endif
bin_SCRIPTS = lxc-checkconfig bin_SCRIPTS = tools/lxc-checkconfig
EXTRA_DIST = \ EXTRA_DIST = \
lxc-top.lua tools/lxc-top.lua
if ENABLE_DEPRECATED if ENABLE_DEPRECATED
if ENABLE_PYTHON if ENABLE_PYTHON
bin_SCRIPTS += lxc-start-ephemeral bin_SCRIPTS += tools/lxc-start-ephemeral
endif endif
endif endif
...@@ -240,35 +243,35 @@ AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir) ...@@ -240,35 +243,35 @@ AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir)
endif endif
LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SELINUX_LIBS@ @SECCOMP_LIBS@ LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SELINUX_LIBS@ @SECCOMP_LIBS@
lxc_attach_SOURCES = lxc_attach.c lxc_attach_SOURCES = tools/lxc_attach.c
lxc_autostart_SOURCES = lxc_autostart.c lxc_autostart_SOURCES = tools/lxc_autostart.c
lxc_cgroup_SOURCES = lxc_cgroup.c lxc_cgroup_SOURCES = tools/lxc_cgroup.c
lxc_config_SOURCES = lxc_config.c lxc_config_SOURCES = tools/lxc_config.c
lxc_console_SOURCES = lxc_console.c lxc_console_SOURCES = tools/lxc_console.c
lxc_destroy_SOURCES = lxc_destroy.c lxc_destroy_SOURCES = tools/lxc_destroy.c
lxc_device_SOURCES = lxc_device.c lxc_device_SOURCES = tools/lxc_device.c
lxc_execute_SOURCES = lxc_execute.c lxc_execute_SOURCES = tools/lxc_execute.c
lxc_freeze_SOURCES = lxc_freeze.c lxc_freeze_SOURCES = tools/lxc_freeze.c
lxc_info_SOURCES = lxc_info.c lxc_info_SOURCES = tools/lxc_info.c
init_lxc_SOURCES = lxc_init.c init_lxc_SOURCES = tools/lxc_init.c
lxc_monitor_SOURCES = lxc_monitor.c lxc_monitor_SOURCES = tools/lxc_monitor.c
lxc_monitord_SOURCES = lxc_monitord.c lxc_ls_SOURCES = tools/lxc_ls.c
lxc_ls_SOURCES = lxc_ls.c lxc_copy_SOURCES = tools/lxc_copy.c
lxc_copy_SOURCES = lxc_copy.c lxc_start_SOURCES = tools/lxc_start.c
lxc_start_SOURCES = lxc_start.c lxc_stop_SOURCES = tools/lxc_stop.c
lxc_stop_SOURCES = lxc_stop.c lxc_top_SOURCES = tools/lxc_top.c
lxc_top_SOURCES = lxc_top.c lxc_unfreeze_SOURCES = tools/lxc_unfreeze.c
lxc_unfreeze_SOURCES = lxc_unfreeze.c lxc_unshare_SOURCES = tools/lxc_unshare.c
lxc_unshare_SOURCES = lxc_unshare.c lxc_wait_SOURCES = tools/lxc_wait.c
lxc_wait_SOURCES = lxc_wait.c lxc_create_SOURCES = tools/lxc_create.c
lxc_create_SOURCES = lxc_create.c lxc_snapshot_SOURCES = tools/lxc_snapshot.c
lxc_snapshot_SOURCES = lxc_snapshot.c lxc_usernsexec_SOURCES = tools/lxc_usernsexec.c
lxc_usernsexec_SOURCES = lxc_usernsexec.c lxc_checkpoint_SOURCES = tools/lxc_checkpoint.c
lxc_user_nic_SOURCES = lxc_user_nic.c network.c network.h lxc_user_nic_SOURCES = lxc_user_nic.c network.c network.h
lxc_checkpoint_SOURCES = lxc_checkpoint.c lxc_monitord_SOURCES = lxc_monitord.c
if ENABLE_DEPRECATED if ENABLE_DEPRECATED
lxc_clone_SOURCES = lxc_clone.c lxc_clone_SOURCES = tools/lxc_clone.c
endif endif
if !HAVE_GETSUBOPT if !HAVE_GETSUBOPT
...@@ -278,7 +281,7 @@ endif ...@@ -278,7 +281,7 @@ endif
if HAVE_STATIC_LIBCAP if HAVE_STATIC_LIBCAP
sbin_PROGRAMS += init.lxc.static sbin_PROGRAMS += init.lxc.static
init_lxc_static_SOURCES = lxc_init.c error.c log.c initutils.c caps.c init_lxc_static_SOURCES = tools/lxc_init.c error.c log.c initutils.c caps.c
if !HAVE_GETLINE if !HAVE_GETLINE
if HAVE_FGETLN if HAVE_FGETLN
......
...@@ -39,12 +39,12 @@ ...@@ -39,12 +39,12 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <net/if.h> #include <net/if.h>
#include "bdev.h"
#include "error.h" #include "error.h"
#include "commands.h" #include "commands.h"
#include "list.h" #include "list.h"
#include "conf.h" #include "conf.h"
#include "utils.h" #include "utils.h"
#include "bdev/bdev.h"
#include "log.h" #include "log.h"
#include "cgroup.h" #include "cgroup.h"
#include "start.h" #include "start.h"
......
...@@ -43,11 +43,11 @@ ...@@ -43,11 +43,11 @@
#include <dirent.h> #include <dirent.h>
#include <grp.h> #include <grp.h>
#include "bdev.h"
#include "log.h" #include "log.h"
#include "cgroup.h" #include "cgroup.h"
#include "utils.h" #include "utils.h"
#include "commands.h" #include "commands.h"
#include "bdev/bdev.h"
lxc_log_define(lxc_cgfsng, lxc); lxc_log_define(lxc_cgfsng, lxc);
......
...@@ -41,12 +41,12 @@ ...@@ -41,12 +41,12 @@
#include <net/if.h> #include <net/if.h>
#include <poll.h> #include <poll.h>
#include "bdev.h"
#include "error.h" #include "error.h"
#include "commands.h" #include "commands.h"
#include "list.h" #include "list.h"
#include "conf.h" #include "conf.h"
#include "utils.h" #include "utils.h"
#include "bdev/bdev.h"
#include "log.h" #include "log.h"
#include "cgroup.h" #include "cgroup.h"
#include "start.h" #include "start.h"
......
...@@ -66,6 +66,7 @@ ...@@ -66,6 +66,7 @@
#include <net/if.h> #include <net/if.h>
#include <libgen.h> #include <libgen.h>
#include "bdev.h"
#include "network.h" #include "network.h"
#include "error.h" #include "error.h"
#include "af_unix.h" #include "af_unix.h"
...@@ -74,9 +75,8 @@ ...@@ -74,9 +75,8 @@
#include "conf.h" #include "conf.h"
#include "log.h" #include "log.h"
#include "caps.h" /* for lxc_caps_last_cap() */ #include "caps.h" /* for lxc_caps_last_cap() */
#include "bdev/bdev.h" #include "lxcaufs.h"
#include "bdev/lxcaufs.h" #include "lxcoverlay.h"
#include "bdev/lxcoverlay.h"
#include "cgroup.h" #include "cgroup.h"
#include "lxclock.h" #include "lxclock.h"
#include "namespace.h" #include "namespace.h"
......
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
#include <dirent.h> #include <dirent.h>
#include <syslog.h> #include <syslog.h>
#include "bdev.h"
#include "parse.h" #include "parse.h"
#include "config.h" #include "config.h"
#include "confile.h" #include "confile.h"
#include "bdev/bdev.h"
#include "utils.h" #include "utils.h"
#include "log.h" #include "log.h"
#include "conf.h" #include "conf.h"
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "config.h" #include "config.h"
#include "bdev/bdev.h" #include "bdev.h"
#include "cgroup.h" #include "cgroup.h"
#include "conf.h" #include "conf.h"
#include "commands.h" #include "commands.h"
......
...@@ -39,9 +39,9 @@ ...@@ -39,9 +39,9 @@
#include <sys/wait.h> #include <sys/wait.h>
#include "attach.h" #include "attach.h"
#include "bdev/bdev.h" #include "bdev.h"
#include "bdev/lxcoverlay.h" #include "lxcoverlay.h"
#include "bdev/lxcbtrfs.h" #include "lxcbtrfs.h"
#include "cgroup.h" #include "cgroup.h"
#include "conf.h" #include "conf.h"
#include "config.h" #include "config.h"
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
#endif #endif
#include "af_unix.h" #include "af_unix.h"
#include "bdev.h"
#include "caps.h" #include "caps.h"
#include "cgroup.h" #include "cgroup.h"
#include "commands.h" #include "commands.h"
...@@ -71,7 +72,6 @@ ...@@ -71,7 +72,6 @@
#include "start.h" #include "start.h"
#include "sync.h" #include "sync.h"
#include "utils.h" #include "utils.h"
#include "bdev/bdev.h"
#include "lsm/lsm.h" #include "lsm/lsm.h"
lxc_log_define(lxc_start, lxc); lxc_log_define(lxc_start, lxc);
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "attach.h" #include "attach.h"
#include "bdev.h"
#include "log.h" #include "log.h"
#include "confile.h" #include "confile.h"
#include "arguments.h" #include "arguments.h"
...@@ -44,7 +45,6 @@ ...@@ -44,7 +45,6 @@
#include "conf.h" #include "conf.h"
#include "state.h" #include "state.h"
#include "utils.h" #include "utils.h"
#include "bdev/bdev.h"
#ifndef HAVE_GETSUBOPT #ifndef HAVE_GETSUBOPT
#include <../include/getsubopt.h> #include <../include/getsubopt.h>
......
...@@ -27,10 +27,10 @@ ...@@ -27,10 +27,10 @@
#include <sys/types.h> #include <sys/types.h>
#include "arguments.h" #include "arguments.h"
#include "bdev.h"
#include "log.h" #include "log.h"
#include "lxc.h" #include "lxc.h"
#include "utils.h" #include "utils.h"
#include "bdev/bdev.h"
lxc_log_define(lxc_create_ui, lxc); lxc_log_define(lxc_create_ui, lxc);
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
#include <lxc/lxccontainer.h> #include <lxc/lxccontainer.h>
#include "bdev.h"
#include "lxc.h" #include "lxc.h"
#include "log.h" #include "log.h"
#include "bdev/bdev.h"
#include "arguments.h" #include "arguments.h"
#include "utils.h" #include "utils.h"
......
...@@ -24,13 +24,17 @@ lxc_test_attach_SOURCES = attach.c ...@@ -24,13 +24,17 @@ lxc_test_attach_SOURCES = attach.c
lxc_test_device_add_remove_SOURCES = device_add_remove.c lxc_test_device_add_remove_SOURCES = device_add_remove.c
lxc_test_apparmor_SOURCES = aa.c lxc_test_apparmor_SOURCES = aa.c
AM_CFLAGS=-I$(top_srcdir)/src \ AM_CFLAGS=-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-DLXCROOTFSMOUNT=\"$(LXCROOTFSMOUNT)\" \
-DLXCPATH=\"$(LXCPATH)\" \ -DLXCPATH=\"$(LXCPATH)\" \
-DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \ -DLXC_GLOBAL_CONF=\"$(LXC_GLOBAL_CONF)\" \
-DLXCINITDIR=\"$(LXCINITDIR)\" \ -DLXCINITDIR=\"$(LXCINITDIR)\" \
-DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \ -DLXC_DEFAULT_CONFIG=\"$(LXC_DEFAULT_CONFIG)\" \
-DRUNTIME_PATH=\"$(RUNTIME_PATH)\" -DRUNTIME_PATH=\"$(RUNTIME_PATH)\" \
-I $(top_srcdir)/src \
-I $(top_srcdir)/src/lxc \
-I $(top_srcdir)/src/lxc/bdev \
-I $(top_srcdir)/src/lxc/cgroups \
-I $(top_srcdir)/src/lxc/tools
if ENABLE_APPARMOR if ENABLE_APPARMOR
AM_CFLAGS += -DHAVE_APPARMOR AM_CFLAGS += -DHAVE_APPARMOR
......
...@@ -28,9 +28,10 @@ ...@@ -28,9 +28,10 @@
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
#include <sys/stat.h> #include <sys/stat.h>
#include "lxc/cgroup.h"
#include "lxc/lxc.h" #include "cgroup.h"
#include "lxc/commands.h" #include "lxc.h"
#include "commands.h"
#define MYNAME "lxctest1" #define MYNAME "lxctest1"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment