From 126a41d2d84dd8d41155fce555f1640e85711e5d Mon Sep 17 00:00:00 2001 From: imil Date: Tue, 14 Aug 2012 12:08:48 +0000 Subject: Initial import of py-lockfile, version 0.9.1, into the NetBSD Packages Collection. The lockfile package exports a LockFile class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf and flock functions, and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms. The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls. An implementation based on SQLite is also provided, more as a demonstration of the possibilities it provides than as production-quality code. --- devel/py-lockfile/DESCR | 8 ++++++++ devel/py-lockfile/Makefile | 22 ++++++++++++++++++++++ devel/py-lockfile/PLIST | 16 ++++++++++++++++ devel/py-lockfile/distinfo | 5 +++++ 4 files changed, 51 insertions(+) create mode 100644 devel/py-lockfile/DESCR create mode 100644 devel/py-lockfile/Makefile create mode 100644 devel/py-lockfile/PLIST create mode 100644 devel/py-lockfile/distinfo diff --git a/devel/py-lockfile/DESCR b/devel/py-lockfile/DESCR new file mode 100644 index 00000000000..0ded77daa86 --- /dev/null +++ b/devel/py-lockfile/DESCR @@ -0,0 +1,8 @@ +The lockfile package exports a LockFile class which provides a simple API for +locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf and +flock functions, and the deprecated posixfile module, the API is identical +across both Unix (including Linux and Mac) and Windows platforms. The lock +mechanism relies on the atomic nature of the link (on Unix) and mkdir +(on Windows) system calls. An implementation based on SQLite is also provided, +more as a demonstration of the possibilities it provides than as +production-quality code. diff --git a/devel/py-lockfile/Makefile b/devel/py-lockfile/Makefile new file mode 100644 index 00000000000..581d5c32da1 --- /dev/null +++ b/devel/py-lockfile/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2012/08/14 12:08:48 imil Exp $ +# + +DISTNAME= lockfile-0.9.1 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= devel python +MASTER_SITES= http://pylockfile.googlecode.com/files/ + +MAINTAINER= kamel.derouiche@gmail.com +HOMEPAGE= http://pypi.python.org/pypi/lockfile/ +COMMENT= Platform-independent file locking module +LICENSE= mit + +PKG_DESTDIR_SUPPORT= user-destdir + +DEPENDS+= ${PYPKGPREFIX}-sqlite3>=0:../../databases/py-sqlite3 + +PYDISTUTILSPKG= yes +USE_LANGUAGES= # none + +.include "../../lang/python/extension.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-lockfile/PLIST b/devel/py-lockfile/PLIST new file mode 100644 index 00000000000..abe6201e50f --- /dev/null +++ b/devel/py-lockfile/PLIST @@ -0,0 +1,16 @@ +@comment $NetBSD: PLIST,v 1.1 2012/08/14 12:08:48 imil Exp $ +${PYSITELIB}/lockfile/__init__.py +${PYSITELIB}/lockfile/__init__.pyc +${PYSITELIB}/lockfile/__init__.pyo +${PYSITELIB}/lockfile/linklockfile.py +${PYSITELIB}/lockfile/linklockfile.pyc +${PYSITELIB}/lockfile/linklockfile.pyo +${PYSITELIB}/lockfile/mkdirlockfile.py +${PYSITELIB}/lockfile/mkdirlockfile.pyc +${PYSITELIB}/lockfile/mkdirlockfile.pyo +${PYSITELIB}/lockfile/pidlockfile.py +${PYSITELIB}/lockfile/pidlockfile.pyc +${PYSITELIB}/lockfile/pidlockfile.pyo +${PYSITELIB}/lockfile/sqlitelockfile.py +${PYSITELIB}/lockfile/sqlitelockfile.pyc +${PYSITELIB}/lockfile/sqlitelockfile.pyo diff --git a/devel/py-lockfile/distinfo b/devel/py-lockfile/distinfo new file mode 100644 index 00000000000..f455e06f702 --- /dev/null +++ b/devel/py-lockfile/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2012/08/14 12:08:48 imil Exp $ + +SHA1 (lockfile-0.9.1.tar.gz) = 1eebaee375641c9f29aeb21768f917dd2b985752 +RMD160 (lockfile-0.9.1.tar.gz) = c94c1a638f2a11181063d6025a6c5acc8c9d09e6 +Size (lockfile-0.9.1.tar.gz) = 16949 bytes -- cgit v1.2.3