Add p5-File-NFSLock, a perl module to do NFS (or not) locking.

This commit is contained in:
Anton Berezin 2002-09-11 15:16:23 +00:00
parent df73206a5c
commit 694e86d25a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=66147
6 changed files with 46 additions and 0 deletions

View file

@ -464,6 +464,7 @@
SUBDIR += p5-File-FTS
SUBDIR += p5-File-Lock
SUBDIR += p5-File-MMagic
SUBDIR += p5-File-NFSLock
SUBDIR += p5-File-ReadBackwards
SUBDIR += p5-File-Remove
SUBDIR += p5-File-Slurp

View file

@ -0,0 +1,22 @@
# New ports collection makefile for: devel/p5-File-NFSLock
# Date created: 11 September 2002
# Whom: Anton Berezin <tobez@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= File-NFSLock
PORTVERSION= 1.18
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= File
PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
PERL_CONFIGURE= yes
MAN3= File::NFSLock.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
.include <bsd.port.mk>

View file

@ -0,0 +1 @@
MD5 (File-NFSLock-1.18.tar.gz) = 858e41cd01f0cb9e91c28126f06eb03d

View file

@ -0,0 +1 @@
File::NFSLock - perl module to do NFS (or not) locking

View file

@ -0,0 +1,16 @@
File::NFSLock - perl module to do NFS (or not) locking.
The module is based of concept of hard linking of files being atomic
across NFS. This concept was mentioned in Mail::Box::Locker (which was
originally presented in Mail::Folder::Maildir). Some routine flow is
taken from there -- particularly the idea of creating a random local
file, hard linking a common file to the local file, and then checking
the nlink status. Some ideologies were not complete (uncache mechanism,
shared locking) and some coding was even incorrect (wrong stat index).
File::NFSLock was written to be light, generic, and fast.
Authors: Paul T Seamons (paul@seamons.com), Rob B Brown (bbb@cpan.org)
WWW: http://search.cpan.org/search?dist=File-NFSLock
-Anton
<tobez@FreeBSD.org>

View file

@ -0,0 +1,5 @@
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/File/NFSLock/.packlist
lib/perl5/site_perl/%%PERL_VER%%/File/NFSLock.pm
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/File/NFSLock
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/File 2>/dev/null || true