summaryrefslogtreecommitdiff
path: root/devel/p5-File-FlockDir
diff options
context:
space:
mode:
authorwiz <wiz>2001-03-15 18:04:33 +0000
committerwiz <wiz>2001-03-15 18:04:33 +0000
commit5632e0f2d099ddbca16594869b51ef547698f9e4 (patch)
tree7e7ec3c18a7e8de08629d0341bda23fa19e482e0 /devel/p5-File-FlockDir
parent38e477557706e8a3e05513777caea53232338dfd (diff)
downloadpkgsrc-5632e0f2d099ddbca16594869b51ef547698f9e4.tar.gz
Initial import of p5-File-FlockDir -- override perl flock() for
network or portability reasons. Package provided by Mark Davies, ispelled by me. Closes pkg/12062.
Diffstat (limited to 'devel/p5-File-FlockDir')
-rw-r--r--devel/p5-File-FlockDir/Makefile18
-rw-r--r--devel/p5-File-FlockDir/files/md53
-rw-r--r--devel/p5-File-FlockDir/pkg/DESCR14
-rw-r--r--devel/p5-File-FlockDir/pkg/PLIST1
4 files changed, 36 insertions, 0 deletions
diff --git a/devel/p5-File-FlockDir/Makefile b/devel/p5-File-FlockDir/Makefile
new file mode 100644
index 00000000000..dfbe5d8bda1
--- /dev/null
+++ b/devel/p5-File-FlockDir/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/03/15 18:04:33 wiz Exp $
+#
+
+DISTNAME= File-FlockDir-1.02
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=File/}
+
+MAINTAINER= packages@netbsd.org
+COMMENT= FlockDir - override perl flock() for network or portability purposes
+
+USE_PERL5= # defined
+PERL5_PACKLIST= ${PERL5_SITEARCH}/auto/File/FlockDir/.packlist
+
+do-configure:
+ @cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${PERL5} Makefile.PL
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/p5-File-FlockDir/files/md5 b/devel/p5-File-FlockDir/files/md5
new file mode 100644
index 00000000000..93e9e2edbda
--- /dev/null
+++ b/devel/p5-File-FlockDir/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1.1.1 2001/03/15 18:04:33 wiz Exp $
+
+MD5 (File-FlockDir-1.02.tar.gz) = ee3411f4d3373d4acc0f15ee63b365f3
diff --git a/devel/p5-File-FlockDir/pkg/DESCR b/devel/p5-File-FlockDir/pkg/DESCR
new file mode 100644
index 00000000000..2b5d538ce0c
--- /dev/null
+++ b/devel/p5-File-FlockDir/pkg/DESCR
@@ -0,0 +1,14 @@
+A flock module for Windows9x and other systems lacking
+a good perl flock() function (not platform specific)
+
+Rationale: flock on Win95/98 is badly broken but
+perl code needs to be portable. In addition, sometimes code written
+to use flock() on one workstation needs to be ported to running on
+several networked servers and clients. One way to allow this is
+to override perl's open(), flock(), and close(). We then get an
+absolute file specification for all opened files and and use it in
+a hash to create a unique lock for the file using the File::LockDir
+module from the "Perl Cookbook", by Christiansen and Torkington
+(O'Reilly, 1998). This module may be included in the CPAN
+distribution but belongs to those authors. New code has been
+kept to a minimum.
diff --git a/devel/p5-File-FlockDir/pkg/PLIST b/devel/p5-File-FlockDir/pkg/PLIST
new file mode 100644
index 00000000000..310ad0a86fa
--- /dev/null
+++ b/devel/p5-File-FlockDir/pkg/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/03/15 18:04:33 wiz Exp $