Prepare move of daemons to ganeti.server
authorMichael Hanselmann <hansmi@google.com>
Fri, 29 Oct 2010 13:13:51 +0000 (15:13 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 29 Oct 2010 14:48:08 +0000 (16:48 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: RenĂ© Nussbaumer <rn@google.com>

Makefile.am
lib/server/__init__.py [new file with mode: 0644]

index 44f3ce2..072ebc4 100644 (file)
@@ -23,6 +23,7 @@ httpdir = $(pkgpythondir)/http
 masterddir = $(pkgpythondir)/masterd
 confddir = $(pkgpythondir)/confd
 rapidir = $(pkgpythondir)/rapi
+serverdir = $(pkgpythondir)/server
 watcherdir = $(pkgpythondir)/watcher
 impexpddir = $(pkgpythondir)/impexpd
 toolsdir = $(pkglibdir)/tools
@@ -48,6 +49,7 @@ DIRS = \
        lib/impexpd \
        lib/masterd \
        lib/rapi \
+       lib/server \
        lib/watcher \
        man \
        qa \
@@ -193,6 +195,9 @@ impexpd_PYTHON = \
 watcher_PYTHON = \
        lib/watcher/__init__.py
 
+server_PYTHON = \
+       lib/server/__init__.py
+
 docrst = \
        doc/admin.rst \
        doc/design-2.0.rst \
@@ -469,6 +474,7 @@ all_python_code = \
        $(client_PYTHON) \
        $(hypervisor_PYTHON) \
        $(rapi_PYTHON) \
+       $(server_PYTHON) \
        $(http_PYTHON) \
        $(confd_PYTHON) \
        $(masterd_PYTHON) \
@@ -640,6 +646,7 @@ $(REPLACE_VARS_SED): Makefile
        } > $@
 
 # Using deferred evaluation
+daemons/ganeti-%: MODULE = ganeti.server.$(patsubst ganeti-%,%,$(notdir $@))
 daemons/ganeti-watcher: MODULE = ganeti.watcher
 scripts/%: MODULE = ganeti.client.$(subst -,_,$(notdir $@))
 
diff --git a/lib/server/__init__.py b/lib/server/__init__.py
new file mode 100644 (file)
index 0000000..aee6aa0
--- /dev/null
@@ -0,0 +1,24 @@
+#
+#
+
+# Copyright (C) 2010 Google Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+
+"""Empty file for package definition.
+
+"""