BSD Ports

sysutils/libptytty 2.0 FreeBSD

OS independent and secure pseudo-tty management

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
sysutils
Package size
25.2 KiB, 56.6 KiB installed

Description

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.

In the other systems

SystemPortVersion
FreeBSDsysutils/libptytty2.0
OpenBSDsysutils/libptytty2.0
DragonFlysysutils/libptytty2.0
MidnightBSDsysutils/libptytty2.0

Install

Binary package:

pkg install libptytty

From the ports tree:

cd /usr/ports/sysutils/libptytty/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libptytty>0:sysutils/libptytty
LIB_DEPENDS=	libptytty.so:sysutils/libptytty

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.02.02.02.02.0
FreeBSD:14:quarterly2.02.0n/a2.02.0
FreeBSD:15:latest2.02.0n/a2.02.0
FreeBSD:15:quarterly2.02.0n/an/an/a
FreeBSD:16:latest2.02.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 15

Configuration

Options name: sysutils_libptytty

OptionDefaultDescription
DOCSoffBuild and/or install documentation
EXAMPLESoffBuild and/or install examples
USES
cmake
Service scripts
none

Files

Manual pages 1
  • libptytty(3)
pkg-plist 5
  • include/libptytty.h
  • lib/libptytty.so
  • lib/libptytty.so.0
  • libdata/pkgconfig/libptytty.pc
  • share/man/man3/libptytty.3.gz
distinfo 1
FileSizeSHA256
libptytty-2.0.tar.gz456738033ed3aadf28759660d4f11f2d7b030acf2a6890cb0f7926fb0cfa6739d31f7
Master sites 1
  • http://dist.schmorp.de/libptytty/%SUBDIR%/

Commit history 0

No commits in the history this site was built from.