diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..70b7c61 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +golang-github-renekroon-ttlcache (1.4.0+git20190429.e7780e9-1) unstable; urgency=medium + + * Initial release (Closes: #928341) + + -- Sascha Steinbiss Thu, 02 May 2019 15:09:37 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +11 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c3b9c2d --- /dev/null +++ b/debian/control @@ -0,0 +1,41 @@ +Source: golang-github-renekroon-ttlcache +Section: devel +Priority: optional +Maintainer: Debian Go Packaging Team +Uploaders: Sascha Steinbiss +Build-Depends: debhelper (>= 11), + dh-golang, + golang-any, + golang-github-stretchr-testify-dev +Standards-Version: 4.3.0 +Homepage: https://github.com/ReneKroon/ttlcache +Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-renekroon-ttlcache +Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-renekroon-ttlcache.git +XS-Go-Import-Path: github.com/ReneKroon/ttlcache +Testsuite: autopkgtest-pkg-go + +Package: golang-github-renekroon-ttlcache-dev +Architecture: all +Depends: ${misc:Depends}, + golang-github-stretchr-testify-dev +Description: In-memory string-interface{} map with expiration for Golang + TTLCache is a simple key/value cache in golang with the following functions: + . + - Thread-safe + - Individual expiring time or global expiring time, you can choose + - Auto-Extending expiration on Get + - DNS style TTL, see SkipTtlExtensionOnHit(bool) + - Fast and memory efficient + - Can trigger callback on key expiration + . + Project TTLCache was forked from wunderlist/ttlcache to add extra functions + not available in the original scope. The main differences are: + . + - An item can store any kind of object, previously, only strings could be + saved + - Optionally, you can add callbacks to: check if a value should expire, be + notified if a value expires, and be notified when new values are added + to the cache + - The expiration can be either global or per item + - Can exist items without expiration time + - Expirations and callbacks are realtime diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..2688743 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ttlcache +Source: https://github.com/ReneKroon/ttlcache +Files-Excluded: + Godeps/_workspace + +Files: * +Copyright: 2018 Rene Kroon +License: MIT + +Files: debian/* +Copyright: 2019 Sascha Steinbiss +License: MIT +Comment: Debian packaging is licensed under the same terms as upstream + +License: MIT + 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. diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..cec628c --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..8cce5e0 --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --buildsystem=golang --with=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..ad20aef --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/golang-github-renekroon-ttlcache-\$1\.tar\.gz/,\ +uversionmangle=s/(\d)[_\.\-\+]?(RC|rc|pre|dev|beta|alpha)[.]?(\d*)$/\$1~\$2\$3/ \ + https://github.com/ReneKroon/ttlcache/tags .*/v?(\d\S*)\.tar\.gz