From nobody Tue Feb 15 18:17:59 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8526219D3B2B; Tue, 15 Feb 2022 18:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jyq8738Zsz4dCg; Tue, 15 Feb 2022 18:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644949079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6/s7wuOKBB5B+uuUo5lKMoHBk0/J7ur6AA0XCfx8zWw=; b=lvsAsdlpc5HYVaKzSMluMqawytkE0e6F/pleJpTD19csoLSdWy7jzBcTJ6tIxcq4A7woN2 lwx8E9uE7pnZ0u6z0ZcZXI2xnDUE1r53QwFmS+oN7OTGEmHPiGRhaBBrjWrg1SdwYJ66UB kbob+8HD3bTtpQHWKCbIbgfHRNVla1fUx7diiZ+45HZkKz3aFPUXWz2iI6DmPHTc95T/Cz ARD0cQxkMttY8d1BSPabiCS4oIWVT8TjJKvdF9Nc6tpYUHtB0J19YxM55MsvOllK1byXBH WgizeQ/X0BzRHbgTjIdCiOcixpQUl+v7CqNzVIC/LYghPc2RRq03pRxr0KuRpg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4CCE226E3A; Tue, 15 Feb 2022 18:17:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21FIHxEJ048144; Tue, 15 Feb 2022 18:17:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21FIHxQE048143; Tue, 15 Feb 2022 18:17:59 GMT (envelope-from git) Date: Tue, 15 Feb 2022 18:17:59 GMT Message-Id: <202202151817.21FIHxQE048143@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Neel Chauhan Subject: git: 03949a77485f - main - www/kineto: Add port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nc X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 03949a77485f49fea02fd036622f91d1c1004671 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644949079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6/s7wuOKBB5B+uuUo5lKMoHBk0/J7ur6AA0XCfx8zWw=; b=MdB/JdX1zMuYrZWp36ZouUnJkdgE/3uegMXaPPM7ly8j/ydtpE4GVKfhn1hiUSO3JFrooZ yHddCTX84vzECB/9De2qCR00t7LSn/W8lt8AqfijZfpFi1ImbcNlcFV9zZmOYmpfYMos2Q FyKLqTjKg1pfH3mjwbClx9NKrS5IBJhcKyhr96HWboWqr6yq0HakUTClwfKrWxlIcuJywm gjlcMkjeCFPUek+Xfmyw+zVgadSxfmlvOgX8C0lFMpSa+2ssIz9RjUP3sp87TjsZhV6iPc x2TB+KsLaeZo2XGnjEA1lEYRyPY+uQB9V5ayVyTZaWcRB/6b9seSMfNaIklXlA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644949079; a=rsa-sha256; cv=none; b=R3OVv6vGfTeai4ZhydBhf77S2aQijx+cyemNw7Fmpm5zJFmDSHdrALUxhmKHbZ4Mumny/Y B7XDIVh2AFK+iB6aVA2/WJ6QTZKpg5WdYUfdJbvm/tdDs6b7t9x0mexCRXavX4/ZhzSUmq ECyTf3T0d310as7BlKI0bC9lCLeOtQfmKO9bHS8PVzN651G1anWt+gm0mIZvsdtMN8QhTA g/ejjEBbMzlMh7GXFzOqZZUWotvk1mOM+iYZwE60/Y/sROkWYJJdpKIk7mg2U0ZNP9svh8 fgif690W/CGwOoQq3LxfiU5JQ4M7Hc2UC6Kq21TAiX9HLCkUyDYHPwfDG5eoww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nc: URL: https://cgit.FreeBSD.org/ports/commit/?id=03949a77485f49fea02fd036622f91d1c1004671 commit 03949a77485f49fea02fd036622f91d1c1004671 Author: Corey Hinshaw AuthorDate: 2022-02-10 17:03:46 +0000 Commit: Neel Chauhan CommitDate: 2022-02-15 18:17:47 +0000 www/kineto: Add port PR: 261851 --- www/kineto/Makefile | 40 +++++++++++++++++++++++++++++++++ www/kineto/distinfo | 11 ++++++++++ www/kineto/files/kineto.in | 55 ++++++++++++++++++++++++++++++++++++++++++++++ www/kineto/pkg-descr | 3 +++ 4 files changed, 109 insertions(+) diff --git a/www/kineto/Makefile b/www/kineto/Makefile new file mode 100644 index 000000000000..c358753c2281 --- /dev/null +++ b/www/kineto/Makefile @@ -0,0 +1,40 @@ +PORTNAME= kineto +DISTVERSION= g20211104 +CATEGORIES= www +SH_COMMIT= 857f8c97ebc5 + +MAINTAINER= corey@electrickite.org +COMMENT= HTTP to Gemini proxy + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= go:modules +USE_RC_SUBR= ${PORTNAME} +USE_GITHUB= nodefault +GH_TUPLE= golang:net:5f4716e94777:golang_net/vendor/golang.org/x/net \ + golang:text:v0.3.3:golang_text/vendor/golang.org/x/text + +# Additional distfiles to fetch from https://git.sr.ht +_SRHT_TUPLE= adnano:go-gemini:v0.1.17:vendor/git.sr.ht/~adnano/go-gemini \ + sircmpwn:${PORTNAME}:${SH_COMMIT}:"" \ + sircmpwn:getopt:23622cc906b3:vendor/git.sr.ht/~sircmpwn/getopt + +WRKSRC= ${WRKDIR}/${PORTNAME}-${SH_COMMIT} + +PLIST_FILES= bin/${PORTNAME} + +.include + +.for account project tag subdir in ${_SRHT_TUPLE:S/:/ /g} +MASTER_SITES+= https://git.sr.ht/~${account}/${project}/archive/${tag}${EXTRACT_SUFX}?dummy=/:${account}_${project:S/-/_/g} +DISTFILES+= ${account}-${project}-${tag}_SRHT0${EXTRACT_SUFX}:${account}_${project:S/-/_/g} +.endfor + +post-extract: +.for account project tag subdir in ${_SRHT_TUPLE:S/:/ /g:[5..-1]} + @${MKDIR} ${WRKSRC}/${subdir:H} + @${MV} ${WRKDIR}/${project}-${tag} ${WRKSRC}/${subdir} +.endfor + +.include diff --git a/www/kineto/distinfo b/www/kineto/distinfo new file mode 100644 index 000000000000..5119cac8e454 --- /dev/null +++ b/www/kineto/distinfo @@ -0,0 +1,11 @@ +TIMESTAMP = 1644457669 +SHA256 (sircmpwn-kineto-857f8c97ebc5_SRHT0.tar.gz) = aa5b0e85bb5b2bca86f4c7c493e3c80368847e22369ffa174170f5833bf493e4 +SIZE (sircmpwn-kineto-857f8c97ebc5_SRHT0.tar.gz) = 18419 +SHA256 (adnano-go-gemini-v0.1.17_SRHT0.tar.gz) = 82d42664147f58d4048b3e421eeeca053d21612972c9a34fa58b397ced2bbab2 +SIZE (adnano-go-gemini-v0.1.17_SRHT0.tar.gz) = 30371 +SHA256 (sircmpwn-getopt-23622cc906b3_SRHT0.tar.gz) = 0d80fe37a650699c195b70e79684a1c6ec25eaabbe9993b54243754be6edb7a7 +SIZE (sircmpwn-getopt-23622cc906b3_SRHT0.tar.gz) = 8496 +SHA256 (golang-net-5f4716e94777_GH0.tar.gz) = 987ec0774e8480615daf0664cd9c9ec9eb25cf6e553e32ae38697515629714b6 +SIZE (golang-net-5f4716e94777_GH0.tar.gz) = 1251426 +SHA256 (golang-text-v0.3.3_GH0.tar.gz) = 1604233637e3593749fbbb13b5069b08e6feba6d2b55a02fd3148793d5871185 +SIZE (golang-text-v0.3.3_GH0.tar.gz) = 7747332 diff --git a/www/kineto/files/kineto.in b/www/kineto/files/kineto.in new file mode 100644 index 000000000000..f58672f6d788 --- /dev/null +++ b/www/kineto/files/kineto.in @@ -0,0 +1,55 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: kineto +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# kineto_enable (bool): Set to "NO" by default. +# Set it to "YES" to enable kineto. +# kineto_root (str): Default is gemini://localhost +# The gemini root proxy URL +# kineto_bind (str): The bind address +# unset by default - will bind to :8080 +# kineto_css_path (str): File system path of CSS stylesheet +# Unset by default +# kineto_css_url (str): URL of CSS stylesheet +# Unset by default +# kineta_user (str): Default "nobody" +# The kineto process user + +. /etc/rc.subr + +name=kineto +desc="HTTP to Gemini proxy" +rcvar=kineto_enable + +load_rc_config $name + +: ${kineto_enable:=NO} +: ${kineto_root=gemini://localhost} +: ${kineto_user=nobody} + +command="%%PREFIX%%/bin/${name}" +command_args="${kineto_root}" +pidfile="/var/run/${name}.pid" + +start_precmd="${name}_setflags" +start_cmd="${name}_start" + +kineto_setflags() +{ + rc_flags="${kineto_bind:+-b $kineto_bind }${kineto_css_path:+-s $kineto_css_path }${kineto_css_url:+-e $kineto_css_url }${rc_flags}" +} + +kineto_start() +{ + check_startmsgs && echo "Starting ${name}." + /usr/sbin/daemon -S -s info -l daemon -T $name -u "${kineto_user}" -p "${pidfile}" $command $rc_flags $command_args +} + +run_rc_command "$1" diff --git a/www/kineto/pkg-descr b/www/kineto/pkg-descr new file mode 100644 index 000000000000..89b8b0881c0b --- /dev/null +++ b/www/kineto/pkg-descr @@ -0,0 +1,3 @@ +An HTTP to Gemini proxy. + +WWW: https://git.sr.ht/~sircmpwn/kineto/