diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..414f374 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +golang-github-go-kit-kit (0.6.0-1) UNRELEASED; urgency=medium + + * Initial release. (Closes: #883825) + + -- Martín Ferrari Thu, 07 Dec 2017 20:58:47 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..715a005 --- /dev/null +++ b/debian/control @@ -0,0 +1,47 @@ +Source: golang-github-go-kit-kit +Maintainer: Debian Go Packaging Team +Uploaders: Martín Ferrari , +Section: devel +Testsuite: autopkgtest-pkg-go +Priority: optional +Build-Depends: debhelper (>= 10~), + dh-golang (>= 1.17~), + golang-any, + golang-github-dgrijalva-jwt-go-v3-dev, + golang-github-go-logfmt-logfmt-dev, + golang-github-go-stack-stack-dev, + golang-github-opentracing-opentracing-go-dev, + golang-golang-x-net-dev, + golang-golang-x-time-dev, + golang-google-grpc-dev, +Standards-Version: 4.1.2 +Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/golang-github-go-kit-kit.git +Vcs-Git: https://anonscm.debian.org/git/pkg-go/packages/golang-github-go-kit-kit.git +Homepage: https://github.com/go-kit/kit +XS-Go-Import-Path: github.com/go-kit/kit + +Package: golang-github-go-kit-kit-dev +Architecture: all +Depends: golang-github-dgrijalva-jwt-go-v3-dev, + golang-github-go-logfmt-logfmt-dev, + golang-github-go-stack-stack-dev, + golang-github-opentracing-opentracing-go-dev, + golang-golang-x-net-dev, + golang-golang-x-time-dev, + golang-google-grpc-dev, + ${misc:Depends}, + ${shlibs:Depends}, +Description: Programming toolkit for microservices + Go kit is a set of packages and best practices, which provide a comprehensive, + robust, and trustable way of building microservices for organizations of any + size. + . + As the dependency tree is enormous, the Debian package only offers some of the + components of Go kit: + . + * auth + * endpoint + * log + * tracing + * transport + * util diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..39c4ece --- /dev/null +++ b/debian/copyright @@ -0,0 +1,30 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: golang-github-go-kit-kit +Source: https://github.com/go-kit/kit + +Files: * +Copyright: 2015 Peter Bourgon +License: Expat + +Files: debian/* +Copyright: 2017 Martín Ferrari +License: Expat + +License: Expat + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/debian/examples b/debian/examples new file mode 100644 index 0000000..e39721e --- /dev/null +++ b/debian/examples @@ -0,0 +1 @@ +examples/* diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..4a6e977 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[buildpackage] +dist = DEP14 +upstream-tag = upstream/%(version)s diff --git a/debian/patches/01-Use_jwt_v3.patch b/debian/patches/01-Use_jwt_v3.patch new file mode 100644 index 0000000..6315944 --- /dev/null +++ b/debian/patches/01-Use_jwt_v3.patch @@ -0,0 +1,23 @@ +Description: Patch the import names to use JWT v3 package. +--- a/auth/jwt/middleware.go ++++ b/auth/jwt/middleware.go +@@ -4,7 +4,7 @@ + "context" + "errors" + +- jwt "github.com/dgrijalva/jwt-go" ++ jwt "github.com/dgrijalva/jwt-go-v3" + + "github.com/go-kit/kit/endpoint" + ) +--- a/auth/jwt/middleware_test.go ++++ b/auth/jwt/middleware_test.go +@@ -8,7 +8,7 @@ + + "crypto/subtle" + +- jwt "github.com/dgrijalva/jwt-go" ++ jwt "github.com/dgrijalva/jwt-go-v3" + "github.com/go-kit/kit/endpoint" + ) + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..bc38c0b --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +01-Use_jwt_v3.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d3488b5 --- /dev/null +++ b/debian/rules @@ -0,0 +1,23 @@ +#!/usr/bin/make -f + +export DH_VERBOSE := 1 + +# Don't compile, test, or install a number of packages that require a big +# number of new dependencies, at least for now. +# Package ratelimit requires a newer version of x/time, so exclude it too. +export DH_GOLANG_EXCLUDES := \ + github.com/go-kit/kit/circuitbreaker \ + github.com/go-kit/kit/examples \ + github.com/go-kit/kit/metrics \ + github.com/go-kit/kit/ratelimit \ + github.com/go-kit/kit/sd + +%: + dh $@ --buildsystem=golang --with=golang + +override_dh_auto_install: + dh_auto_install + # Do not install excluded packages. + for pkg in $(DH_GOLANG_EXCLUDES); do \ + rm -rf debian/*/usr/share/gocode/src/$$pkg; \ + done 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..2e26912 --- /dev/null +++ b/debian/watch @@ -0,0 +1,6 @@ +version=3 + +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/golang-github-go-kit-kit-\$1\.tar\.gz/,\ +uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/,\ +dversionmangle=s/\+ds\d*$//,\ + https://github.com/go-kit/kit/tags .*/v?(\d\S*)\.tar\.gz