Initial copy of RAPI filebase to the trunk
[ganeti-local] / Makefile.am
index 41a7e3c..d06fc28 100644 (file)
@@ -14,6 +14,7 @@ DOCBOOK_WRAPPER = $(top_srcdir)/autotools/docbook-wrapper
 REPLACE_VARS_SED = autotools/replace_vars.sed
 
 hypervisordir = $(pkgpythondir)/hypervisor
+rapidir = $(pkgpythondir)/rapi
 toolsdir = $(pkglibdir)/tools
 docdir = $(datadir)/doc/$(PACKAGE)
 
@@ -25,6 +26,7 @@ DIRS = \
        doc/examples \
        lib \
        lib/hypervisor \
+       lib/rapi \
        man \
        qa \
        qa/hooks \
@@ -43,6 +45,7 @@ CLEANFILES = \
        doc/examples/ganeti.cron \
        lib/*.py[co] \
        lib/hypervisor/*.py[co] \
+       lib/rapi/*.py[co] \
        man/*.[78] \
        man/*.in \
        qa/*.py[co] \
@@ -75,7 +78,8 @@ pkgpython_PYTHON = \
        lib/serializer.py \
        lib/ssconf.py \
        lib/ssh.py \
-       lib/utils.py
+       lib/utils.py \
+       lib/workerpool.py
 
 hypervisor_PYTHON = \
        lib/hypervisor/__init__.py \
@@ -83,6 +87,13 @@ hypervisor_PYTHON = \
        lib/hypervisor/hv_fake.py \
        lib/hypervisor/hv_xen.py
 
+rapi_PYTHON = \
+       lib/rapi/__init__.py \
+       lib/rapi/RESTHTTPServer.py \
+       lib/rapi/httperror.py \
+       lib/rapi/resources.py
+
+
 docsgml = \
        doc/hooks.sgml \
        doc/install.sgml \
@@ -98,6 +109,7 @@ dist_sbin_SCRIPTS = \
        daemons/ganeti-watcher \
        daemons/ganeti-master \
        daemons/ganeti-masterd \
+       daemons/ganeti-rapi \
        scripts/gnt-backup \
        scripts/gnt-cluster \
        scripts/gnt-debug \
@@ -171,6 +183,8 @@ dist_TESTS = \
        test/ganeti.bdev_unittest.py \
        test/ganeti.ssh_unittest.py \
        test/ganeti.locking_unittest.py \
+       test/ganeti.serializer_unittest.py \
+       test/ganeti.workerpool_unittest.py \
        test/ganeti.constants_unittest.py
 
 nodist_TESTS =
@@ -251,7 +265,7 @@ $(REPLACE_VARS_SED): Makefile stamp-directories
 #.PHONY: srclinks
 srclinks: stamp-directories
        set -e; \
-       for i in man/footer.sgml $(pkgpython_PYTHON) $(hypervisor_PYTHON); do \
+       for i in man/footer.sgml $(pkgpython_PYTHON) $(hypervisor_PYTHON) $(rapi_PYTHON); do \
                if test ! -f $$i -a -f $(abs_top_srcdir)/$$i; then \
                        $(LN_S) $(abs_top_srcdir)/$$i $$i; \
                fi; \