diff --git a/devel/Makefile b/devel/Makefile index b40665981130..2e92bbad0fae 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/p5-File-NFSLock/Makefile b/devel/p5-File-NFSLock/Makefile new file mode 100644 index 000000000000..9e9cfa4578c7 --- /dev/null +++ b/devel/p5-File-NFSLock/Makefile @@ -0,0 +1,22 @@ +# New ports collection makefile for: devel/p5-File-NFSLock +# Date created: 11 September 2002 +# Whom: Anton Berezin +# +# $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 diff --git a/devel/p5-File-NFSLock/distinfo b/devel/p5-File-NFSLock/distinfo new file mode 100644 index 000000000000..1342caaa934f --- /dev/null +++ b/devel/p5-File-NFSLock/distinfo @@ -0,0 +1 @@ +MD5 (File-NFSLock-1.18.tar.gz) = 858e41cd01f0cb9e91c28126f06eb03d diff --git a/devel/p5-File-NFSLock/pkg-comment b/devel/p5-File-NFSLock/pkg-comment new file mode 100644 index 000000000000..4357066064a1 --- /dev/null +++ b/devel/p5-File-NFSLock/pkg-comment @@ -0,0 +1 @@ +File::NFSLock - perl module to do NFS (or not) locking diff --git a/devel/p5-File-NFSLock/pkg-descr b/devel/p5-File-NFSLock/pkg-descr new file mode 100644 index 000000000000..e7393d0af476 --- /dev/null +++ b/devel/p5-File-NFSLock/pkg-descr @@ -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 + diff --git a/devel/p5-File-NFSLock/pkg-plist b/devel/p5-File-NFSLock/pkg-plist new file mode 100644 index 000000000000..73e22c59b2fc --- /dev/null +++ b/devel/p5-File-NFSLock/pkg-plist @@ -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