p5-File-FcntlLock: added version 0.22

Using this module file locking via fcntl(2) can be done (obviously, this
restricts the use of the module to systems that have a fcntl(2) system call).
Before a file (or parts of a file) can be locked, an object simulating a flock
structure, containing information in a binary format to be passed to fcntl(2)
for locking requests, must be created and its properties set. Afterwards, by
calling the lock() method a lock can be set and removed or it can be determined
if and which process currently holds the lock.
This commit is contained in:
adam 2023-11-16 08:54:16 +00:00
parent c7c44a877d
commit 82aab198c1
4 changed files with 30 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1097 2023/11/13 23:15:40 gutteridge Exp $
# $NetBSD: Makefile,v 1.1098 2023/11/16 08:54:16 adam Exp $
#
COMMENT= System utilities
@ -510,6 +510,7 @@ SUBDIR+= p5-Config-Simple
SUBDIR+= p5-Daemon-Generic
SUBDIR+= p5-File-Copy-Recursive
SUBDIR+= p5-File-Copy-Recursive-Reduced
SUBDIR+= p5-File-FcntlLock
SUBDIR+= p5-File-Inplace
SUBDIR+= p5-File-Remove
SUBDIR+= p5-File-chmod

View File

@ -0,0 +1,7 @@
Using this module file locking via fcntl(2) can be done (obviously, this
restricts the use of the module to systems that have a fcntl(2) system call).
Before a file (or parts of a file) can be locked, an object simulating a flock
structure, containing information in a binary format to be passed to fcntl(2)
for locking requests, must be created and its properties set. Afterwards, by
calling the lock() method a lock can be set and removed or it can be determined
if and which process currently holds the lock.

View File

@ -0,0 +1,16 @@
# $NetBSD: Makefile,v 1.1 2023/11/16 08:54:16 adam Exp $
DISTNAME= File-FcntlLock-0.22
PKGNAME= p5-${DISTNAME}
CATEGORIES= sysutils perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/J/JT/JTT/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://metacpan.org/dist/File-FcntlLock
COMMENT= File locking with fcntl(2)
LICENSE= ${PERL5_LICENSE}
PERL5_PACKLIST= auto/File/FcntlLock/.packlist
.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"

View File

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2023/11/16 08:54:16 adam Exp $
BLAKE2s (File-FcntlLock-0.22.tar.gz) = 999471fcb0de344ea9b22c3b1700e25437a38fc0ebb71c7b5b5101b95f4f7125
SHA512 (File-FcntlLock-0.22.tar.gz) = c57bc73ce220fc3379dd88e6f1c422ce05dbf659e4ac676614b4fc6967d2ea5e27b476c0a1e29caf1e469a4ace7d23a1b0e86284403b2443d19df7fc52b308db
Size (File-FcntlLock-0.22.tar.gz) = 16994 bytes