summaryrefslogtreecommitdiff
path: root/devel/p5-File-NFSLock
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2007-02-06 18:48:59 +0000
committerabs <abs@pkgsrc.org>2007-02-06 18:48:59 +0000
commit379ff7735db94dde8c59b007d4219a5856d08d5c (patch)
treef09982884638a55a0a3c3069f6c82201b7f4c701 /devel/p5-File-NFSLock
parent9e39255008bb6ee6bdc307994f0a8ebe5a249e45 (diff)
downloadpkgsrc-379ff7735db94dde8c59b007d4219a5856d08d5c.tar.gz
Import p5-File-NFSLock-1.20 into pkgsrc:
File::NFSLock - perl module to do NFS (or not) locking Program 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.
Diffstat (limited to 'devel/p5-File-NFSLock')
-rw-r--r--devel/p5-File-NFSLock/DESCR11
-rw-r--r--devel/p5-File-NFSLock/Makefile17
-rw-r--r--devel/p5-File-NFSLock/PLIST1
-rw-r--r--devel/p5-File-NFSLock/distinfo5
4 files changed, 34 insertions, 0 deletions
diff --git a/devel/p5-File-NFSLock/DESCR b/devel/p5-File-NFSLock/DESCR
new file mode 100644
index 00000000000..44fb3a1a69f
--- /dev/null
+++ b/devel/p5-File-NFSLock/DESCR
@@ -0,0 +1,11 @@
+File::NFSLock - perl module to do NFS (or not) locking
+
+Program 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.
diff --git a/devel/p5-File-NFSLock/Makefile b/devel/p5-File-NFSLock/Makefile
new file mode 100644
index 00000000000..ba920d86657
--- /dev/null
+++ b/devel/p5-File-NFSLock/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/02/06 18:48:59 abs Exp $
+#
+
+DISTNAME= File-NFSLock-1.20
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=File/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+COMMENT= NFS (or not) locking
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+PERL5_PACKLIST= auto/File/NFSLock/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-File-NFSLock/PLIST b/devel/p5-File-NFSLock/PLIST
new file mode 100644
index 00000000000..884d8403e1d
--- /dev/null
+++ b/devel/p5-File-NFSLock/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/02/06 18:48:59 abs Exp $
diff --git a/devel/p5-File-NFSLock/distinfo b/devel/p5-File-NFSLock/distinfo
new file mode 100644
index 00000000000..772dbdc3a5a
--- /dev/null
+++ b/devel/p5-File-NFSLock/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/02/06 18:48:59 abs Exp $
+
+SHA1 (File-NFSLock-1.20.tar.gz) = de254502b47a9b4013ee6b5f6b8b553dc323dab5
+RMD160 (File-NFSLock-1.20.tar.gz) = b6c72e2c680c2d81341caf7003ef4249ec0d4fc2
+Size (File-NFSLock-1.20.tar.gz) = 18521 bytes