[Python-modules-commits] [bernhard] 05/05: Build bernhard/pb.py from source
Vincent Bernat
bernat at moszumanska.debian.org
Mon Jun 20 10:21:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
bernat pushed a commit to branch master
in repository bernhard.
commit a7310d6f8b8897554df96fb560a08a87b223b508
Author: Vincent Bernat <vincent at bernat.im>
Date: Mon Jun 20 12:15:56 2016 +0200
Build bernhard/pb.py from source
---
debian/clean | 1 +
debian/control | 1 +
debian/copyright | 7 +++++++
debian/riemann.proto | 47 +++++++++++++++++++++++++++++++++++++++++++++++
debian/rules | 5 +++++
5 files changed, 61 insertions(+)
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..0039dcb
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+bernhard/pb.py
diff --git a/debian/control b/debian/control
index d3f8ddc..4e7e7d7 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Priority: optional
Maintainer: Vincent Bernat <bernat at debian.org>
Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Build-Depends: debhelper (>= 9), dh-python,
+ protobuf-compiler,
python-all,
python-protobuf,
python-setuptools
diff --git a/debian/copyright b/debian/copyright
index 8b49131..b4cf784 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -11,6 +11,13 @@ Files: debian/*
Copyright: 2016 © Vincent Bernat <bernat at debian.org>
License: Apache-2.0
+Files: debian/riemann.proto
+Copyright: No copyright holder
+License: public-domain
+ This is an interface file and it is not copyrightable. It has been
+ fetched from
+ https://github.com/banjiewen/bernhard/blob/master/proto.proto.
+
License: Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/debian/riemann.proto b/debian/riemann.proto
new file mode 100644
index 0000000..f50887e
--- /dev/null
+++ b/debian/riemann.proto
@@ -0,0 +1,47 @@
+option java_package = "com.aphyr.riemann";
+option java_outer_classname = "Proto";
+
+// Deprecated; state was used by early versions of the protocol, but not any
+// more.
+message State {
+ optional int64 time = 1;
+ optional string state = 2;
+ optional string service = 3;
+ optional string host = 4;
+ optional string description = 5;
+ optional bool once = 6;
+ repeated string tags = 7;
+ optional float ttl = 8;
+}
+
+message Event {
+ optional int64 time = 1;
+ optional string state = 2;
+ optional string service = 3;
+ optional string host = 4;
+ optional string description = 5;
+ repeated string tags = 7;
+ optional float ttl = 8;
+ repeated Attribute attributes = 9;
+
+ optional sint64 metric_sint64 = 13;
+ optional double metric_d = 14;
+ optional float metric_f = 15;
+}
+
+message Query {
+ optional string string = 1;
+}
+
+message Msg {
+ optional bool ok = 2;
+ optional string error = 3;
+ repeated State states = 4;
+ optional Query query = 5;
+ repeated Event events = 6;
+}
+
+message Attribute {
+ required string key = 1;
+ optional string value = 2;
+}
diff --git a/debian/rules b/debian/rules
index da25aea..d27198f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,3 +3,8 @@
export PYBUILD_NAME=bernhard
%:
dh $@ --with python2 --buildsystem=pybuild
+
+override_dh_auto_build:
+ protoc -I=debian --python_out=bernhard debian/riemann.proto
+ mv bernhard/riemann_pb2.py bernhard/pb.py
+ dh_auto_build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/bernhard.git
More information about the Python-modules-commits
mailing list