devel/liblockfile 1.17_1 FreeBSD
Standard lockfile library
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- GPLv2+, LGPL21+
- Categories
- devel
- Package size
- 36.3 KiB, 104.2 KiB installed
Description
This library implements a number of functions found in -lmail on SysV systems. These functions are designed to lock the standard mailboxes in /var/mail (or wherever the system puts them).
In additions, this library adds a number of functions to create, manage and remove generic lockfiles.
The lockfiles are created by this library in an NFS-safe manner, that is by using a tempfile and using link(2) to create the lockfile. It works around several defects in NFS servers to make sure the lockfile is created atomically.
The locking strategy is compatible with other well-written NFS-safe programs that create lockfiles - such as procmail, exim and mutt.
If you are trying to lock a mailbox in a directory writable for group mail, the locking functions will call a helper application which runs setgid to do the actual locking. The helper application "dotlockfile" can also be used directly, for example for use in shellscripts.
This means a program such as a MUA doesn't need to be setgid mail anymore to be able to lock the mailbox.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/liblockfile | 1.17_1 |
| DragonFly | devel/liblockfile | 1.17_1 |
| MidnightBSD | devel/liblockfile | 1.16 |
Install
Binary package:
pkg install liblockfile
From the ports tree:
cd /usr/ports/devel/liblockfile/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= liblockfile>0:devel/liblockfile
LIB_DEPENDS= liblockfile.so:devel/liblockfile
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 | 1.17_1 | 1.17_1 | 1.17 | 1.17_1 | 1.17_1 |
| FreeBSD:14:quarterly | 1.17_1 | 1.17_1 | n/a | 1.17_1 | 1.17_1 |
| FreeBSD:15:latest | 1.17_1 | 1.17_1 | n/a | 1.17_1 | 1.17_1 |
| FreeBSD:15:quarterly | 1.17_1 | 1.17_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.17_1 | 1.17_1 | 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.
Configuration
Options name: devel_liblockfile
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- Service scripts
- none
Message after installing
Files
Manual pages 3
- dotlockfile(1)
- lockfile_create(3)
- maillock(3)
pkg-plist 10
- @(,mail,2755) bin/dotlockfile
- include/lockfile.h
- include/maillock.h
- lib/liblockfile.a
- lib/liblockfile.so
- lib/liblockfile.so.1
- lib/liblockfile.so.1.0
- share/man/man1/dotlockfile.1.gz
- share/man/man3/lockfile_create.3.gz
- share/man/man3/maillock.3.gz
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| miquels-liblockfile-v1.17_GH0.tar.gz | 69834 | 7d34e4b054f878be492dd782c34bfe2107689414aa82a361202756bbe3ec6ad8 |
Commit history 0
No commits in the history this site was built from.