[Python-modules-commits] [mrtparse] 05/05: Add an mrtparse package with examples

Vincent Bernat bernat at moszumanska.debian.org
Mon Jul 11 09:20:14 UTC 2016


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

bernat pushed a commit to branch master
in repository mrtparse.

commit 40cb60aa91ba192c387f66be5595817a6e572627
Author: Vincent Bernat <vincent at bernat.im>
Date:   Mon Jul 11 11:02:17 2016 +0200

    Add an mrtparse package with examples
---
 debian/control           | 19 +++++++++++++++++++
 debian/mrtparse.dirs     |  1 +
 debian/mrtparse.docs     |  1 +
 debian/mrtparse.examples |  1 +
 debian/rules             | 10 ++++++++++
 5 files changed, 32 insertions(+)

diff --git a/debian/control b/debian/control
index 47da5fa..315a054 100644
--- a/debian/control
+++ b/debian/control
@@ -46,3 +46,22 @@ Description: read and analyze the MRT format data (Python 3.x module)
  Projects and RIPE NCC.
  .
  This package contains the module for Python 3.x.
+
+Package: mrtparse
+Architecture: all
+Depends: ${misc:Depends},
+         python3,
+         python3-mrtparse (= ${binary:Version})
+Description: read and analyze the MRT format data (utilities)
+ The MRT format can be used to export routing protocol messages, state
+ changes, and routing information base contents, and is defined in
+ RFC6396.
+ .
+ Programs like Quagga / Zebra, BIRD, OpenBGPD and PyRT can dump the
+ MRT format data. Archives are also available from the Route Views
+ Projects and RIPE NCC.
+ .
+ This package contains various utilities using the Python module,
+ including a tool to convert to an ExaBGP input, a tool to a bgpdump
+ input, a tool to dump all the information as text and a tool to print
+ a short summary.
diff --git a/debian/mrtparse.dirs b/debian/mrtparse.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/mrtparse.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/mrtparse.docs b/debian/mrtparse.docs
new file mode 100644
index 0000000..fd9c5a7
--- /dev/null
+++ b/debian/mrtparse.docs
@@ -0,0 +1 @@
+mrtparse/examples/README.md
diff --git a/debian/mrtparse.examples b/debian/mrtparse.examples
new file mode 100644
index 0000000..7cae346
--- /dev/null
+++ b/debian/mrtparse.examples
@@ -0,0 +1 @@
+mrtparse/samples/*
diff --git a/debian/rules b/debian/rules
index d446569..0e0cc3c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,16 @@
 #! /usr/bin/make -f
 
 export PYBUILD_NAME=mrtparse
+export PYBUILD_AFTER_INSTALL=rm -rf debian/{package}/{install_dir}/mrtparse/examples debian/{package}/{install_dir}/mrtparse/samples
 
 %:
 	dh $@ --with python3,python2 --buildsystem=pybuild
+
+override_dh_auto_install:
+	dh_auto_install
+	for p in mrtparse/examples/*.py; do \
+		set -e ; \
+		target=$$(echo $${p##*/} | sed -e 's/\.py$$//' -e 's/_/-/g' -e '/^mrt/ !s/^/mrt-/') ; \
+		sed 1s/python/python3/ $$p > debian/mrtparse/usr/bin/$${target} ; \
+		chmod +x debian/mrtparse/usr/bin/$${target} ; \
+	done

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



More information about the Python-modules-commits mailing list