From ffd4a775b3c39a6a900b63454ddbe9a97bd7f697 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 8 Feb 2021 14:17:49 +0100 Subject: Adding debian version 1.6.3-1. Signed-off-by: Daniel Baumann --- debian/changelog | 5 +++++ debian/control | 24 +++++++++++++++++++++ debian/copyright | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ debian/rules | 7 ++++++ debian/source/format | 1 + debian/ttyd.service | 16 ++++++++++++++ debian/watch | 3 +++ 7 files changed, 116 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/ttyd.service create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..6c5e942 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ttyd (1.6.3-1) sid; urgency=medium + + * Initial upload to sid (Closes: #972863). + + -- Daniel Baumann Mon, 08 Feb 2021 14:18:19 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..c500d12 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: ttyd +Section: web +Priority: optional +Maintainer: Daniel Baumann +Build-Depends: + cmake, + debhelper-compat (= 13), + libjson-c-dev, + libwebsockets-dev, + zlib1g-dev, +Rules-Requires-Root: no +Standards-Version: 4.5.1 +Homepage: https://tsl0922.github.io/ttyd +Vcs-Browser: https://git.progress-linux.org/users/daniel.baumann/debian/packages/ttyd +Vcs-Git: https://git.progress-linux.org/users/daniel.baumann/debian/packages/ttyd + +Package: ttyd +Section: web +Architecture: any +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Description: Share your terminal over the web + ttyd is a command-line tool for sharing a terminal over the web. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..d062f12 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,60 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ttyd +Upstream-Contact: Shuanglei Tao +Source: https://github.com/tsl0922/ttyd/releases + +Files: * +Copyright: 2016-2021 Shuanglei Tao +License: MIT + +Files: src/queue.h +Copyright: 1991-1993 The Regents of the University of California +License: BSD-3 + +Files: debian/* +Copyright: 2021 Daniel Baumann +License: MIT + +License: BSD-3 + 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. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE REGENTS 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 REGENTS 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. + +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/rules b/debian/rules new file mode 100755 index 0000000..453d005 --- /dev/null +++ b/debian/rules @@ -0,0 +1,7 @@ +#!/usr/bin/make -f + +%: + dh ${@} --builddirectory=build + +override_dh_auto_build: + mkdir -p build && cd build && cmake .. && make 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/ttyd.service b/debian/ttyd.service new file mode 100644 index 0000000..516d851 --- /dev/null +++ b/debian/ttyd.service @@ -0,0 +1,16 @@ +[Unit] +Description=ttyd daemon +Documentation=man:ttyd(1) +After=network.target systemd-tmpfiles-clean.service + +[Service] +Type=simple +ExecStart=/bin/ttyd -i lo -p 7681 -O login +ExecReload=/bin/kill -HUP $MAINPID +KillMode=process +LimitNOFILE=512 +LimitMEMLOCK=infinity +LimitSTACK=infinity + +[Install] +WantedBy=multi-user.target diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..904a16d --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/ttyd-$1\.tar\.gz/ \ +https://github.com/tsl0922/ttyd/releases .*/v?(\d\S+)\.tar\.gz -- cgit v1.2.3