[Python-modules-commits] [haproxy-log-analysis] 04/04: Initial packaging

Christopher Baines cbaines-guest at moszumanska.debian.org
Mon May 9 11:44:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

cbaines-guest pushed a commit to branch master
in repository haproxy-log-analysis.

commit 374a134975196a38024ff71571894f87666dfb26
Author: Christopher Baines <mail at cbaines.net>
Date:   Mon May 9 12:32:46 2016 +0100

    Initial packaging
---
 debian/changelog                     |  5 ++++
 debian/compat                        |  1 +
 debian/control                       | 49 ++++++++++++++++++++++++++++++++++++
 debian/copyright                     | 16 ++++++++++++
 debian/haproxy-log-analysis.manpages |  1 +
 debian/rules                         | 22 ++++++++++++++++
 debian/watch                         |  4 +++
 7 files changed, 98 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..dccc9e5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+haproxy-log-analysis (2.0~b0-1) unstable; urgency=low
+
+  * Initial release (Closes: #821339)
+
+ -- Christopher Baines <mail at cbaines.net>  Mon, 09 May 2016 12:13:52 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..54352e3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,49 @@
+Source: haproxy-log-analysis
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Christopher Baines <mail at cbaines.net>
+Section: python
+Priority: optional
+Build-Depends: dh-python,
+               debhelper (>= 9),
+               help2man,
+               python-setuptools,
+               python3-setuptools,
+               python-all,
+               python3-all,
+Standards-Version: 3.9.8
+Homepage: https://github.com/gforcada/haproxy_log_analysis
+
+Package: python-haproxy-log-analysis
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends},
+Description: generate aggregate statistics from HAProxy HTTP logs (Python 2)
+ haproxy log analysis can generate aggregate statistics from HAProxy logs in
+ the HTTP log format. This can be over a specific period, or over a subset of
+ the entries by specifying a filter.
+ .
+ This package contains the Python 2 library.
+
+Package: python3-haproxy-log-analysis
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends},
+Description: generate aggregate statistics from HAProxy HTTP logs (Python 3)
+ haproxy log analysis can generate aggregate statistics from HAProxy logs in
+ the HTTP log format. This can be over a specific period, or over a subset of
+ the entries by specifying a filter.
+ .
+ This package contains the Python 3 library.
+
+Package: haproxy-log-analysis
+Architecture: all
+Depends: ${misc:Depends},
+         python3,
+         python3-haproxy-log-analysis,
+Description: analyse the HTTP logs generated by HAProxy
+ haproxy log analysis can generate aggregate statistics from HAProxy logs in
+ the HTTP log format. This can be over a specific period, or over a subset of
+ the entries by specifying a filter.
+ .
+ This package contains the command line tool, haproxy_log_analysis. See
+ python3-haproxy-log-analysis for the library that this tool uses.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2836369
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,16 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: haproxy-log-analysis
+Source: https://github.com/gforcada/haproxy_log_analysis
+
+Files: *
+Copyright: 2014-2015 Gil Forcada <gforcada at gnome.org>
+License: GPL-3
+
+Files: debian/*
+Copyright: 2016 Christopher Baines <mail at cbaines.net>
+License: GPL-3
+
+License: GPL-3
+ On Debian systems, the full text of the GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/haproxy-log-analysis.manpages b/debian/haproxy-log-analysis.manpages
new file mode 100644
index 0000000..594ab9c
--- /dev/null
+++ b/debian/haproxy-log-analysis.manpages
@@ -0,0 +1 @@
+debian/haproxy_log_analysis.1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2220896
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+VERSION = $(shell dpkg-parsechangelog --show-field Version | cut -f1 -d-)
+
+export PYBUILD_NAME=haproxy-log-analysis
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_install:
+	dh_auto_install
+	# Remove the script from the python 2 package
+	rm debian/python-haproxy-log-analysis/usr/bin/haproxy_log_analysis
+	# Move the python 3 script to the haproxy-log-analysis package
+	mkdir -p debian/haproxy-log-analysis/usr/bin
+	mv debian/python3-haproxy-log-analysis/usr/bin/haproxy_log_analysis debian/haproxy-log-analysis/usr/bin/
+
+override_dh_installman:
+	PYTHONPATH="." help2man --no-info --version-string="${VERSION}" \
+		--name="generate aggregate statistics from HAProxy HTTP logs" \
+		--output=debian/haproxy_log_analysis.1 \
+		./debian/haproxy-log-analysis/usr/bin/haproxy_log_analysis
+	dh_installman
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d22310e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# please also check http://pypi.debian.net/haproxy_log_analysis/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+http://pypi.debian.net/haproxy_log_analysis/haproxy_log_analysis-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/haproxy-log-analysis.git



More information about the Python-modules-commits mailing list