diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..c17b405 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +golang-github-gobuffalo-packr (1.30.1-0kali1) kali-dev; urgency=medium + + * Initial release + + -- Sophie Brun Wed, 29 Apr 2020 16:59:11 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..405cf24 --- /dev/null +++ b/debian/control @@ -0,0 +1,34 @@ +Source: golang-github-gobuffalo-packr +Section: devel +Priority: optional +Maintainer: Kali Developers +Uploaders: Sophie Brun +Build-Depends: debhelper-compat (= 12), + dh-golang, + ca-certificates, + golang-any, + golang-github-gobuffalo-envy-dev, + golang-github-karrick-godirwalk-dev, + golang-github-rogpeppe-go-internal-dev, + golang-github-spf13-cobra-dev, + golang-github-stretchr-testify-dev, + golang-golang-x-sync-dev, + golang-golang-x-tools-dev, + golang-logrus-dev +Standards-Version: 4.5.0 +Vcs-Browser: https://gitlab.com/kalilinux/packages/golang-github-gobuffalo-packr +Vcs-Git: https://gitlab.com/kalilinux/packges/golang-github-gobuffalo-packr.git +Homepage: https://github.com/gobuffalo/packr +Rules-Requires-Root: no +XS-Go-Import-Path: github.com/gobuffalo/packr +Testsuite: autopkgtest-pkg-go + +Package: golang-github-gobuffalo-packr-dev +Architecture: any +Depends: ${misc:Depends}, + ${shlibs:Depends} +Built-Using: ${misc:Built-Using} +Description: The simple and easy way to embed static files into Go binaries. (program) + Packr is a simple solution for bundling static assets inside of Go + binaries. Most importantly it does it in a way that is friendly + to developers while they are developing. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e55e165 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,16 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: packr +Upstream-Contact: TODO +Source: https://github.com/gobuffalo/packr + +Files: * +Copyright: 2017 Buffalo - The Go Web Eco-System +License: Expat + +Files: debian/* +Copyright: 2020 Sophie Brun +License: Expat +Comment: Debian packaging is licensed under the same terms as upstream + +License: Expat + TODO \ No newline at end of file diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..3d450c2 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,3 @@ +[DEFAULT] +debian-branch = debian/sid +dist = DEP14 diff --git a/debian/gitlab-ci.yml b/debian/gitlab-ci.yml new file mode 100644 index 0000000..03e820d --- /dev/null +++ b/debian/gitlab-ci.yml @@ -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" diff --git a/debian/golang-github-gobuffalo-packr-dev.install b/debian/golang-github-gobuffalo-packr-dev.install new file mode 100644 index 0000000..8176a23 --- /dev/null +++ b/debian/golang-github-gobuffalo-packr-dev.install @@ -0,0 +1 @@ +vendor/bin/packr usr/bin diff --git a/debian/patches/add-missing-depends.patch b/debian/patches/add-missing-depends.patch new file mode 100644 index 0000000..f0aa40c --- /dev/null +++ b/debian/patches/add-missing-depends.patch @@ -0,0 +1,10 @@ +--- a/go.mod ++++ b/go.mod +@@ -8,5 +8,7 @@ require ( + github.com/gobuffalo/packr/v2 v2.5.1 + github.com/spf13/cobra v0.0.5 + github.com/stretchr/testify v1.3.0 ++ github.com/gobuffalo/logger v1.0.3 ++ github.com/gobuffalo/packd v0.2.0 + golang.org/x/sync v0.0.0-20190423024810-112230192c58 + ) diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..e34a891 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +add-missing-depends.patch diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..40e6273 --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f + +#export DH_GOPKG := github.com/gobuffalo/packr +export GOCACHE=$(CURDIR)/vendor +export GOPATH=$(CURDIR)/vendor + +%: + dh $@ --builddirectory=_build --buildsystem=golang --with=golang + +override_dh_auto_build: + go get -d + go install ./... + +override_dh_auto_install: + find . + dh_auto_install -- --no-source + +override_dh_auto_test: + +override_dh_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..669c10f --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%packr-$1.tar.gz%,\ + uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/" \ + https://github.com/gobuffalo/packr/tags .*/v?(\d\S*)\.tar\.gz debian