Codebase list kcptun / 5e241a2
Pristine source of 20170525+ds Roger Shimizu 6 years ago
13 changed file(s) with 0 addition(s) and 204 deletion(s). Raw diff Collapse all Expand all
+0
-11
debian/changelog less more
0 kcptun (20170329+ds-1~exp1) experimental; urgency=medium
1
2 * New upstream v20170329
3
4 -- Roger Shimizu <rogershimizu@gmail.com> Sat, 13 May 2017 17:42:19 +0900
5
6 kcptun (20170303+ds-1~exp1) experimental; urgency=medium
7
8 * Initial release (Closes: 852957)
9
10 -- Roger Shimizu <rogershimizu@gmail.com> Tue, 07 Mar 2017 22:36:47 +0900
+0
-1
debian/compat less more
0 10
+0
-32
debian/control less more
0 Source: kcptun
1 Section: net
2 Priority: extra
3 Maintainer: Debian Go Packaging Team <pkg-go-maintainers@lists.alioth.debian.org>
4 Uploaders: Roger Shimizu <rogershimizu@gmail.com>
5 Build-Depends:
6 debhelper (>= 10),
7 dh-golang,
8 golang-any,
9 golang-github-golang-snappy-dev,
10 golang-github-pkg-errors-dev,
11 golang-github-urfave-cli-dev,
12 golang-github-xtaci-kcp-dev (>= 3.13),
13 golang-github-xtaci-smux-dev,
14 golang-golang-x-crypto-dev,
15 help2man
16 Standards-Version: 3.9.8
17 Homepage: https://github.com/xtaci/kcptun
18 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-go/packages/kcptun.git
19 Vcs-Git: https://anonscm.debian.org/git/pkg-go/packages/kcptun.git
20 XS-Go-Import-Path: github.com/xtaci/kcptun
21
22 Package: kcptun
23 Architecture: any
24 Built-Using: ${misc:Built-Using}
25 Depends:
26 ${shlibs:Depends},
27 ${misc:Depends}
28 Description: Simple UDP Tunnel Based On KCP
29 kcptun is a remote port forwarding tool by converting TCP stream into
30 UDP stream in KCP protocol, in order to achieve higher throughput or
31 lower latency with rich tuneable options.
+0
-36
debian/copyright less more
0 Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
1 Upstream-Name: kcptun
2 Upstream-Contact: Daniel Fu <daniel820313@gmail.com>
3 Source: https://github.com/xtaci/kcptun
4 Files-Excluded:
5 rs.png
6
7 Files: *
8 Copyright: 2016-2017 Daniel Fu <daniel820313@gmail.com>
9 License: Expat
10 Comment: License of image files is confirmed with upstream:
11 - https://github.com/xtaci/kcptun/issues/393
12 Non-free image file is removed.
13
14 Files: debian/*
15 Copyright: 2017 Roger Shimizu <rogershimizu@gmail.com>
16 License: Expat
17
18 License: Expat
19 Permission is hereby granted, free of charge, to any person obtaining a copy
20 of this software and associated documentation files (the "Software"), to deal
21 in the Software without restriction, including without limitation the rights
22 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
23 copies of the Software, and to permit persons to whom the Software is
24 furnished to do so, subject to the following conditions:
25 .
26 The above copyright notice and this permission notice shall be included in all
27 copies or substantial portions of the Software.
28 .
29 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35 SOFTWARE.
+0
-28
debian/maint-tools/README less more
0 Package Maintenance Tips
1 ========================
2
3 Clone and add upstream repo:
4 $ gbp clone --pristine-tar https://anonscm.debian.org/git/pkg-go/packages/kcptun.git
5 $ cd kcptun
6 $ git remote add xtaci https://github.com/xtaci/kcptun
7
8 When upstream releases a new version:
9 $ debian/maint-tools/new_upstream
10 ## command below is optional.
11 ## if you want to touch ds source of new version from upstream,
12 ## e.g. remove more files, please do it now and then:
13 $ git add -u
14 # git diff --name-status <old-version-tag> <new-version-tag>
15 $ git commit --amend --no-edit
16 $ debian/maint-tools/update_ds_tag
17 ## make a new release
18 $ dch -i
19 $ dch -r
20 $ git add -u
21 $ git commit -m "Prepare to release x.y.z+ds-1"
22
23 Build:
24 ## general gbp build
25 $ gbp buildpackage -uc -us --git-pristine-tar
26 ## gbp build with pbuilder
27 $ gbp buildpackage --git-pristine-tar --git-pbuilder --git-export-dir=../build-area
+0
-45
debian/maint-tools/new_upstream less more
0 #!/bin/sh
1
2 if git diff-index --quiet HEAD --; then
3 git fetch --all # -or- git fetch <upstream repo>
4 else
5 echo Working directory not clean. Exiting.
6 exit 1
7 fi
8
9 tag=$(git describe --tags $(git rev-list --tags='v[0-9]*' --max-count=1))
10 ver=$(echo $tag|sed s/^v//)
11 dstag=upstream/${ver}+ds
12 rmfiles=$(awk 'BEGIN{RS=ORS="\n\n";FS=OFS="\n"}/Files-Excluded:/' debian/copyright|sed -n -e '/^Files-Excluded:/,${p}'|sed s/Files-Excluded://|sed /^$/d)
13 if git rev-parse -q --verify "refs/tags/${dstag}" >/dev/null; then
14 echo Upstream tag "${dstag}" exists already. Exiting.
15 exit 1
16 fi
17 if ! git merge $tag; then
18 git add -u
19 fi
20
21 # remove all 'Files-Excluded' files listed in debian/copyright, except debian/ folder
22 for i in $rmfiles; do if [ "$i" != "debian" ]; then git rm -rf "$i"; fi; done
23 # restore the debian/ folder from previous commit
24 git checkout HEAD debian/
25 # since backported patches should be all included in the new release, remove them all here
26 sed -i '/^backport\//d' debian/patches/series
27 git add debian/patches/series
28 git rm debian/patches/backport/*.patch
29
30 if git diff-index --quiet HEAD --; then
31 git commit --amend -m "Merge upstream tag: $tag"
32 else
33 git commit -m "Merge upstream tag: $tag"
34 fi
35
36 git rm -qrf debian/
37 git commit -m "Pristine source of ${ver}+ds"
38
39 git tag ${dstag}
40 git reset --hard HEAD^
41
42 echo
43 echo If you need to remove more files, do it now then run script to update the ds tag:
44 printf \\tdebian/maint-tools/update_ds_tag\\n
+0
-26
debian/maint-tools/update_ds_tag less more
0 #!/bin/sh
1
2 tag=$(git describe --tags $(git rev-list --tags='v[0-9]*' --max-count=1))
3 ver=$(echo $tag|sed s/^v//)
4 dstag=upstream/${ver}+ds
5
6 if git diff-index --quiet HEAD --; then
7 echo Pristine source for $ver
8 else
9 echo Working directory not clean. exiting.
10 exit 1
11 fi
12
13 git rm -qrf debian/
14 git commit -m "Pristine source of ${ver}+ds"
15 if git rev-parse -q --verify "refs/tags/${dstag}" >/dev/null; then
16 i=0
17 while git rev-parse -q --verify "refs/tags/${dstag}_prev${i}" >/dev/null; do
18 i=$(($i+1))
19 done
20 git tag ${dstag}_prev${i} $dstag
21 git tag -d $dstag
22 fi
23
24 git tag ${dstag}
25 git reset --hard HEAD^
+0
-1
debian/manpages less more
0 obj-*/*.1
+0
-0
debian/patches/series less more
(Empty file)
+0
-14
debian/rules less more
0 #!/usr/bin/make -f
1
2 override_dh_auto_install:
3 cd obj-$(DEB_TARGET_GNU_TYPE); \
4 for bin in server client; do \
5 mv bin/$$bin bin/kcptun-$$bin; \
6 help2man -N -n "Simple UDP Tunnel Based On KCP" \
7 --version-string="$(shell dpkg-parsechangelog --show-field Version)" \
8 -o kcptun-$$bin.1 bin/kcptun-$$bin; \
9 done
10 dh_auto_install
11
12 %:
13 dh $@ --buildsystem=golang --with=golang
+0
-1
debian/source/format less more
0 3.0 (quilt)
+0
-2
debian/source.lintian-overrides less more
0 # false positive: #505857
1 kcptun source: debian-watch-file-should-mangle-version
+0
-7
debian/watch less more
0 version=4
1
2 opts="repack,compression=xz, \
3 dversionmangle=s/\+ds\d*$//,repacksuffix=+ds, \
4 filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/kcptun-\$1\.tar\.gz/, \
5 uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/$1~$2$3/" \
6 https://github.com/xtaci/kcptun/tags .*/v?(\d\S*)\.tar\.gz debian uupdate