pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/p5-File-Flock



Module Name:    pkgsrc
Committed By:   mef
Date:           Mon Jan 30 14:13:23 UTC 2017

Added Files:
        pkgsrc/devel/p5-File-Flock: DESCR Makefile distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/p5-File-Flock/DESCR \
    pkgsrc/devel/p5-File-Flock/Makefile pkgsrc/devel/p5-File-Flock/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/p5-File-Flock/DESCR
diff -u /dev/null pkgsrc/devel/p5-File-Flock/DESCR:1.1
--- /dev/null   Mon Jan 30 14:13:23 2017
+++ pkgsrc/devel/p5-File-Flock/DESCR    Mon Jan 30 14:13:23 2017
@@ -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.
Index: pkgsrc/devel/p5-File-Flock/Makefile
diff -u /dev/null pkgsrc/devel/p5-File-Flock/Makefile:1.1
--- /dev/null   Mon Jan 30 14:13:23 2017
+++ pkgsrc/devel/p5-File-Flock/Makefile Mon Jan 30 14:13:23 2017
@@ -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"
Index: pkgsrc/devel/p5-File-Flock/distinfo
diff -u /dev/null pkgsrc/devel/p5-File-Flock/distinfo:1.1
--- /dev/null   Mon Jan 30 14:13:23 2017
+++ pkgsrc/devel/p5-File-Flock/distinfo Mon Jan 30 14:13:23 2017
@@ -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