--- versionner-0.2.0.orig/debian/dirs +++ versionner-0.2.0/debian/dirs @@ -0,0 +1,3 @@ +usr/bin +usr/sbin +var/log/versionner --- versionner-0.2.0.orig/debian/rules +++ versionner-0.2.0/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PYTHON_VER=$(shell dpkg -l python | tail -1 | sed -e 's/.*python[ ]*\([^ ]\{3\}\).*/\1/') + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +configure: configure-stamp +configure-stamp: + @find . -type d -name .bzr -print0 | xargs -0 rm -rf + @find . -type d -name .bzrignore -print0 | xargs -0 rm -rf + +build: build-stamp + +build-stamp: + dh_testdir + + # Add here commands to compile the package. + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + # Add here commands to clean up after the build process. + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/versionner + -mkdir -p $(CURDIR)/debian/versionner/usr/sbin + -mkdir -p $(CURDIR)/debian/versionner/etc/versionner + -mkdir -p $(CURDIR)/debian/versionner/usr/lib/python$(PYTHON_VER)/site-packages/versionner + -mkdir -p $(CURDIR)/debian/versionner/usr/share/man/man1 + install -oroot -m644 versionner.1 $(CURDIR)/debian/versionner/usr/share/man/man1/ + install -oroot -m644 versionner/__init__.py $(CURDIR)/debian/versionner/usr/lib/python$(PYTHON_VER)/site-packages/versionner/ + install -oroot -m644 versionner/apt.py $(CURDIR)/debian/versionner/usr/lib/python$(PYTHON_VER)/site-packages/versionner/ + install -oroot -m644 versionner/config.py $(CURDIR)/debian/versionner/usr/lib/python$(PYTHON_VER)/site-packages/versionner/ + install -oroot -m644 versionner/log.py $(CURDIR)/debian/versionner/usr/lib/python$(PYTHON_VER)/site-packages/versionner/ + install -oroot -m644 versionner/login.py $(CURDIR)/debian/versionner/usr/lib/python$(PYTHON_VER)/site-packages/versionner/ + install -oroot -m644 versionner/xmlrpc.py $(CURDIR)/debian/versionner/usr/lib/python$(PYTHON_VER)/site-packages/versionner/ + install -oroot -m644 versionner.py $(CURDIR)/debian/versionner/usr/sbin/versionner + install -oroot -m400 versionner.cfg $(CURDIR)/debian/versionner/etc/versionner + install -oroot -m644 versionner.log $(CURDIR)/debian/versionner/var/log/versionner/ + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl + dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- versionner-0.2.0.orig/debian/compat +++ versionner-0.2.0/debian/compat @@ -0,0 +1 @@ +4 --- versionner-0.2.0.orig/debian/control +++ versionner-0.2.0/debian/control @@ -0,0 +1,14 @@ +Source: versionner +Section: admin +Priority: optional +Maintainer: Leo Eraly +Build-Depends: debhelper (>= 4.0.0) +Standards-Version: 3.6.1 + +Package: versionner +Architecture: any +Depends: ${python:Depends} , python-apt +Description: Central package information about machines + Versionner is a client which collect information about + installed (debian) packages on a system and sends this + information to a central xml-rpc server --- versionner-0.2.0.orig/debian/copyright +++ versionner-0.2.0/debian/copyright @@ -0,0 +1,18 @@ +This package was debianized by Leo Eraly on +Thu, 1 Sep 2005 09:57:42 +0200. + +Copyright Holder: Leo Eraly + +License: + + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + +On Debian systems, the complete text of the GNU General Public License +version 2 can be found in /usr/share/common-licenses/GPL-2 file. --- versionner-0.2.0.orig/debian/conffiles +++ versionner-0.2.0/debian/conffiles @@ -0,0 +1 @@ +/etc/versionner/versionner.cfg --- versionner-0.2.0.orig/debian/changelog +++ versionner-0.2.0/debian/changelog @@ -0,0 +1,29 @@ +versionner (0.2.0) unstable; urgency=low + + * Added -a option (submit all information to server) + * Updated documentation + + -- Leo Eraly Tue, 27 Sep 2005 15:08:29 +0200 + +versionner (0.1-3) unstable; urgency=low + + * Fixed errors while using config values from within log class + * Added empty logfile + * Put some default values in versionner.cfg + * Changed import foo to 'from versionner import foo' + + -- Leo Eraly Fri, 9 Sep 2005 14:54:32 +0200 + +versionner (0.1-2) unstable; urgency=low + + * Fixed option handling in python < 2.3 + * Did a cleanup from certain code + + -- Leo Eraly Fri, 9 Sep 2005 13:38:48 +0200 + +versionner (0.1-1) unstable; urgency=low + + * Initial release + + -- Leo Eraly Thu, 1 Sep 2005 09:57:42 +0200 + --- versionner-0.2.0.orig/debian/manpage.1 +++ versionner-0.2.0/debian/manpage.1 @@ -0,0 +1,67 @@ +.\"Generated by db2man.xsl. Don't modify this, modify the source. +.de Sh \" Subsection +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Ip \" List item +.br +.ie \\n(.$>=3 .ne \\$3 +.el .ne 3 +.IP "\\$1" \\$2 +.. +.TH "VERSIONNER" 1 "" "" "" +.SH NAME +versionner \- collect information about installed packages on a machine +.SH "SYNOPSIS" + + +versionner [\-p] [\-k] [\-u] + +.SH "DESCRIPTION" + + +The versionner is part of a client/server setup in which this tool is the client which collects information about all the software (debian packages) that are installed on the system\&. After it has this information it sends it to an xml\-rpc server\&. + + +The purpose is to give a system administrator the ability to have all the information about his machines on a central location\&. This makes it easy to view the machines that are up to date and the machines that still needs to be updated\&. + +.SH "OPTIONS" + +.TP +\-p, \-\-pkglist +send current package list to the server + +.TP +\-k, \-\-kernel +send current kernel version to the server + +.TP +\-u, \-\-uptime +send current uptime to the server + +.SH "BUGS" + + +Bugs can be send to send to + +.SH "FILES" + + +/etc/versionner/versionner\&.conf, configuration file with username,password,server information + + +/var/log/versionner\&.log, log file + +.SH "AUTHOR" + + +Written by Leo Eraly leo@unstable\&.be: \fImailto:leo@unstable.be\fR +