Add debian packaging.

This commit is contained in:
Martin Dosch 2020-04-04 10:02:56 +02:00
parent c292b4b320
commit 4e5e7df424
19 changed files with 124 additions and 0 deletions

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
go-sendxmpp (0.0~git20200403.c36bd5c-1) UNRELEASED; urgency=medium
* Initial release (Closes: #905427)
-- Martin Dosch <spam-debian@mdosch.de> Fri, 03 Apr 2020 16:11:28 +0200

22
debian/control vendored Normal file
View File

@ -0,0 +1,22 @@
Source: go-sendxmpp
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Martin Dosch <spam-debian@mdosch.de>
Section: devel
Testsuite: autopkgtest-pkg-go
Priority: optional
Build-Depends: debhelper-compat (= 12),
dh-golang,
golang-any
Standards-Version: 4.5.0
Vcs-Browser: https://salsa.debian.org/go-team/packages/go-sendxmpp
Vcs-Git: https://salsa.debian.org/go-team/packages/go-sendxmpp.git
Homepage: https://salsa.debian.org/mdosch-guest/go-sendxmpp
Rules-Requires-Root: no
XS-Go-Import-Path: salsa.debian.org/mdosch-guest/go-sendxmpp
Package: go-sendxmpp
Architecture: any
Depends: ${misc:Depends},
${shlibs:Depends}
Built-Using: ${misc:Built-Using}
Description: A little tool to send messages to an XMPP contact or MUC.

17
debian/copyright vendored Normal file
View File

@ -0,0 +1,17 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: go-sendxmpp
Upstream-Contact: Martin Dosch <spam-debian@mdosch.de>
Source: https://salsa.debian.org/mdosch-guest/go-sendxmpp
Files-Excluded:
vendor
Files: *
Copyright: 2018 - 2020
License: BSD 2-CLAUSE
Files: debian/*
Copyright: 2020 Martin Dosch <spam-debian@mdosch.de>
License: BSD 2-CLAUSE
Comment: Debian packaging is licensed under the same terms as upstream
License: BSD 2-CLAUSE

1
debian/debhelper-build-stamp vendored Normal file
View File

@ -0,0 +1 @@
go-sendxmpp

2
debian/files vendored Normal file
View File

@ -0,0 +1,2 @@
go-sendxmpp_0.0~git20200403.c36bd5c-1_amd64.buildinfo devel optional
go-sendxmpp_0.0~git20200403.c36bd5c-1_amd64.deb devel optional

3
debian/gbp.conf vendored Normal file
View File

@ -0,0 +1,3 @@
[DEFAULT]
debian-branch = debian/sid
dist = DEP14

26
debian/gitlab-ci.yml vendored Normal file
View File

@ -0,0 +1,26 @@
# auto-generated, DO NOT MODIFY.
# The authoritative copy of this file lives at:
# https://salsa.debian.org/go-team/ci/blob/master/config/gitlabciyml.go
image: stapelberg/ci2
test_the_archive:
artifacts:
paths:
- before-applying-commit.json
- after-applying-commit.json
script:
# Create an overlay to discard writes to /srv/gopath/src after the build:
- "rm -rf /cache/overlay/{upper,work}"
- "mkdir -p /cache/overlay/{upper,work}"
- "mount -t overlay overlay -o lowerdir=/srv/gopath/src,upperdir=/cache/overlay/upper,workdir=/cache/overlay/work /srv/gopath/src"
- "export GOPATH=/srv/gopath"
- "export GOCACHE=/cache/go"
# Build the world as-is:
- "ci-build -exemptions=/var/lib/ci-build/exemptions.json > before-applying-commit.json"
# Copy this package into the overlay:
- "GBP_CONF_FILES=:debian/gbp.conf gbp buildpackage --git-no-pristine-tar --git-ignore-branch --git-ignore-new --git-export-dir=/tmp/export --git-no-overlay --git-tarball-dir=/nonexistant --git-cleaner=/bin/true --git-builder='dpkg-buildpackage -S -d --no-sign'"
- "pgt-gopath -dsc /tmp/export/*.dsc"
# Rebuild the world:
- "ci-build -exemptions=/var/lib/ci-build/exemptions.json > after-applying-commit.json"
- "ci-diff before-applying-commit.json after-applying-commit.json"

1
debian/go-sendxmpp.debhelper.log vendored Normal file
View File

@ -0,0 +1 @@
dh_auto_install

2
debian/go-sendxmpp.manpages vendored Normal file
View File

@ -0,0 +1,2 @@
man/go-sendxmpp.1
man/go-sendxmpp.5

4
debian/go-sendxmpp.substvars vendored Normal file
View File

@ -0,0 +1,4 @@
shlibs:Depends=libc6 (>= 2.4)
misc:Built-Using=golang-1.14 (= 1.14.1-1)
misc:Depends=
misc:Pre-Depends=

11
debian/go-sendxmpp/DEBIAN/control vendored Normal file
View File

@ -0,0 +1,11 @@
Package: go-sendxmpp
Version: 0.0~git20200403.c36bd5c-1
Architecture: amd64
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Installed-Size: 5308
Depends: libc6 (>= 2.4)
Built-Using: golang-1.14 (= 1.14.1-1)
Section: devel
Priority: optional
Homepage: https://salsa.debian.org/mdosch-guest/go-sendxmpp
Description: A little tool to send messages to an XMPP contact or MUC.

5
debian/go-sendxmpp/DEBIAN/md5sums vendored Normal file
View File

@ -0,0 +1,5 @@
46922d77300542b5ae6b46d3f2078700 usr/bin/go-sendxmpp
3c9b42e087ac59e9a40ed0cc1718228d usr/share/doc/go-sendxmpp/changelog.Debian.gz
52005f0dfec1d27e803944948a29417c usr/share/doc/go-sendxmpp/copyright
6e30bf2aa333a8ad0e943845f817b36a usr/share/man/man1/go-sendxmpp.1.gz
003347461feaff4573321aa92f55fe45 usr/share/man/man5/go-sendxmpp.5.gz

BIN
debian/go-sendxmpp/usr/bin/go-sendxmpp vendored Executable file

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,17 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: go-sendxmpp
Upstream-Contact: Martin Dosch <spam-debian@mdosch.de>
Source: https://salsa.debian.org/mdosch-guest/go-sendxmpp
Files-Excluded:
vendor
Files: *
Copyright: 2018 - 2020
License: MIT
Files: debian/*
Copyright: 2020 Martin Dosch <spam-debian@mdosch.de>
License: MIT
Comment: Debian packaging is licensed under the same terms as upstream
License: MIT

Binary file not shown.

Binary file not shown.

7
debian/rules vendored Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/make -f
%:
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
override_dh_auto_install:
dh_auto_install -- --no-source

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (quilt)