From 9da68bc307da1962597768b5f48bcd606d812301 Mon Sep 17 00:00:00 2001 From: marcm Date: Mon, 29 Sep 2003 05:59:33 +0000 Subject: [PATCH] Stop scrollkeeper from opening it's "database" once for each *.omf file without closing it. A "base" Gnome 2 install has over 160 *.omf files so this would play havoc with the default open file limits. Bump version number accordingly. Also add the scrollkeeper logs to the @extra list. --- textproc/scrollkeeper/Makefile | 6 ++++-- textproc/scrollkeeper/patches/patch-libs_install_c | 11 +++++++++++ textproc/scrollkeeper/pkg/PLIST | 5 +++-- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 textproc/scrollkeeper/patches/patch-libs_install_c diff --git a/textproc/scrollkeeper/Makefile b/textproc/scrollkeeper/Makefile index a3427b7e4a4..3eca9c3bc39 100644 --- a/textproc/scrollkeeper/Makefile +++ b/textproc/scrollkeeper/Makefile @@ -1,8 +1,10 @@ -# $OpenBSD: Makefile,v 1.11 2003/07/12 06:24:49 marcm Exp $ +# $OpenBSD: Makefile,v 1.12 2003/09/29 05:59:33 marcm Exp $ COMMENT= "Scrollkeeper Open Documentation Cataloging System" -DISTNAME= scrollkeeper-0.3.12 +VERSION= 0.3.12 +DISTNAME= scrollkeeper-${VERSION} +PKGNAME= scrollkeeper-${VERSION}p1 CATEGORIES= textproc HOMEPAGE= http://scrollkeeper.sourceforge.net diff --git a/textproc/scrollkeeper/patches/patch-libs_install_c b/textproc/scrollkeeper/patches/patch-libs_install_c new file mode 100644 index 00000000000..ebb937029de --- /dev/null +++ b/textproc/scrollkeeper/patches/patch-libs_install_c @@ -0,0 +1,11 @@ +$OpenBSD: patch-libs_install_c,v 1.1 2003/09/29 05:59:33 marcm Exp $ +--- libs/install.c.orig 2003-09-27 09:46:36.000000000 -0700 ++++ libs/install.c 2003-09-27 09:47:16.000000000 -0700 +@@ -409,6 +409,7 @@ static int get_unique_doc_id(char *filen + unique_id = id; + } + ++ fclose(fid); + return unique_id + 1; + } + diff --git a/textproc/scrollkeeper/pkg/PLIST b/textproc/scrollkeeper/pkg/PLIST index 9c37c1c0252..ddae4771a6d 100644 --- a/textproc/scrollkeeper/pkg/PLIST +++ b/textproc/scrollkeeper/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.5 2003/08/23 19:54:23 marcm Exp $ +@comment $OpenBSD: PLIST,v 1.6 2003/09/29 05:59:33 marcm Exp $ bin/scrollkeeper-config bin/scrollkeeper-extract bin/scrollkeeper-gen-seriesid @@ -185,4 +185,5 @@ share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd @unexec xmlcatalog --noout --del "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" /var/db/xmlcatalog @cwd ${SYSCONFDIR} @extra scrollkeeper.conf -@extraunexec rm -rf /var/db/scrollkeeper +@extraunexec rm -rf /var/db/scrollkeeper/ +@extraunexec rm -f /var/log/scrollkeeper.log*