From nobody Tue Nov 23 21:03:05 2021 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 80D5018AD93F; Tue, 23 Nov 2021 21:03:06 +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 4HzGnQ1Smvz4kcS; Tue, 23 Nov 2021 21:03:06 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 1295C1DC00; Tue, 23 Nov 2021 21:03:06 +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 1ANL35W0063354; Tue, 23 Nov 2021 21:03:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ANL35bo063353; Tue, 23 Nov 2021 21:03:05 GMT (envelope-from git) Date: Tue, 23 Nov 2021 21:03:05 GMT Message-Id: <202111232103.1ANL35bo063353@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 5ed930dbd523 - main - sysutils/libptytty: adding an offspring of rxvt-unicode that handles pseudo-tty 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: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5ed930dbd52349bc978371d0b42bee7ceee81cef Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637701386; 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=Xj2vFcg0xAL+mSxlbqQrqIHrnXntnmEVR15oO3dfXcU=; b=DU0v8uwpZqA1lZGoe5fCQ5LB393ldXQinxIPgTKnxlSQJqy+g0//aLmDMQnxhRVu9AHW5M BoSc/9Ty6H8r0MaVNCXGadNhovUWmh4TzL8i+rthvzKE8sqpp50emIMJDhkSQT7ZPzXYoD lF3a97aiNGd9PEgvesougALX4EcMSJ4ok3T7K186CfpiTUygaI7S0RF8YZEHS6KcxJHyj3 WLeAe5tGTGCMlwClYXhtvBo33vSuLJd5oh6a5KnxsWQ4V7qlpzZAnEaGuGW9CfKgusGSYx eBi6MStgazalULwKGl+iBYdbomMGlF93SeQsGkSefCwEylkfGOMw6rWWaOqtXQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637701386; a=rsa-sha256; cv=none; b=PrMBm8whck3Hdckmh+enSL+xLSLuCRuYdUit84Vu4c9VuzHNZ7rHBvYEeuCdFJ2QriqXVY y0iugywVb8hLdEO8XuIcMkkmhCHvGVRIK9VcHXMxLqSerGd0ZA4dt7HAuyFSX4jKyFsEJW 1x4fMiYmXx3CVibwJYXDh6xyYTVQT4h6tGrdA49AC1zHDKaBAQeqxpPnBSVlU/DPSDVl5q VYn2JYISTKJJ6iM3NAjbo5NXAfwLHEXrny3HKlKkA1UD3lr54c9hYRYr3n3ayPjPjdb0rv o7ASU5bJfnXixvX5PiXTtySeE4+t+TjSKP7rb16X3P/+IamYTEhuZRXO3rEgtA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=5ed930dbd52349bc978371d0b42bee7ceee81cef commit 5ed930dbd52349bc978371d0b42bee7ceee81cef Author: Thierry Thomas AuthorDate: 2021-11-23 19:20:38 +0000 Commit: Thierry Thomas CommitDate: 2021-11-23 21:02:59 +0000 sysutils/libptytty: adding an offspring of rxvt-unicode that handles pseudo-tty It is now required by rxvt-unicode 9.29 as an external dependency. --- sysutils/Makefile | 1 + sysutils/libptytty/Makefile | 30 ++++++++++++++++++++++++++++++ sysutils/libptytty/distinfo | 3 +++ sysutils/libptytty/pkg-descr | 16 ++++++++++++++++ sysutils/libptytty/pkg-plist | 5 +++++ 5 files changed, 55 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index aa4b3824b569..8465410fd936 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -616,6 +616,7 @@ SUBDIR += libg15render SUBDIR += libgksu SUBDIR += libieee1284 + SUBDIR += libptytty SUBDIR += libretto-config SUBDIR += libsunacl SUBDIR += libsysstat diff --git a/sysutils/libptytty/Makefile b/sysutils/libptytty/Makefile new file mode 100644 index 000000000000..ce747e6c8687 --- /dev/null +++ b/sysutils/libptytty/Makefile @@ -0,0 +1,30 @@ +# Created by: Thierry Thomas + +PORTNAME= libptytty +PORTVERSION= 2.0 +CATEGORIES= sysutils +MASTER_SITES= http://dist.schmorp.de/libptytty/%SUBDIR%/ +MASTER_SITE_SUBDIR= . Attic + +MAINTAINER= thierry@FreeBSD.org +COMMENT= OS independent and secure pseudo-tty management + +LICENSE= GPLv2 + +USES= cmake cpe +CPE_VENDOR= marc_lehmann + +OPTIONS_DEFINE= DOCS EXAMPLES + +PORTDOCS= README +PORTEXAMPLES= c-sample.c + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/eg/c-sample.c ${STAGEDIR}${EXAMPLESDIR} + +.include diff --git a/sysutils/libptytty/distinfo b/sysutils/libptytty/distinfo new file mode 100644 index 000000000000..2b1a12aa5223 --- /dev/null +++ b/sysutils/libptytty/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1637693439 +SHA256 (libptytty-2.0.tar.gz) = 8033ed3aadf28759660d4f11f2d7b030acf2a6890cb0f7926fb0cfa6739d31f7 +SIZE (libptytty-2.0.tar.gz) = 45673 diff --git a/sysutils/libptytty/pkg-descr b/sysutils/libptytty/pkg-descr new file mode 100644 index 000000000000..45f1c6d36cdc --- /dev/null +++ b/sysutils/libptytty/pkg-descr @@ -0,0 +1,16 @@ +Libptytty is a small library that offers pseudo-tty management in an +OS-independent way. It was created out of frustration over the many differences +of pty/tty handling in different operating systems for the use inside +"rxvt-unicode". + +In addition to offering mere pty/tty management, it also offers session database +support (utmp and optional wtmp/lastlog updates for login shells). + +It also supports fork'ing after startup and dropping privileges in the calling +process, so in case the calling process gets compromised by the user starting +the program there is less to gain, as only the helper process runs with +privileges (e.g. setuid/setgid), which reduces the area of attack immensely. + +Libptytty is written in C++, but it also offers a C-only API. + +WWW: http://software.schmorp.de/pkg/libptytty.html diff --git a/sysutils/libptytty/pkg-plist b/sysutils/libptytty/pkg-plist new file mode 100644 index 000000000000..c8c4cd482809 --- /dev/null +++ b/sysutils/libptytty/pkg-plist @@ -0,0 +1,5 @@ +include/libptytty.h +lib/libptytty.so +lib/libptytty.so.0 +libdata/pkgconfig/libptytty.pc +man/man3/libptytty.3.gz