Commit graph

13 commits

Author SHA1 Message Date
Jean-Yves Lefort
7228ceb545 Update to 0.1.1 2005-06-10 17:38:28 +00:00
Jean-Yves Lefort
d44b3296aa Update to 0.1.0 2005-05-19 19:42:04 +00:00
Joe Marcus Clarke
7488473e0b Only declare the tests and post-install targets if we aren't in a slave
port.  This fixes the py-gamin slave build.
2005-05-09 23:54:51 +00:00
Jean-Yves Lefort
8c8500aaef Improve the kqueue backend:
- also use kqueue to monitor files within a monitored directory
  - tremendously improve the scalability of the backend when
    monitoring very large directories
  - periodically attempt to switch polled files to kqueue notification
  - do not perform an extra useless lstat() when a missing file is created
  - code cleanups

Approved by:	marcus
2005-05-09 15:46:39 +00:00
Joe Marcus Clarke
5800adbe9c Fix gamin on -CURRENT by not using LOCAL_CREDS. While it works, it does
not provide the pid information that the cmsgcred structure gives us.
Gamin will now behave the same way on all versions of FreeBSD.
2005-04-25 05:31:22 +00:00
Joe Marcus Clarke
621532c006 Add a ``tests'' target to run the built-in gamin regression tests.
Discussed with:	jylefort
2005-04-24 20:43:37 +00:00
Joe Marcus Clarke
02ef451cdc Only use USE_INC_LIBTOOL_VER if we're installing gamin itself. The slave
ports don't need this.

Reported by:	pointyhat via kris
2005-04-19 03:10:58 +00:00
Adam Weinberger
3f2ac9f26d Fix build on 4.X. 2005-04-11 08:22:59 +00:00
Joe Marcus Clarke
0c44fc8b45 Have gamin install libtool archives since KDE needs them. This is inline
with what devel/fam does.

Submitted by:	kwm
2005-04-10 20:34:05 +00:00
Joe Marcus Clarke
0429b7bc60 Add a patch forgotten in the previous commit. 2005-04-10 17:36:26 +00:00
Joe Marcus Clarke
83fe564826 * Fallback to polling for files not supported by kqueue
* Do not send an ENDEXISTS event on NOTE_REVOKE
* Handle kevent aggregation if multiple event types are requested
* Mimic FAM's behavior of never following symbolic links
* Add exhaustive error handling
* Remove all the legacy thread-safe code since gamin is now single-threaded

PR:		79680
Submitted by:	Jean-Yves Lefort <jylefort@brutele.be>
2005-04-10 17:36:01 +00:00
Joe Marcus Clarke
179b70aa16 * When a file monitored with kqueue is moved or removed, gamin does
not monitor it anymore. The patch fixes the issue by adding
  moved/removed files to the exist_list, so that gamin detects when
  they are recreated
* No CHANGED event is emitted for the files contained in a monitored
  directory, because kqueue can't do that. The patch adds periodic
  polling for these files
* Instead of calling kevent() every second, the patch uses an I/O
  watch (g_io_add_watch())

PR:		79605
Submitted by:	Jean-Yves Lefort <jylefort@brutele.be>
2005-04-07 01:18:24 +00:00
Joe Marcus Clarke
c87a13d100 Add gamin, a file and directory monitoring server and API. Gamin can be
used as a drop-in replacement for FAM.  Gamin is designed to be more secure
than FAM as itdoes not require RPC, and runs a separate instance for each
user.  While it is API and ABI compatible with FAM, it does not [yet]
support all of FAM's features.

This version of gamin comes with an optional (defaults to on) kqueue
backend for FreeBSD.  This backend can only be used with UFS file
systems.  If you need FAM-like support on non-UFS file systems, you
must build without the kqueue backend.
2005-04-02 09:08:47 +00:00