# ChangeLog for app-admin/gamin
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/gamin/ChangeLog,v 1.37 2005/10/24 17:30:48 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/gamin/ChangeLog,v 1.38 2005/10/25 17:12:47 dang Exp $
+
+*gamin-0.1.6-r1 (25 Oct 2005)
+
+ 25 Oct 2005; <dang@gentoo.org> +files/gamin-0.1.6-doublefree.patch,
+ +gamin-0.1.6-r1.ebuild:
+ Bump to fix bug #109642
24 Oct 2005; Tobias Scherbaum <dertobi123@gentoo.org> gamin-0.1.6.ebuild:
Marked ppc stable, bug #109154
-MD5 4e08d325b05dc57e0be88f571d62e6df ChangeLog 6340
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 1928591969ab92fbd4c174f8fba5329a ChangeLog 6488
MD5 20a4a3c7c4794dfac0d00d75ef58fb96 files/digest-gamin-0.1.5 63
MD5 4c4877b9719b0d721cdb582cd290454a files/digest-gamin-0.1.6 63
+MD5 4c4877b9719b0d721cdb582cd290454a files/digest-gamin-0.1.6-r1 63
MD5 510d70d44de83d7822311077a39621c8 files/gamin-0.1.3-freebsd.patch 3857
MD5 84f3255901e8fa0574b40df22ee54cea files/gamin-0.1.5-inotify-legacy-backend.patch 27609
MD5 ac0a6ced64a702a7d8cc11cc3437687c files/gamin-0.1.5-noinotify.patch 1180
+MD5 44c921abd1a5d8fd8a6bb523dde8e680 files/gamin-0.1.6-doublefree.patch 1012
MD5 56d0a147e3d52d29bdfac13e2f2a1952 gamin-0.1.5.ebuild 1929
+MD5 760cc0fd86d1af9cdfa31045d35bfe70 gamin-0.1.6-r1.ebuild 1374
MD5 a7fc377bb4a8b373ee9964977491758b gamin-0.1.6.ebuild 1436
MD5 875135e8740bafa4dab79ee592cf9744 metadata.xml 279
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFDXmehomPajV0RnrERAuUIAJ9Zkt6mU9/CoB1gkqxBcZmk9VgCRwCcCJ/y
+zmKkcyTeLj1j88uoB3T9Ulo=
+=/WHN
+-----END PGP SIGNATURE-----
--- /dev/null
+MD5 9c306b964ca95044a19c273dffd24001 gamin-0.1.6.tar.gz 538720
--- /dev/null
+diff --exclude-from=/home/dang/.diffrc -u -ruN gamin-0.1.6.orig/server/gam_connection.c gamin-0.1.6/server/gam_connection.c
+--- gamin-0.1.6.orig/server/gam_connection.c 2005-09-08 06:18:13.000000000 -0400
++++ gamin-0.1.6/server/gam_connection.c 2005-10-25 12:46:18.000000000 -0400
+@@ -387,8 +387,13 @@
+ gam_listener_remove_subscription(conn->listener, sub);
+ gam_remove_subscription(sub);
+ #ifdef ENABLE_INOTIFY
+- if (gam_inotify_is_running())
+- gam_subscription_free(sub);
++ if ((gam_inotify_is_running()) && (!gam_exclude_check(path))) {
++ gam_fs_mon_type type;
++
++ type = gam_fs_get_mon_type (path);
++ if (type != GFS_MT_POLL)
++ gam_subscription_free(sub);
++ }
+ #endif
+
+ if (gam_send_ack(conn, req->seq, path, pathlen) < 0) {
+@@ -396,7 +401,8 @@
+ gam_connection_get_pid(conn));
+ }
+ g_free(path);
+- } break;
++ break;
++ }
+ case GAM_REQ_DEBUG:
+ #ifdef GAMIN_DEBUG_API
+ gam_debug_add(conn, req->path, options);
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/gamin/gamin-0.1.6-r1.ebuild,v 1.1 2005/10/25 17:12:47 dang Exp $
+
+inherit autotools eutils libtool
+
+DESCRIPTION="Library providing the FAM File Alteration Monitor API"
+HOMEPAGE="http://www.gnome.org/~veillard/gamin/"
+SRC_URI="http://www.gnome.org/~veillard/gamin/sources/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~s390 ~sh ~x86"
+IUSE="debug doc"
+
+RDEPEND="virtual/libc
+ >=dev-libs/glib-2
+ !app-admin/fam"
+
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+PROVIDE="virtual/fam"
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # Fix doublefree bug #109642
+ epatch ${FILESDIR}/${P}-doublefree.patch
+
+ # Do not remove
+ elibtoolize
+}
+
+src_compile() {
+ econf \
+ $(use_enable kernel_linux inotify) \
+ $(use_enable debug) \
+ $(use_enable debug debug-api) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt
+ use doc && dohtml doc/*
+}
+
+pkg_postinst() {
+ if use kernel_linux; then
+ einfo "It is strongly suggested you use Gamin with an inotify enabled"
+ einfo "kernel for best performance. For this release of gamin you need"
+ einfo "at least gentoo-sources-2.6.13 or later."
+ fi
+}