diff options
author | imil <imil@pkgsrc.org> | 2012-08-14 12:08:48 +0000 |
---|---|---|
committer | imil <imil@pkgsrc.org> | 2012-08-14 12:08:48 +0000 |
commit | d9bb47d1543dd5c5e1c0a28e1566565060fab863 (patch) | |
tree | af92275df8ca2cb9c96080eb1208b405a1c8248b /devel | |
parent | e7a2b0163cc100980951020a6f4f38c6d6b926f8 (diff) | |
download | pkgsrc-d9bb47d1543dd5c5e1c0a28e1566565060fab863.tar.gz |
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.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/py-lockfile/DESCR | 8 | ||||
-rw-r--r-- | devel/py-lockfile/Makefile | 22 | ||||
-rw-r--r-- | devel/py-lockfile/PLIST | 16 | ||||
-rw-r--r-- | devel/py-lockfile/distinfo | 5 |
4 files changed, 51 insertions, 0 deletions
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 |