From 7bef459dd6fb0d49a757337e71931d688908f71b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 11 Jan 2016 01:49:27 +0100 Subject: inital version --- Makefile | 15 +++++++++++++++ debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 15 +++++++++++++++ debian/copyright | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ debian/rules | 12 ++++++++++++ debian/source/format | 1 + 7 files changed, 100 insertions(+) create mode 100644 Makefile create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7d6197d --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +VERSION := 0.1.1 +DEBARCHS := amd64 i386 armhf +EXECUTEABLES := $(DEBARCHS:%=vanity.%) + +all: $(EXECUTEABLES) + +vanity.%: vanity_linux_%.gz + cat $< | gunzip > $@ + +vanity_linux_%.gz: + wget -nc "https://github.com/xiam/vanity/releases/download/v$(VERSION)/$(shell echo $@ | sed s/i386/386/ | sed s/armhf/arm/)" -O $@ + +clean: + rm -f vanity.* + rm -f vanity_linux_*.gz diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..075e006 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +vanity (0.1.1-1) UNRELEASED; urgency=medium + + * Initial release. + + -- Christian Pointner Mon, 11 Jan 2016 01:36:07 +0100 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..7e20985 --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: vanity +Maintainer: Christian Pointner +Section: utils +Priority: optional +Standards-Version: 3.9.2 +Build-Depends: debhelper (>= 9), wget, ca-certificates + +Package: vanity +Architecture: amd64 i386 armhf +Depends: ${misc:Depends} +Description: makes golang packages go-getable + Vanity can be used to make golang packages hosted on custom domains + getable. It also has built-in support for versioning of golang packages + + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..c9aca29 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,51 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: vanity +Upstream-Contact: jose.carlos@menteslibres.net +Source: https://github.com/xiam/vanity + +Files: * +Copyright: 2014, Gustavo Niemeyer +License: BSD-2-clause + This project was based on gopkg.in by Gustavo Niemeyer: + . + gopkg.in - versioned URLs for Go packages + . + Copyright (c) 2014 - Gustavo Niemeyer + . + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + 1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + 2. 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. + . + 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 OWNER 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. + +Files: debian/* +Copyright: 2016, Christian Pointner +License: GPL-3+ + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + . + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see '/usr/share/common-licenses/GPL-3'. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..b985f0b --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_configure: + +override_dh_auto_build: + make vanity.$(DEB_BUILD_ARCH) + +override_dh_auto_install: + install -d $$(pwd)/debian/tmp/usr/bin/ + install -m 755 $$(pwd)/vanity.$(DEB_BUILD_ARCH) $$(pwd)/debian/tmp/usr/bin/vanity diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 -- cgit v1.2.3