From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6CD2B15817D for ; Sun, 23 Jun 2024 02:52:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A2703E2A9C; Sun, 23 Jun 2024 02:52:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8451DE2A9C for ; Sun, 23 Jun 2024 02:52:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45701341B27 for ; Sun, 23 Jun 2024 02:52:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9D7431D36 for ; Sun, 23 Jun 2024 02:52:25 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1719111055.1733a83306a214ba568c639ece1852ee9adb9e18.perfinion@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/ser2net/, net-misc/ser2net/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/ser2net/Manifest net-misc/ser2net/files/ser2net.confd-r2 net-misc/ser2net/files/ser2net.initd-r2 net-misc/ser2net/ser2net-4.6.2.ebuild X-VCS-Directories: net-misc/ser2net/files/ net-misc/ser2net/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 1733a83306a214ba568c639ece1852ee9adb9e18 X-VCS-Branch: master Date: Sun, 23 Jun 2024 02:52:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e89a5b34-8a1a-4c8f-8313-549834ef5e57 X-Archives-Hash: ae890505b0eec5de81804e779e4f31c2 commit: 1733a83306a214ba568c639ece1852ee9adb9e18 Author: Jason Zaman gentoo org> AuthorDate: Sun Jun 23 01:52:19 2024 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Jun 23 02:50:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1733a833 net-misc/ser2net: add 4.6.2 Signed-off-by: Jason Zaman gentoo.org> net-misc/ser2net/Manifest | 1 + net-misc/ser2net/files/ser2net.confd-r2 | 21 +++++++++++++++++++ net-misc/ser2net/files/ser2net.initd-r2 | 37 +++++++++++++++++++++++++++++++++ net-misc/ser2net/ser2net-4.6.2.ebuild | 37 +++++++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+) diff --git a/net-misc/ser2net/Manifest b/net-misc/ser2net/Manifest index 1e582c5cffa9..8856e9cc1668 100644 --- a/net-misc/ser2net/Manifest +++ b/net-misc/ser2net/Manifest @@ -1 +1,2 @@ DIST ser2net-2.10.0.tar.gz 364322 BLAKE2B db041297069ea0a111ed73d6b1fc8a639971f113952fbcd499a81671bbd873ee3e1724146bfb5c6975d1812acd8e545e9df2bde445f4a86af57a0ae5b9b19ec1 SHA512 dd3e37619b10d8bf20d738e90c253bc2d109e0a57ee9f3a8b2a85a69399afa5a8459a4602b2856f0b655427023a36c78330851bf7f8d8da0f28d1fe22c1d5e10 +DIST ser2net-4.6.2.tar.gz 474345 BLAKE2B b495628f7aeda3804c43e59f76a54bfb872551011ccf338a81dc4ed92fa89b36a7356f45b5d4d6804969505eb90b117a348c7a2f78e08a4ed08c730c58df2e40 SHA512 3bd7ceb743f1503c055e0c206cfd2b987fee8ba532683a8470c7c078134b68d115809ef94c38fe926ff29363930e014d9cc9a44cc32a8ed93559e193a13204f8 diff --git a/net-misc/ser2net/files/ser2net.confd-r2 b/net-misc/ser2net/files/ser2net.confd-r2 new file mode 100644 index 000000000000..a443ce752a75 --- /dev/null +++ b/net-misc/ser2net/files/ser2net.confd-r2 @@ -0,0 +1,21 @@ +# Config file for /etc/init.d/ser2net + +# Set the configuration file to one other than the default of /etc/ser2net/ser2net.yaml +# +#CONFIG_FILE="/etc/ser2net/ser2net.yaml" + +# Enables the control port and sets the TCP port to listen to for the control port. +# A port number may be of the form [host,]port, such as 127.0.0.1,2000 or localhost,2000. +# If this is specified, it will only bind to the IP address specified for the port. +# Otherwise, it will bind to all the addresses on the machine. +# +#CONTROL_PORT="" + +# Enable or disable UUCP locking (default=yes) +# +#UUCP_LOCKS="no" + +# see the ser2net(8) manual page for additional options you can configure here +# +#EXTRA_OPTS="" + diff --git a/net-misc/ser2net/files/ser2net.initd-r2 b/net-misc/ser2net/files/ser2net.initd-r2 new file mode 100644 index 000000000000..0321e8a9bbb6 --- /dev/null +++ b/net-misc/ser2net/files/ser2net.initd-r2 @@ -0,0 +1,37 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Serial to network proxy (${RC_SVCNAME#*.})" +pidfile="/var/run/${RC_SVCNAME}.pid" +command="/usr/sbin/ser2net" +name="${description}" + +extra_started_commands="reload" +description_reload="Reread configuration file and make the appropriate changes" +start_stop_daemon_args="--quiet" +command_args_background="-P ${pidfile}" +command_args_foreground="-n" + +depend() { + use logger + need net +} + +start_pre() { + command_args="${EXTRA_OPTS}" + CONFIG_FILE_DEFAULT="/etc/ser2net/ser2net.yaml" + + yesno "${UUCP_LOCKS:-yes}" || command_args="${command_args} -u" + [ -n "${CONTROL_PORT}" ] && command_args="${command_args} -p ${CONTROL_PORT}" + [ -z "${CONFIG_FILE}" ] && CONFIG_FILE="${CONFIG_FILE_DEFAULT}" + [ "${CONFIG_FILE}" != "${CONFIG_FILE_DEFAULT}" ] && command_args="${command_args} -c ${CONFIG_FILE}" + + return 0 +} + +reload() { + ebegin "Reloading ${description}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend ${?} +} diff --git a/net-misc/ser2net/ser2net-4.6.2.ebuild b/net-misc/ser2net/ser2net-4.6.2.ebuild new file mode 100644 index 000000000000..3fd27c27be52 --- /dev/null +++ b/net-misc/ser2net/ser2net-4.6.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Serial To Network Proxy" +HOMEPAGE="https://sourceforge.net/projects/ser2net" +SRC_URI="https://downloads.sourceforge.net/ser2net/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pam" + +DEPEND=" + dev-libs/libyaml:= + net-misc/gensio + pam? ( sys-libs/pam ) +" +RDEPEND="${DEPEND}" + +# Test suite requires a kernel module +RESTRICT="test" + +src_configure() { + econf --without-sysfs-led-support $(use_with pam) +} + +src_install() { + default + + insinto /etc/${PN} + doins ${PN}.yaml + + newinitd "${FILESDIR}/${PN}.initd-r2" ${PN} + newconfd "${FILESDIR}/${PN}.confd-r2" ${PN} +}