Revision ee67b59c

b/snf-ganeti-tools/debian/control
1 1
Source: snf-ganeti-tools
2 2
Section: python
3 3
Priority: optional
4
Maintainer: Faidon Liambotis <paravoid@debian.org>
4
Maintainer: Vangelis Koukis <vkoukis@grnet.gr>
5 5
Build-Depends: debhelper (>= 8), python-all (>= 2.5)
6 6
Standards-Version: 3.9.2
7 7
XS-Python-Version: >= 2.6
......
13 13
Provides: ${python:Provides}
14 14
XB-Python-Version: ${python:Versions}
15 15
Description: Synnefo Ganeti supplementary tools
16
 This is a fork of the Ganeti supplementary tools shipped with the synnefo
17
 project.
16
 This package contains the supplementary tools for Ganeti provided
17
 used the Synnefo project.
18 18
 .
19 19
 Included are:
20
  * snf-ganeti-hook, a Ganeti hook that messages synnefo dispatcher
20
  * snf-ganeti-hook, a Ganeti hook that message the Synnefo queue
21 21
  * snf-ganeti-eventd, a daemon watching the Ganeti job queue
22
  * snf-progress-monitor, a utility to monitor image deployment and
23
    produce notifications to the Synnefo queue
22 24
  * kvm-vif-bridge, a shell ifup script for KVM instances brought up by Ganeti
b/snf-ganeti-tools/debian/rules
3 3
%:
4 4
	dh $@ --with python2
5 5

  
6
package=snf-ganeti-tools
7

  
6 8
override_dh_auto_install:
7 9
	dh_auto_install
8 10

  
9
	mkdir -p debian/snf-ganeti-tools/usr/sbin
11
	mkdir -p debian/$(package)/usr/sbin
10 12
	-mv \
11
	  debian/snf-ganeti-tools/usr/bin/snf-ganeti-eventd.py \
12
	  debian/snf-ganeti-tools/usr/sbin/snf-ganeti-eventd
13
	  debian/$(package)/usr/bin/snf-ganeti-eventd.py \
14
	  debian/$(package)/usr/sbin/snf-ganeti-eventd
13 15
	-mv \
14
	  debian/snf-ganeti-tools/usr/bin/snf-ganeti-hook.py \
15
	  debian/snf-ganeti-tools/usr/sbin/snf-ganeti-hook
16
	  debian/$(package)/usr/bin/snf-ganeti-hook.py \
17
	  debian/$(package)/usr/sbin/snf-ganeti-hook
16 18
	-mv \
17
	  debian/snf-ganeti-tools/usr/bin/snf-progress-monitor.py \
18
	  debian/snf-ganeti-tools/usr/sbin/snf-progress-monitor
19
	rmdir debian/snf-ganeti-tools/usr/bin
19
	  debian/$(package)/usr/bin/snf-progress-monitor.py \
20
	  debian/$(package)/usr/sbin/snf-progress-monitor
21
	rmdir debian/$(package)/usr/bin
22
	# this package provides the synnefo namespace __init__.py
23
	for py in $(shell pyversions -vr debian/control); do \
24
		cp synnefo/__init__.py debian/$(package)/usr/lib/python$$py/*-packages/synnefo/; \
25
	done
b/snf-ganeti-tools/setup.py
10 10
    author_email="synnefo@lists.grnet.gr",
11 11
    license="BSD",
12 12
    url="http://code.grnet.gr/projects/synnefo",
13
    namespace_packages=["synnefo"],
13 14
    packages=["synnefo", "synnefo.ganeti"],
14 15
    install_requires=[
15 16
        'daemon',
16 17
        'pyinotify',
17 18
        'amqplib',
19
        'prctl',
18 20
        'ganeti',
19 21
    ],
20 22
    scripts=['snf-ganeti-eventd.py', 'snf-ganeti-hook.py',
b/snf-ganeti-tools/synnefo/__init__.py
1
# this is a namespace package
2
try:
3
    import pkg_resources
4
    pkg_resources.declare_namespace(__name__)
5
except ImportError:
6
    import pkgutil
7
    __path__ = pkgutil.extend_path(__path__, __name__)

Also available in: Unified diff