diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..18b2516 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +golang-github-farsightsec-go-nmsg (0.0~git20190917.04d2174-1) unstable; urgency=medium + + * Initial release (Closes: #942812) + + -- Sascha Steinbiss Mon, 21 Oct 2019 22:29:54 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..e5efe48 --- /dev/null +++ b/debian/control @@ -0,0 +1,39 @@ +Source: golang-github-farsightsec-go-nmsg +Maintainer: Debian Go Packaging Team +Uploaders: + Sascha Steinbiss , +Section: devel +Testsuite: autopkgtest-pkg-go +Priority: optional +Build-Depends: + debhelper-compat (= 12), + dh-golang, +Build-Depends-Indep: + golang-any, + golang-goprotobuf-dev, + golang-yaml.v2-dev, + golang-github-dnstap-golang-dnstap-dev +Standards-Version: 4.4.0 +Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-farsightsec-go-nmsg +Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-farsightsec-go-nmsg.git +Homepage: https://github.com/farsightsec/go-nmsg +Rules-Requires-Root: no +XS-Go-Import-Path: github.com/farsightsec/go-nmsg + +Package: golang-github-farsightsec-go-nmsg-dev +Architecture: all +Depends: + ${misc:Depends}, + golang-goprotobuf-dev, + golang-yaml.v2-dev, + golang-github-dnstap-golang-dnstap-dev +Description: Golang implementation of the nmsg network message encapsulation library + go-nmsg is a pure go implementation of the NMSG container and payload format used by the + C nmsg toolkit and library. + It can pack and unpack the protobuf structure of an NMSG payload, and the protobuf + structure of the data contained in the payload. It does not implement the full + functionality of the C libnmsg message modules, such as: + . + - Advanced field types (e.g., a protobuf []byte as an IP address) + - Generated fields + - Formatting of fields for presentation and JSON output diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e736384 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,21 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/farsightsec/go-nmsg +Upstream-Name: go-nmsg +Files-Excluded: + Godeps/_workspace + +Files: + * +Copyright: + 2019 Farsight Security, Inc. +License: TODO + +Files: + debian/* +Copyright: + 2019 Sascha Steinbiss +License: TODO +Comment: Debian packaging is licensed under the same terms as upstream + +License: TODO + TODO \ No newline at end of file diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..cec628c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff --git a/debian/patches/disable-cgo-test.patch b/debian/patches/disable-cgo-test.patch new file mode 100644 index 0000000..c7946e1 --- /dev/null +++ b/debian/patches/disable-cgo-test.patch @@ -0,0 +1,17 @@ +--- a/container_test.go ++++ b/container_test.go +@@ -10,7 +10,7 @@ + + // These tests verify container compatibility between C libnmsg (wrapped in + // cgo-nmsg) and go-nmsg, both with and without compression. +- ++/* + import ( + "bytes" + "log" +@@ -175,4 +175,4 @@ + } + + t.Error("payload mismatch") +-} ++}*/ diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..524f8f4 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +disable-cgo-test.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c084839 --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export DH_GOLANG_EXCLUDES := cgo-nmsg container_test + +%: + dh $@ --builddirectory=_build --buildsystem=golang --with=golang diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..b3a3456 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/golang-github-farsightsec-go-nmsg-\$1\.tar\.gz/,\ +uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/ \ + https://github.com/farsightsec/go-nmsg/tags .*/v?(\d\S*)\.tar\.gz