debian/0000755000000000000000000000000012632127202007163 5ustar debian/changelog0000644000000000000000000000233312632127202011036 0ustar golang-gocapability-dev (0.0~git20150506.1.66ef2aa-1ubuntu1) xenial; urgency=medium * Re-enable testsuite. -- Stéphane Graber Wed, 09 Dec 2015 17:43:02 -0500 golang-gocapability-dev (0.0~git20150506.1.66ef2aa-1) unstable; urgency=medium * Team upload. * New upstream version (0.0~git20150506.1.66ef2aa). -- Tianon Gravi Wed, 20 May 2015 02:58:32 -0600 golang-gocapability-dev (0.0~git20150323.1.8e4cdcb-1) unstable; urgency=medium * Team upload. * Upload to unstable. -- Tianon Gravi Sat, 02 May 2015 23:58:21 -0600 golang-gocapability-dev (0.0~git20150323.1.8e4cdcb-1~exp1) experimental; urgency=low * Team upload. * New upstream version (0.0~git20150323.1.8e4cdcb). * Bump Standards-Version to 3.9.6. -- Tianon Gravi Wed, 01 Apr 2015 10:57:35 -0600 golang-gocapability-dev (0.0~git20140516-1) unstable; urgency=low * New upstream version (0.0~git20140516). -- Johan Euphrosine Tue, 27 May 2014 16:17:07 -0700 golang-gocapability-dev (0.0~git20130208-1) unstable; urgency=low * Initial release (Closes: #735407) -- Johan Euphrosine Wed, 15 Jan 2014 00:17:34 -0800 debian/golang-gocapability-dev.lintian-overrides0000644000000000000000000000012112507020235017224 0ustar # There is no upstream changelog. golang-gocapability-dev: no-upstream-changelog debian/compat0000644000000000000000000000000212507020235010360 0ustar 9 debian/Dockerfile0000644000000000000000000000123112507020235011151 0ustar FROM stackbrew/debian:sid MAINTAINER Johan Euphrosine RUN echo 'deb-src http://http.debian.net/debian sid main' >> /etc/apt/sources.list RUN apt-get update && apt-get install -yq git dh-golang golang build-essential devscripts equivs libcrypt-ssleay-perl lintian --no-install-recommends ADD . /usr/src/golang-gocapability-dev/debian/ WORKDIR /usr/src/golang-gocapability-dev RUN mk-build-deps -irt'apt-get --no-install-recommends -yq' debian/control RUN (cd /tmp && bash -x /usr/src/golang-gocapability-dev/debian/README.Source && cp *.orig.tar.gz /usr/src) RUN (cd /usr/src && tar xvzf /usr/src/*.orig.tar.gz) CMD [ "debuild", "-us", "-uc" ]debian/source/0000755000000000000000000000000012507020235010462 5ustar debian/source/lintian-overrides0000644000000000000000000000041412507020235014042 0ustar # debian/watch is missing intentionally. There are no releases, new code goes # directly into the repository. In case gocapability gets a new maintainer # who does it differently, debian/watch can be added. golang-gocapability-dev source: debian-watch-file-is-missing debian/source/format0000644000000000000000000000001412507020235011670 0ustar 3.0 (quilt) debian/helpers/0000755000000000000000000000000012507020771010631 5ustar debian/helpers/setup-upstream-remote.sh0000755000000000000000000000025012507020235015447 0ustar #!/bin/bash set -e upstream='https://github.com/syndtr/gocapability.git' if ! git remote | grep -q upstream; then ( set -x; git remote add upstream "$upstream" ) fi debian/helpers/generate-tarball.sh0000755000000000000000000000235712507020235014403 0ustar #!/bin/bash set -e # usage: $0 [directory [version]] directory="$1" version="$2" if [ -z "$directory" ]; then echo >&2 "usage: $0 directory [version]" echo >&2 " ie: $0 ../tarballs" echo >&2 " $0 .. 0.0~git19700101.1.0000000" exit 1 fi debian="$(readlink -f "$(dirname "$BASH_SOURCE")/..")" packageLine="$(head -n1 "$debian/changelog")" packageName="$(echo "$packageLine" | cut -d' ' -f1)" packageDebianVersion="$(echo "$packageLine" | cut -d'(' -f2 | cut -d')' -f1)" packageVersion="${packageDebianVersion%-*}" # strip off the "debian version" suffix (-1, -2, -3, etc) if [ -z "$version" ]; then echo >&2 "version not specified, using '$packageVersion' from d/changelog" version="$packageVersion" fi tag="upstream/${version//'~'/_}" mkdir -p "$directory" directory="$(readlink -f "$directory")" archive="$directory/${packageName}_${version}.orig.tar.gz" commit="$(git log -1 --pretty='%h' "$tag" -- || true)" if [ -z "$commit" ]; then echo >&2 "error: $tag does not appear to be a valid tag" echo >&2 ' did you forget to run "create-upstream-tag.sh"?' exit 1 fi gitRoot="$(git rev-parse --show-toplevel)" ( set -x cd "$gitRoot" git archive \ --format='tar.gz' \ --prefix="${packageName}_${commit}/" \ "$tag" \ > "$archive" ) debian/helpers/create-upstream-tag.sh0000755000000000000000000000255012507020771015044 0ustar #!/bin/bash set -e upstreamCommit="$1" dayVersion="${2:-1}" if [ -z "$upstreamCommit" ]; then echo >&2 "usage: $0 commit [day-version]" echo >&2 " ie: $0 8d849acb" echo >&2 " ie: $0 upstream # to tag the latest local upstream commit" echo >&2 " ie: $0 upstream 2 # to tag a second commit in the same day" echo >&2 echo >&2 'DO NOT USE BRANCH NAMES OR TAG NAMES FROM UPSTREAM!' echo >&2 'ONLY COMMIT HASHES OR "upstream" WILL WORK PROPERLY!' echo >&2 echo >&2 'Also, you _must_ update your upstream remote and branch first, because that' echo >&2 'is where these commits come from ultimately.' echo >&2 '(See also the "update-upstream-branch.sh" helper.)' exit 1 fi dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" "$dir/setup-upstream-remote.sh" git fetch -qp --all || true commit="$(git log -1 --date='short' --pretty='%h' "$upstreamCommit" --)" unix="$(git log -1 --format='%at' "$commit" --)" gitTime="$(date --date="@$unix" +'%Y%m%d')" version="0.0~git${gitTime}.${dayVersion}.${commit}" echo echo "commit $commit becomes version $version" echo tag="upstream/${version//'~'/_}" ( set -x; git tag -f "$tag" "$commit" ) echo echo "local tag '$tag' created" echo echo 'use the following to push it:' echo echo " git push -f origin $tag:$tag" echo echo 'if this upstream version has not been merged into master yet, use:' echo echo " git merge $tag" echo debian/helpers/update-upstream-branch.sh0000755000000000000000000000053012507020235015534 0ustar #!/bin/bash set -e dir="$(dirname "$(readlink -f "$BASH_SOURCE")")" "$dir/setup-upstream-remote.sh" ( set -x; git fetch -q upstream master ) ( set -x; git update-ref refs/heads/upstream FETCH_HEAD ) echo echo 'local "upstream" branch updated' echo echo 'use the following to push it:' echo echo ' git push -f origin upstream:upstream' echo debian/README.Source0000644000000000000000000000135612507020235011306 0ustar This package was debianized as part of the Docker in Debian work. It's been packaged in line with the policy that paultag set, so any questions or concerns about this (or other packages like it) can be sent to him. If there's an issue, of course, please feel free to fix the packaging. # generate orig tarball ./debian/helpers/generate-tarball.sh .. # see ../golang-gocapability-dev_0.0~gitXXXXXXXX.orig.tar.gz # update "upstream" branch ./debian/helpers/update-upstream-branch.sh # create new "upstream/..." tag ./debian/helpers/create-upstream-tag.sh upstream # to package latest # or ./debian/helpers/create-upstream-tag.sh ./debian/helpers/create-upstream-tag.sh 8e4cdcb # version number for debian/changelog will be printed debian/copyright0000644000000000000000000000551112507020235011117 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: gocapability Source: https://github.com/syndtr/gocapability Files: * Copyright: 2013, Suryandaru Triandana License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * 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 HOLDER 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: 2013-2014 Johan Euphrosine , 2015 Tianon Gravi License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * 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 HOLDER 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. debian/control0000644000000000000000000000150412632127207010573 0ustar Source: golang-gocapability-dev Section: devel Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Johan Euphrosine Uploaders: Docker Packaging Team Build-Depends: debhelper (>= 9), dh-golang, golang Standards-Version: 3.9.6 Homepage: https://github.com/syndtr/gocapability Vcs-Git: git://anonscm.debian.org/pkg-go/packages/golang-gocapability-dev.git Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/golang-gocapability-dev.git Package: golang-gocapability-dev Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Description: Utilities for manipulating POSIX capabilities in Go. Package capability provides utilities for manipulating POSIX capabilities. . This package contains the source. debian/rules0000755000000000000000000000050712632127165010255 0ustar #!/usr/bin/make -f # -*- makefile -*- export DH_VERBOSE := 1 export DH_GOPKG := github.com/syndtr/gocapability %: dh $@ --buildsystem=golang --with=golang override_dh_auto_install: dh_auto_install # the "enumgen" binary is useless outside of gocapability upstream development rm -r debian/golang-gocapability-dev/usr/bin