diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /www-apps/ttyd | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'www-apps/ttyd')
| -rw-r--r-- | www-apps/ttyd/Manifest | 1 | ||||
| -rw-r--r-- | www-apps/ttyd/files/ttyd.confd | 36 | ||||
| -rw-r--r-- | www-apps/ttyd/files/ttyd.initd | 14 | ||||
| -rw-r--r-- | www-apps/ttyd/files/ttyd.service | 10 | ||||
| -rw-r--r-- | www-apps/ttyd/metadata.xml | 11 | ||||
| -rw-r--r-- | www-apps/ttyd/ttyd-1.7.7-r1.ebuild | 38 | ||||
| -rw-r--r-- | www-apps/ttyd/ttyd-1.7.7.ebuild | 40 | ||||
| -rw-r--r-- | www-apps/ttyd/ttyd-9999.ebuild | 40 |
8 files changed, 190 insertions, 0 deletions
diff --git a/www-apps/ttyd/Manifest b/www-apps/ttyd/Manifest new file mode 100644 index 000000000000..46ea28dabf86 --- /dev/null +++ b/www-apps/ttyd/Manifest @@ -0,0 +1 @@ +DIST ttyd-1.7.7.tar.gz 621347 BLAKE2B 6d6524437fcbde1141c3a256eb1fc21877df1b67586b18053ca05f98202cdd95ac1daf968700e93ff2287b72c93a1195aecf1c424f995c30c619a3b55d3690e4 SHA512 0cc643223c603dfbd32bc8233e6d2b8d59efd0b1208ef684277ff690fd92ca9ce242b8ea229a5621c43301ce99f95ee56fbe1f3b8df47329be89c3d0658d7663 diff --git a/www-apps/ttyd/files/ttyd.confd b/www-apps/ttyd/files/ttyd.confd new file mode 100644 index 000000000000..8e614522b436 --- /dev/null +++ b/www-apps/ttyd/files/ttyd.confd @@ -0,0 +1,36 @@ +# conf.d file for ttyd + +# Please check man 1 ttyd for more information about the options +# +# Some of the meaningful options are: +# -p, --port Port to listen (default: 7681, use `0` for random port) +# -i, --interface Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock) +# -U, --socket-owner User owner of the UNIX domain socket file, when enabled (eg: user:group) +# -c, --credential Credential for basic authentication (format: username:password) +# -H, --auth-header HTTP Header name for auth proxy, this will configure ttyd to let a HTTP reverse proxy handle authentication +# -u, --uid User id to run with +# -g, --gid Group id to run with +# -s, --signal Signal to send to the command when exit it (default: 1, SIGHUP) +# -w, --cwd Working directory to be set for the child program +# -a, --url-arg Allow client to send command line arguments in URL (eg: http://localhost:7681?arg=foo&arg=bar) +# -W, --writable Allow clients to write to the TTY (readonly by default) +# -t, --client-option Send option to client (format: key=value), repeat to add more options +# -T, --terminal-type Terminal type to report, default: xterm-256color +# -O, --check-origin Do not allow websocket connection from different origin +# -m, --max-clients Maximum clients to support (default: 0, no limit) +# -o, --once Accept only one client and exit on disconnection +# -B, --browser Open terminal with the default system browser +# -I, --index Custom index.html path +# -b, --base-path Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128) +# -P, --ping-interval Websocket ping interval(sec) (default: 5) +# -6, --ipv6 Enable IPv6 support +# -S, --ssl Enable SSL +# -C, --ssl-cert SSL certificate file path +# -K, --ssl-key SSL key file path +# -A, --ssl-ca SSL CA file path for client certificate verification +# -d, --debug Set log level (default: 7) +# -v, --version Print the version and exit +# -h, --help Print this text and exit + + +TTYD_OPTS="-W login" diff --git a/www-apps/ttyd/files/ttyd.initd b/www-apps/ttyd/files/ttyd.initd new file mode 100644 index 000000000000..9d1afdec19da --- /dev/null +++ b/www-apps/ttyd/files/ttyd.initd @@ -0,0 +1,14 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +name="ttyd daemon" +pidfile="/var/run/ttyd.pid" +command="/usr/bin/ttyd" +command_args="${TTYD_OPTS}" +command_background="true" +start_stop_daemon_args="-b" + +depend() { + use logger +} diff --git a/www-apps/ttyd/files/ttyd.service b/www-apps/ttyd/files/ttyd.service new file mode 100644 index 000000000000..d1d7e92461a4 --- /dev/null +++ b/www-apps/ttyd/files/ttyd.service @@ -0,0 +1,10 @@ +[Unit] +Description=Terminal over HTTP + +[Service] +User=root +ExecStart=/usr/bin/ttyd -W -p 9000 login +Restart=on-abort + +[Install] +WantedBy=multi-user.target diff --git a/www-apps/ttyd/metadata.xml b/www-apps/ttyd/metadata.xml new file mode 100644 index 000000000000..78b7899358c0 --- /dev/null +++ b/www-apps/ttyd/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mpagano@gentoo.org</email> + </maintainer> + <use> + <flag name="mbedtls" restrict=">=www-apps/ttyd-1.7.4-r1">Use mbedTLS replacement for OpenSSL</flag> + </use> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/www-apps/ttyd/ttyd-1.7.7-r1.ebuild b/www-apps/ttyd/ttyd-1.7.7-r1.ebuild new file mode 100644 index 000000000000..bc117c8c488d --- /dev/null +++ b/www-apps/ttyd/ttyd-1.7.7-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd + +DESCRIPTION="ttyd, a simple command-line tool for sharing terminal over the web" +HOMEPAGE="https://github.com/tsl0922/ttyd" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/tsl0922/ttyd.git" + inherit git-r3 +else + SRC_URI="https://github.com/tsl0922/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="mbedtls" +RDEPEND=" + dev-libs/json-c:= + dev-libs/libuv:= + >=net-libs/libwebsockets-4.4:=[libuv,mbedtls=,ssl] + net-libs/libwebsockets:= + virtual/zlib:= + !mbedtls? ( dev-libs/openssl:= ) +" +DEPEND="${RDEPEND}" + +src_install() { + cmake_src_install + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}"/${PN}.service +} diff --git a/www-apps/ttyd/ttyd-1.7.7.ebuild b/www-apps/ttyd/ttyd-1.7.7.ebuild new file mode 100644 index 000000000000..75b2038031c9 --- /dev/null +++ b/www-apps/ttyd/ttyd-1.7.7.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd + +MY_PV="$(ver_rs 3 '-')" + +DESCRIPTION="ttyd, a simple command-line tool for sharing terminal over the web" +HOMEPAGE="https://github.com/tsl0922/ttyd" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/tsl0922/ttyd.git" + inherit git-r3 +else + SRC_URI="https://github.com/tsl0922/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="amd64" +fi + +S="${WORKDIR}/${PN}-${MY_PV}" +LICENSE="MIT" +SLOT="0" +IUSE="mbedtls" +DEPEND=" + dev-libs/json-c:= + dev-libs/libuv:= + net-libs/libwebsockets:=[libuv,mbedtls=,ssl] + virtual/zlib:= + !mbedtls? ( dev-libs/openssl:= ) +" +RDEPEND="${DEPEND}" + +src_install() { + cmake_src_install + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}"/${PN}.service +} diff --git a/www-apps/ttyd/ttyd-9999.ebuild b/www-apps/ttyd/ttyd-9999.ebuild new file mode 100644 index 000000000000..bdba806a846e --- /dev/null +++ b/www-apps/ttyd/ttyd-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake systemd + +MY_PV="$(ver_rs 3 '-')" + +DESCRIPTION="ttyd, a simple command-line tool for sharing terminal over the web" +HOMEPAGE="https://github.com/tsl0922/ttyd" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/tsl0922/ttyd.git" + inherit git-r3 +else + SRC_URI="https://github.com/tsl0922/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +S="${WORKDIR}/${PN}-${MY_PV}" +LICENSE="MIT" +SLOT="0" +IUSE="mbedtls" +DEPEND=" + dev-libs/json-c:= + dev-libs/libuv:= + net-libs/libwebsockets:=[libuv,mbedtls=,ssl] + virtual/zlib:= + !mbedtls? ( dev-libs/openssl:= ) +" +RDEPEND="${DEPEND}" + +src_install() { + cmake_src_install + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + systemd_dounit "${FILESDIR}"/${PN}.service +} |
