Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple wrapper around inotify
- Loading branch information
Showing
5 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
PORTNAME= inotify-simple | ||
PORTVERSION= 1.3.5 | ||
CATEGORIES= devel python | ||
MASTER_SITES= PYPI | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} | ||
|
||
MAINTAINER= grembo@FreeBSD.org | ||
COMMENT= Simple wrapper around inotify | ||
WWW= https://github.com/chrisjbillington/inotify_simple | ||
|
||
LICENSE= BSD2CLAUSE | ||
LICENSE_FILE= ${WRKSRC}/LICENSE | ||
|
||
LIB_DEPENDS= libinotify.so:devel/libinotify | ||
|
||
USES= python | ||
USE_PYTHON= autoplist distutils | ||
|
||
NO_ARCH= yes | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1707611159 | ||
SHA256 (inotify_simple-1.3.5.tar.gz) = 8440ffe49c4ae81a8df57c1ae1eb4b6bfa7acb830099bfb3e305b383005cc128 | ||
SIZE (inotify_simple-1.3.5.tar.gz) = 9747 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- inotify_simple.py.orig 2024-02-11 00:28:11 UTC | ||
+++ inotify_simple.py | ||
@@ -82,7 +82,7 @@ class INotify(FileIO): | ||
manually with ``os.read(fd)``) to raise ``BlockingIOError`` if no data | ||
is available.""" | ||
try: | ||
- libc_so = find_library('c') | ||
+ libc_so = find_library('inotify') | ||
except RuntimeError: # Python on Synology NASs raises a RuntimeError | ||
libc_so = None | ||
global _libc; _libc = _libc or CDLL(libc_so or 'libc.so.6', use_errno=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
inotify_simple is a simple Python wrapper around inotify. | ||
No fancy bells and whistles, just a literal wrapper with ctypes. |