From 819855b869087ef516080d7d2a35e56528138933 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 18 May 2025 13:24:00 +0200 Subject: [PATCH] Adding debian version 0.0~git20191008.06d1c00-1. Signed-off-by: Daniel Baumann --- debian/changelog | 5 ++++ debian/control | 24 +++++++++++++++++++ debian/copyright | 31 +++++++++++++++++++++++++ debian/patches/debian/0001-import.patch | 15 ++++++++++++ debian/patches/series | 1 + debian/rules | 7 ++++++ debian/source/format | 1 + debian/upstream/metadata | 5 ++++ 8 files changed, 89 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/patches/debian/0001-import.patch create mode 100644 debian/patches/series create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/metadata diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d742c94 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +golang-forgejo-forgejo-contrib-go-libravatar (0.0~git20191008.06d1c00-1) unstable; urgency=low + + * Initial upload to sid, required for forgejo. + + -- Daniel Baumann Sun, 18 May 2025 13:19:15 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3c73b88 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: golang-forgejo-forgejo-contrib-go-libravatar +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://code.forgejo.org/forgejo-contrib/go-libravatar +Vcs-Browser: https://forgejo.debian.net/forgejo/golang-forgejo-forgejo-contrib-go-libravatar +Vcs-Git: https://forgejo.debian.net/forgejo/golang-forgejo-forgejo-contrib-go-libravatar +Testsuite: autopkgtest-pkg-go +XS-Go-Import-Path: code.forgejo.org/forgejo-contrib/go-libravatar + +Package: golang-forgejo-forgejo-contrib-go-libravatar-dev +Section: golang +Architecture: all +Multi-Arch: foreign +Depends: + ${misc:Depends}, +Description: serving federated avatars (Go library) + go-libravatar is a Go library to serve federated avatars. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..fee5ba1 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,31 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: go-libravatar +Upstream-Contact: https://code.forgejo.org/forgejo-contrib/go-libravatar/issues +Source: https://code.forgejo.org/forgejo-contrib/go-libravatar/tags + +Files: * +Copyright: 2016 Sandro Santilli +License: MIT + +Files: debian/* +Copyright: 2025 Daniel Baumann +License: MIT + +License: MIT + 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/patches/debian/0001-import.patch b/debian/patches/debian/0001-import.patch new file mode 100644 index 0000000..50a26ad --- /dev/null +++ b/debian/patches/debian/0001-import.patch @@ -0,0 +1,15 @@ +Author: Daniel Baumann +Description: Removing breaking import. + +diff -Naurp golang-forgejo-forgejo-contrib-go-libravatar.orig/libravatar.go golang-forgejo-forgejo-contrib-go-libravatar/libravatar.go +--- golang-forgejo-forgejo-contrib-go-libravatar.orig/libravatar.go 2025-05-18 13:16:12.000000000 +0200 ++++ golang-forgejo-forgejo-contrib-go-libravatar/libravatar.go 2025-05-18 13:29:32.746587328 +0200 +@@ -5,7 +5,7 @@ + // Implements support for federated avatars lookup. + // See https://wiki.libravatar.org/api/ + +-package libravatar // import "strk.kbt.io/projects/go/libravatar" ++package libravatar + + import ( + "crypto/md5" diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..5ffe5b5 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +debian/0001-import.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2d4fd41 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh ${@} --builddirectory=_build --buildsystem=golang + +override_dh_auto_test: + # disabled (needs upstream fixes) 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..d33b446 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://code.forgejo.org/forgejo-contrib/go-libravatar/issues +Bug-Submit: https://code.forgejo.org/forgejo-contrib/go-libravatar/issues/new +Repository: https://code.forgejo.org/forgejo-contrib/go-libravatar.git +Repository-Browse: https://code.forgejo.org/forgejo-contrib/go-libravatar