pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/p5-File-Flock Import p5-File-Flock-2014.01 as de...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4e13d0a7cf4e
branches: trunk
changeset: 357863:4e13d0a7cf4e
user: mef <mef%pkgsrc.org@localhost>
date: Mon Jan 30 14:13:23 2017 +0000
description:
Import p5-File-Flock-2014.01 as devel/p5-File-Flock.
Lock files using the flock() call. If the file to be locked does not exist,
then the file is created. If the file was created then it will be removed
when it is unlocked assuming it's still an empty file.
Locks can be created by new'ing a File::Flock object. Such locks are
automatically removed when the object goes out of scope. The unlock()
method may also be used.
lock_rename() is used to tell File::Flock when a file has been renamed (and
thus the internal locking data that is stored based on the filename should
be moved to a new name). unlock() the new name rather than the original
name.
Locks are released on process exit when the process that created the lock
exits. Subprocesses that exit do not remove locks. Use forget_locks() or
POSIX::_exit() to prevent unlocking on process exit.
diffstat:
devel/p5-File-Flock/DESCR | 16 ++++++++++++++++
devel/p5-File-Flock/Makefile | 17 +++++++++++++++++
devel/p5-File-Flock/distinfo | 6 ++++++
3 files changed, 39 insertions(+), 0 deletions(-)
diffs (51 lines):
diff -r 09ec195f1e22 -r 4e13d0a7cf4e devel/p5-File-Flock/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-File-Flock/DESCR Mon Jan 30 14:13:23 2017 +0000
@@ -0,0 +1,16 @@
+Lock files using the flock() call. If the file to be locked does not exist,
+then the file is created. If the file was created then it will be removed
+when it is unlocked assuming it's still an empty file.
+
+Locks can be created by new'ing a File::Flock object. Such locks are
+automatically removed when the object goes out of scope. The unlock()
+method may also be used.
+
+lock_rename() is used to tell File::Flock when a file has been renamed (and
+thus the internal locking data that is stored based on the filename should
+be moved to a new name). unlock() the new name rather than the original
+name.
+
+Locks are released on process exit when the process that created the lock
+exits. Subprocesses that exit do not remove locks. Use forget_locks() or
+POSIX::_exit() to prevent unlocking on process exit.
diff -r 09ec195f1e22 -r 4e13d0a7cf4e devel/p5-File-Flock/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-File-Flock/Makefile Mon Jan 30 14:13:23 2017 +0000
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2017/01/30 14:13:23 mef Exp $
+
+DISTNAME= File-Flock-2014.01
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= devel perl5
+MASTER_SITES= http://search.cpan.org/CPAN/authors/id/M/MU/MUIR/modules/
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= http://search.cpan.org/CPAN/authors/id/M/MU/MUIR/modules/
+COMMENT= File::Flock - file locking with flock
+LICENSE= ${PERL5_LICENSE}
+
+PERL5_PACKLIST= auto/File/Flock/.packlist
+USE_LANGUAGES= # none
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 09ec195f1e22 -r 4e13d0a7cf4e devel/p5-File-Flock/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-File-Flock/distinfo Mon Jan 30 14:13:23 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/01/30 14:13:23 mef Exp $
+
+SHA1 (File-Flock-2014.01.tar.gz) = 48e3698e812fc1d357c2092c7343871f8405e427
+RMD160 (File-Flock-2014.01.tar.gz) = 729f35e4eaf4305290d37d453c25080ce39bccc6
+SHA512 (File-Flock-2014.01.tar.gz) = 3892d9c126c809709e690391396bc349b95b790b2d1be34bf1d24d728dbbe8b9e5dc7a35f5bf17b420b5912aa6b1e2ef1aa6c6b60b48c4e17685eade7b3fae16
+Size (File-Flock-2014.01.tar.gz) = 12790 bytes
Home |
Main Index |
Thread Index |
Old Index