Skip to content

Commit

Permalink
Fix debian packaging to package python modules for gmond.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuchbinder committed Aug 13, 2011
1 parent 340ed31 commit 9a5353e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ganglia (3.2.0-8) unstable; urgency=low

* Add python packaging

-- Jeff Buchbinder <[email protected]> Sat, 13 Aug 2011 09:37:55 -0400

ganglia (3.2.0-7) unstable; urgency=low

* Stop recording and propagating dmax entries asap
Expand Down
9 changes: 9 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ Description: cluster monitoring toolkit - node daemon
.
This package contains the monitor core program.

Package: ganglia-monitor-python
Architecture: all
Depends: ${misc:Depends}, ${shlibs:Depends}, python, ganglia-monitor (=${binary:Version})
Description: cluster monitoring toolkit - python modules
Ganglia is a scalable, real-time cluster monitoring environment
that collects cluster statistics in an open and well-defined XML format.
.
This package contains the monitor core python plugins.

Package: gmetad
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, adduser, libganglia1 (=${binary:Version})
Expand Down
5 changes: 5 additions & 0 deletions debian/ganglia-monitor-python.dirs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
etc
etc/ganglia
etc/ganglia/conf.d
usr/lib/ganglia/
usr/lib/ganglia/python_modules
11 changes: 10 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ endif
config.status: configure
dh_testdir
# Add here commands to configure the package.
# autoreconf
autoreconf
chmod +x configure libmetrics/configure
./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr --mandir=\$${prefix}/share/man \
--libdir=\$${prefix}/lib \
Expand Down Expand Up @@ -79,6 +80,14 @@ install: build
# Seed the package directories
dh_install --sourcedir=debian/tmp

# Install the python modules
mkdir -p debian/ganglia-monitor-python/etc/ganglia/conf.d/
mkdir -p debian/ganglia-monitor-python/usr/lib/ganglia/python_modules/
cp gmond/python_modules/*/*.pyconf* \
debian/ganglia-monitor-python/etc/ganglia/conf.d/
cp gmond/python_modules/*/*.py \
debian/ganglia-monitor-python/usr/lib/ganglia/python_modules/

#Install webfrontend
cp -a web/*.php web/*.css web/templates web/graph.d \
debian/ganglia-webfrontend/usr/share/ganglia-webfrontend
Expand Down

0 comments on commit 9a5353e

Please sign in to comment.