From 8f9980e5a4a47ac6d8e08745ce7c531f0d2b3fb5 Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Thu, 2 May 2013 13:47:52 +0100 Subject: [PATCH 1/2] Add debian packaging --- .gitignore | 4 ++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 24 ++++++++++++++++++++++++ debian/logster.dirs | 1 + debian/pydist-overrides | 0 debian/rules | 21 +++++++++++++++++++++ debian/source/format | 1 + 8 files changed, 57 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/logster.dirs create mode 100644 debian/pydist-overrides create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/.gitignore b/.gitignore index 48339d7..083c52b 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ *.venv build dist +debian/files +debian/*.debhelper +debian/*.substvars +debian/logster/ diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..cd3f22b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +logster (0.0.1) precise; urgency=low + + * Initial Packaging + + -- Kiall Mac Innes Thu, 02 May 2013 13:44:23 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a316d3f --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: logster +Section: python +Priority: extra +Maintainer: Kiall Mac Innes +Build-Depends: + debhelper (>= 8.0.0), + python (>= 2.6) +Build-Depends-Indep: + python-setuptools +Standards-Version: 3.9.3 +XS-Python-Version: >= 2.6 +Homepage: https://github.com/etsy/logster + +Package: logster +Architecture: all +Depends: + logtail, + ${python:Depends}, + ${misc:Depends} +Provides: + ${python:Provides} +Description: Logster - Generate metrics for Graphite and Ganglia + Logster parsees log files and generate metrics for Graphite + and Ganglia diff --git a/debian/logster.dirs b/debian/logster.dirs new file mode 100644 index 0000000..921fdba --- /dev/null +++ b/debian/logster.dirs @@ -0,0 +1 @@ +var/log/logster \ No newline at end of file diff --git a/debian/pydist-overrides b/debian/pydist-overrides new file mode 100644 index 0000000..e69de29 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..607c494 --- /dev/null +++ b/debian/rules @@ -0,0 +1,21 @@ +#!/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. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + + +%: + dh $@ --with python2 diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) From de1cd9a0df72b916823541fcc02413531751887c Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Thu, 2 May 2013 15:01:44 +0100 Subject: [PATCH 2/2] Add python-pkg-resources dep --- debian/control | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/control b/debian/control index a316d3f..911f191 100644 --- a/debian/control +++ b/debian/control @@ -15,6 +15,7 @@ Package: logster Architecture: all Depends: logtail, + python-pkg-resources, ${python:Depends}, ${misc:Depends} Provides: