From: Boyuan Yang <073plan@gmail.com> Date: Fri, 31 Mar 2017 07:28:14 +0000 (+0800) Subject: Add debian/ dir for deb packaging (#48) X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=b7a68d0361f8a19f30dfdb20afc5486a89369ff5;p=ttyd.git Add debian/ dir for deb packaging (#48) * debian: add debian dir for debian packaging. These instructions can be used to build semi-official debian packages. * d/control: fix typo * debian: set debhelper compat to v9; add vim-common as xxd alternative --- diff --git a/debian/.gitignore b/debian/.gitignore new file mode 100644 index 0000000..143abac --- /dev/null +++ b/debian/.gitignore @@ -0,0 +1,4 @@ +debhelper-build-stamp +files +*.substvars +install diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0f38ac4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ttyd (1.3.1-1) unstable; urgency=medium + + * Initial release. + + -- Boyuan Yang <073plan@gmail.com> Thu, 30 Mar 2017 12:10:50 +0800 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..049f002 --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: ttyd +Section: utils +Priority: optional +Maintainer: Boyuan Yang <073plan@gmail.com> +Build-Depends: + debhelper (>= 9), + cmake, + pkg-config, + libwebsockets-dev, + libjson-c-dev, + libssl-dev, + xxd | vim-common, +Standards-Version: 3.9.8 +Homepage: https://tsl0922.github.io/ttyd/ +Vcs-Git: https://github.com/tsl0922/ttyd.git +Vcs-Browser: https://github.com/tsl0922/ttyd.git + +Package: ttyd +Architecture: any +Depends: + ${misc:Depends}, + ${shlibs:Depends}, +Description: Web terminal sharing tool + Ttyd is a simple command-line tool for sharing terminal over the web, inspired + by GoTTY. + . + Features include: + * Built on top of Libwebsockets with C for speed + * Fully-featured terminal based on Xterm.js with CJK and IME support + * SSL support based on OpenSSL + * Run any custom command with options + * Basic authentication support and many other custom options + * Cross platform: macOS, Linux, FreeBSD, OpenWrt/LEDE, Windows diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4fd24b8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,33 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ttyd +Upstream-Contact: Shuanglei Tao +Source: https://github.com/tsl0922/ttyd + +Files: * +Copyright: 2016-2017 Shuanglei Tao +License: Expat + +Files: debian/* +Copyright: 2017 Boyuan Yang <073plan@gmail.com> +License: Expat + +License: Expat + Copyright (c) 2016 Shuanglei Tao + . + 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..5e4886a --- /dev/null +++ b/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + +# see FEATURE AREAS in dpkg-buildflags(1) +export DEB_BUILD_MAINT_OPTIONS = hardening=+all +export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + +# main packaging script based on dh7 syntax +%: + dh $@ 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..c4855d2 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=4 +opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%ttyd-$1.tar.gz%" \ + https://github.com/tsl0922/ttyd/tags \ + (?:.*?/)?v?(\d[\d.]*)\.tar\.gz debian uupdate