parent
e3f3d0050e
commit
ec0ac3985a
@ -0,0 +1,6 @@
|
||||
golang-freecumextremist-themusicgod1-xhandler (0.0+0~gite3f3d0050e-1) UNRELEASED; urgency=low
|
||||
|
||||
[ Jeffrey Cliff ]
|
||||
* Initial release. (Closes: #)
|
||||
|
||||
-- Jeffrey Cliff <jeffrey.cliff@gmail.com> Thu, 10 Sep 2022 22:00:00 +0600
|
@ -0,0 +1 @@
|
||||
11
|
@ -0,0 +1,19 @@
|
||||
Source: golang-freecumextremist-themusicgod1-xhandler
|
||||
Section: devel
|
||||
Priority: optional
|
||||
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
|
||||
Uploaders: TBD <TBD@TBD.com>
|
||||
Build-Depends: debhelper (>= 8),
|
||||
dh-golang,
|
||||
gccgo
|
||||
Standards-Version: 4.1.1
|
||||
Homepage: https://git.freecumextremist.com/themusicgod1/xhandler
|
||||
XS-Go-Import-Path: git.freecumextremist.com/themusicgod1/xhandler
|
||||
Testsuite: autopkgtest-pkg-go
|
||||
|
||||
Package: golang-freecumextremist-themusicgod1-xhandler-dev
|
||||
Architecture: any
|
||||
Depends: ${misc:Depends},
|
||||
Description: XHandler is a bridge between net/context and http.Handler.
|
||||
It lets you enforce net/context in your handlers without sacrificing
|
||||
compatibility with existing http.Handlers nor imposing a specific router.
|
@ -0,0 +1,36 @@
|
||||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: xhandler
|
||||
Source: https://git.freecumextremist.com/themusicgod1/xhandler
|
||||
|
||||
Files: *
|
||||
Copyright: 2015 Olivier Poitrey <rs@dailymotion.com>
|
||||
License: Expat
|
||||
|
||||
Files: debian/*
|
||||
Copyright: 2016 Nobuhiro Iwamatsu <iwamatsu@debian.org>
|
||||
License: Expat
|
||||
|
||||
Files: debian/control
|
||||
Copyright: 2018 John Unland
|
||||
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.
|
||||
|
@ -0,0 +1,75 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
# originally from https://raw.githubusercontent.com/junland/hello-deb/master/debian/rules
|
||||
export DH_OPTIONS
|
||||
|
||||
##
|
||||
# From git-lfs/git-lfs repo:
|
||||
# Looks like dh_golang doesn't set diffrent archs, so you have to do them semi-manually.
|
||||
##
|
||||
|
||||
## This if-structure is decided on what is passed by the -a flag by dpkg-buildpackage command.
|
||||
ifeq ($(DEB_HOST_ARCH), i386)
|
||||
export GOARCH := 386
|
||||
else ifeq ($(DEB_HOST_ARCH), amd64)
|
||||
export GOARCH := amd64
|
||||
else ifeq ($(DEB_HOST_ARCH), armhf)
|
||||
export GOARCH := arm
|
||||
# May need to set GOARM as well if your going to target ARM. But for now this works.
|
||||
else ifeq ($(DEB_HOST_ARCH), arm64)
|
||||
export GOARCH := arm64
|
||||
endif
|
||||
|
||||
# Or add your arch that your targeting, these are just examples.
|
||||
|
||||
# Directory where compiled binary is placed + debian setup files.
|
||||
# Note: If your doing building thru git, you may want to add obj-* to .gitignore
|
||||
BUILD_DIR := obj-$(DEB_HOST_GNU_TYPE)
|
||||
|
||||
# Required: Put the url (without http://) of your git repo.
|
||||
export DH_GOPKG := git.freecumextremist.com/themusicgod1/xhandler
|
||||
|
||||
# Required: Put the name of your git repo below.
|
||||
GIT_REPO_NAME := xhandler
|
||||
|
||||
export PATH := $(CURDIR)/$(BUILD_DIR)/bin:$(PATH)
|
||||
|
||||
##
|
||||
# From git-lfs/git-lfs repo:
|
||||
# by-default, dh_golang only copies *.go and other source - this upsets a bunch of vendor test routines
|
||||
##
|
||||
export DH_GOLANG_INSTALL_ALL := 1
|
||||
|
||||
%:
|
||||
dh $@ --buildsystem=golang --with=golang
|
||||
|
||||
override_dh_clean:
|
||||
rm -f debian/debhelper.log
|
||||
dh_clean
|
||||
|
||||
override_dh_auto_build:
|
||||
dh_auto_build -- -ldflags "-s -w"
|
||||
##
|
||||
# From git-lfs/git-lfs repo:
|
||||
# dh_golang doesn't do anything here in deb 8, and it's needed in both
|
||||
##
|
||||
if [ "$(DEB_HOST_GNU_TYPE)" != "$(DEB_BUILD_GNU_TYPE)" ]; then\
|
||||
cp -rf $(BUILD_DIR)/bin/*/* $(BUILD_DIR)/bin/; \
|
||||
cp -rf $(BUILD_DIR)/pkg/*/* $(BUILD_DIR)/pkg/; \
|
||||
fi
|
||||
|
||||
override_dh_strip:
|
||||
##
|
||||
# From git-lfs/git-lfs repo:
|
||||
# strip disabled as golang upstream doesn't support it and it makes go crash.
|
||||
# See https://launchpad.net/bugs/1200255.
|
||||
##
|
||||
|
||||
override_dh_golang:
|
||||
##
|
||||
# From git-lfs/git-lfs repo:
|
||||
# The dh_golang is used to add the Built-using field to the deb. This is only for reference.
|
||||
# As of https://anonscm.debian.org/cgit/collab-maint/dh-golang.git/commit/script/dh_golang?id=7c3fbec6ea92294477fa8910264fe9bd823f21c3
|
||||
# dh_golang errors out because the go compiler used was not installed via a package. Therefore the step is skipped
|
||||
##
|
||||
|
Loading…
Reference in new issue