diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d00a843 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +golang-github-dop251-base64dec (0.0~git20231022.c6c9f9a-1) unstable; urgency=low + + * Initial upload to sid, required for beszel. + + -- Daniel Baumann Thu, 22 May 2025 11:58:59 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..299c256 --- /dev/null +++ b/debian/control @@ -0,0 +1,35 @@ +Source: golang-github-dop251-base64dec +Section: golang +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + debhelper-compat (= 13), + dh-sequence-golang, + golang-any, +Rules-Requires-Root: no +Standards-Version: 4.7.2 +Homepage: https://github.com/dop251/base64dec +Vcs-Browser: https://forgejo.debian.net/beszel/golang-github-dop251-base64dec +Vcs-Git: https://forgejo.debian.net/beszel/golang-github-dop251-base64dec +Testsuite: autopkgtest-pkg-go +XS-Go-Import-Path: github.com/dop251/base64dec + +Package: golang-github-dop251-base64dec-dev +Architecture: all +Multi-Arch: foreign +Depends: + ${misc:Depends}, +Description: Universal Lenient Base64 Decoder (Go library) + base64dec is a Universal Lenient Base64 Decoder. It's a modified version of the + standard base64 decoder from encoding/base64. The key differences are: + . + * Accepts both Standard and URL-safe encoding, no need to specify it + explicitly. + * Works for both padded and raw inputs. + * The input can be a string or a []byte, no allocation or copy is + performed for either. + . + The goal was to create a decoder compatible with the one used in nodejs + (and possibly elsewhere too). Unfortunately the standard package does + not expose enough API to do this efficiently, and trying all 4 possible + variants (standard/url, padded/raw) seemed wasteful. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..bc47c77 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: base64dec +Upstream-Contact: https://github.com/dop251/base64dec/issues +Source: https://github.com/dop251/base64dec/tags + +Files: * +Copyright: 2023 Dmitry Panov + 2009 The Go Authors +License: BSD-3-clause + +Files: debian/* +Copyright: 2025 Daniel Baumann +License: BSD-3-clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + . + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + * Neither the name of Google Inc. nor the names of its contributors may be used + to endorse or promote products derived from this software without specific + prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR + SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER + CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..0af86df --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh ${@} --builddirectory=_build --buildsystem=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/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..49ff6bb --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/dop251/base64dec/issues +Bug-Submit: https://github.com/dop251/base64dec/issues/new +Repository: https://github.com/dop251/base64dec.git +Repository-Browse: https://github.com/dop251/base64dec diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..91d5c54 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://github.com/dop251/base64dec/tags .*/v?(\d.*)@ARCHIVE_EXT@