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
| System | Port | Version |
|---|---|---|
| FreeBSD | sysutils/libptytty | 2.0 |
| OpenBSD | sysutils/libptytty | 2.0 |
| DragonFly | sysutils/libptytty | 2.0 |
| MidnightBSD | sysutils/libptytty | 2.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.0 | 2.0 | 2.0 | 2.0 | 2.0 |
| FreeBSD:14:quarterly | 2.0 | 2.0 | n/a | 2.0 | 2.0 |
| FreeBSD:15:latest | 2.0 | 2.0 | n/a | 2.0 | 2.0 |
| FreeBSD:15:quarterly | 2.0 | 2.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.0 | 2.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/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
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
| EXAMPLES | off | Build 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
| File | Size | SHA256 |
|---|---|---|
| libptytty-2.0.tar.gz | 45673 | 8033ed3aadf28759660d4f11f2d7b030acf2a6890cb0f7926fb0cfa6739d31f7 |
Master sites 1
- http://dist.schmorp.de/libptytty/%SUBDIR%/
Commit history 0
No commits in the history this site was built from.