head	1.3;
access;
symbols
	pkgsrc-2026Q1:1.3.0.116
	pkgsrc-2026Q1-base:1.3
	pkgsrc-2025Q4:1.3.0.114
	pkgsrc-2025Q4-base:1.3
	pkgsrc-2025Q3:1.3.0.112
	pkgsrc-2025Q3-base:1.3
	pkgsrc-2025Q2:1.3.0.110
	pkgsrc-2025Q2-base:1.3
	pkgsrc-2025Q1:1.3.0.108
	pkgsrc-2025Q1-base:1.3
	pkgsrc-2024Q4:1.3.0.106
	pkgsrc-2024Q4-base:1.3
	pkgsrc-2024Q3:1.3.0.104
	pkgsrc-2024Q3-base:1.3
	pkgsrc-2024Q2:1.3.0.102
	pkgsrc-2024Q2-base:1.3
	pkgsrc-2024Q1:1.3.0.100
	pkgsrc-2024Q1-base:1.3
	pkgsrc-2023Q4:1.3.0.98
	pkgsrc-2023Q4-base:1.3
	pkgsrc-2023Q3:1.3.0.96
	pkgsrc-2023Q3-base:1.3
	pkgsrc-2023Q2:1.3.0.94
	pkgsrc-2023Q2-base:1.3
	pkgsrc-2023Q1:1.3.0.92
	pkgsrc-2023Q1-base:1.3
	pkgsrc-2022Q4:1.3.0.90
	pkgsrc-2022Q4-base:1.3
	pkgsrc-2022Q3:1.3.0.88
	pkgsrc-2022Q3-base:1.3
	pkgsrc-2022Q2:1.3.0.86
	pkgsrc-2022Q2-base:1.3
	pkgsrc-2022Q1:1.3.0.84
	pkgsrc-2022Q1-base:1.3
	pkgsrc-2021Q4:1.3.0.82
	pkgsrc-2021Q4-base:1.3
	pkgsrc-2021Q3:1.3.0.80
	pkgsrc-2021Q3-base:1.3
	pkgsrc-2021Q2:1.3.0.78
	pkgsrc-2021Q2-base:1.3
	pkgsrc-2021Q1:1.3.0.76
	pkgsrc-2021Q1-base:1.3
	pkgsrc-2020Q4:1.3.0.74
	pkgsrc-2020Q4-base:1.3
	pkgsrc-2020Q3:1.3.0.72
	pkgsrc-2020Q3-base:1.3
	pkgsrc-2020Q2:1.3.0.68
	pkgsrc-2020Q2-base:1.3
	pkgsrc-2020Q1:1.3.0.48
	pkgsrc-2020Q1-base:1.3
	pkgsrc-2019Q4:1.3.0.70
	pkgsrc-2019Q4-base:1.3
	pkgsrc-2019Q3:1.3.0.66
	pkgsrc-2019Q3-base:1.3
	pkgsrc-2019Q2:1.3.0.64
	pkgsrc-2019Q2-base:1.3
	pkgsrc-2019Q1:1.3.0.62
	pkgsrc-2019Q1-base:1.3
	pkgsrc-2018Q4:1.3.0.60
	pkgsrc-2018Q4-base:1.3
	pkgsrc-2018Q3:1.3.0.58
	pkgsrc-2018Q3-base:1.3
	pkgsrc-2018Q2:1.3.0.56
	pkgsrc-2018Q2-base:1.3
	pkgsrc-2018Q1:1.3.0.54
	pkgsrc-2018Q1-base:1.3
	pkgsrc-2017Q4:1.3.0.52
	pkgsrc-2017Q4-base:1.3
	pkgsrc-2017Q3:1.3.0.50
	pkgsrc-2017Q3-base:1.3
	pkgsrc-2017Q2:1.3.0.46
	pkgsrc-2017Q2-base:1.3
	pkgsrc-2017Q1:1.3.0.44
	pkgsrc-2017Q1-base:1.3
	pkgsrc-2016Q4:1.3.0.42
	pkgsrc-2016Q4-base:1.3
	pkgsrc-2016Q3:1.3.0.40
	pkgsrc-2016Q3-base:1.3
	pkgsrc-2016Q2:1.3.0.38
	pkgsrc-2016Q2-base:1.3
	pkgsrc-2016Q1:1.3.0.36
	pkgsrc-2016Q1-base:1.3
	pkgsrc-2015Q4:1.3.0.34
	pkgsrc-2015Q4-base:1.3
	pkgsrc-2015Q3:1.3.0.32
	pkgsrc-2015Q3-base:1.3
	pkgsrc-2015Q2:1.3.0.30
	pkgsrc-2015Q2-base:1.3
	pkgsrc-2015Q1:1.3.0.28
	pkgsrc-2015Q1-base:1.3
	pkgsrc-2014Q4:1.3.0.26
	pkgsrc-2014Q4-base:1.3
	pkgsrc-2014Q3:1.3.0.24
	pkgsrc-2014Q3-base:1.3
	pkgsrc-2014Q2:1.3.0.22
	pkgsrc-2014Q2-base:1.3
	pkgsrc-2014Q1:1.3.0.20
	pkgsrc-2014Q1-base:1.3
	pkgsrc-2013Q4:1.3.0.18
	pkgsrc-2013Q4-base:1.3
	pkgsrc-2013Q3:1.3.0.16
	pkgsrc-2013Q3-base:1.3
	pkgsrc-2013Q2:1.3.0.14
	pkgsrc-2013Q2-base:1.3
	pkgsrc-2013Q1:1.3.0.12
	pkgsrc-2013Q1-base:1.3
	pkgsrc-2012Q4:1.3.0.10
	pkgsrc-2012Q4-base:1.3
	pkgsrc-2012Q3:1.3.0.8
	pkgsrc-2012Q3-base:1.3
	pkgsrc-2012Q2:1.3.0.6
	pkgsrc-2012Q2-base:1.3
	pkgsrc-2012Q1:1.3.0.4
	pkgsrc-2012Q1-base:1.3
	pkgsrc-2011Q4:1.3.0.2
	pkgsrc-2011Q4-base:1.3
	pkgsrc-2011Q3:1.2.0.76
	pkgsrc-2011Q3-base:1.2
	pkgsrc-2011Q2:1.2.0.74
	pkgsrc-2011Q2-base:1.2
	pkgsrc-2011Q1:1.2.0.72
	pkgsrc-2011Q1-base:1.2
	pkgsrc-2010Q4:1.2.0.70
	pkgsrc-2010Q4-base:1.2
	pkgsrc-2010Q3:1.2.0.68
	pkgsrc-2010Q3-base:1.2
	pkgsrc-2010Q2:1.2.0.66
	pkgsrc-2010Q2-base:1.2
	pkgsrc-2010Q1:1.2.0.64
	pkgsrc-2010Q1-base:1.2
	pkgsrc-2009Q4:1.2.0.62
	pkgsrc-2009Q4-base:1.2
	pkgsrc-2009Q3:1.2.0.60
	pkgsrc-2009Q3-base:1.2
	pkgsrc-2009Q2:1.2.0.58
	pkgsrc-2009Q2-base:1.2
	pkgsrc-2009Q1:1.2.0.56
	pkgsrc-2009Q1-base:1.2
	pkgsrc-2008Q4:1.2.0.54
	pkgsrc-2008Q4-base:1.2
	pkgsrc-2008Q3:1.2.0.52
	pkgsrc-2008Q3-base:1.2
	cube-native-xorg:1.2.0.50
	cube-native-xorg-base:1.2
	pkgsrc-2008Q2:1.2.0.48
	pkgsrc-2008Q2-base:1.2
	cwrapper:1.2.0.46
	pkgsrc-2008Q1:1.2.0.44
	pkgsrc-2008Q1-base:1.2
	pkgsrc-2007Q4:1.2.0.42
	pkgsrc-2007Q4-base:1.2
	pkgsrc-2007Q3:1.2.0.40
	pkgsrc-2007Q3-base:1.2
	pkgsrc-2007Q2:1.2.0.38
	pkgsrc-2007Q2-base:1.2
	pkgsrc-2007Q1:1.2.0.36
	pkgsrc-2007Q1-base:1.2
	pkgsrc-2006Q4:1.2.0.34
	pkgsrc-2006Q4-base:1.2
	pkgsrc-2006Q3:1.2.0.32
	pkgsrc-2006Q3-base:1.2
	pkgsrc-2006Q2:1.2.0.30
	pkgsrc-2006Q2-base:1.2
	pkgsrc-2006Q1:1.2.0.28
	pkgsrc-2006Q1-base:1.2
	pkgsrc-2005Q4:1.2.0.26
	pkgsrc-2005Q4-base:1.2
	pkgsrc-2005Q3:1.2.0.24
	pkgsrc-2005Q3-base:1.2
	pkgsrc-2005Q2:1.2.0.22
	pkgsrc-2005Q2-base:1.2
	pkgsrc-2005Q1:1.2.0.20
	pkgsrc-2005Q1-base:1.2
	pkgsrc-2004Q4:1.2.0.18
	pkgsrc-2004Q4-base:1.2
	pkgsrc-2004Q3:1.2.0.16
	pkgsrc-2004Q3-base:1.2
	pkgsrc-2004Q2:1.2.0.14
	pkgsrc-2004Q2-base:1.2
	pkgsrc-2004Q1:1.2.0.12
	pkgsrc-2004Q1-base:1.2
	pkgsrc-2003Q4:1.2.0.10
	pkgsrc-2003Q4-base:1.2
	netbsd-1-6-1:1.2.0.6
	netbsd-1-6-1-base:1.2
	netbsd-1-6:1.2.0.8
	netbsd-1-6-RELEASE-base:1.2
	pkgviews:1.2.0.4
	pkgviews-base:1.2
	buildlink2:1.2.0.2
	buildlink2-base:1.2
	netbsd-1-5-PATCH003:1.2
	netbsd-1-5-PATCH001:1.1
	netbsd-1-5-RELEASE:1.1
	netbsd-1-4-PATCH003:1.1
	netbsd-1-4-PATCH002:1.1
	comdex-fall-1999:1.1;
locks; strict;
comment	@# @;


1.3
date	2011.12.05.10.18.17;	author wiz;	state Exp;
branches;
next	1.2;

1.2
date	2002.03.09.21.48.12;	author fredb;	state Exp;
branches;
next	1.1;

1.1
date	99.09.23.01.33.30;	author fredb;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Update htdig using htdig-devel. Update packages using it
and bump their PKGREVISIONs. Remove htdig-devel.
@
text
@$NetBSD: patch-ab,v 1.1 2009/01/17 09:13:10 adam Exp $

--- htsearch/Display.cc.orig	2009-01-17 10:05:37.000000000 +0100
+++ htsearch/Display.cc
@@@@ -1541,7 +1541,7 @@@@ Display::buildMatchList()
 // seconds in a 365 days year). The formula gives less weight
 // as the distance between the date document and the current time
 // increases (the absolute value is for documents with future date)
-#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((n) - (dd)) / 31536000)))
+#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((int)((n) - (dd))) / 31536000)))
 	    date_score =  DATE_FACTOR(date_factor, now, thisRef->DocTime());
 	    score += date_score;
         }
@


1.2
log
@Update htdig to 3.1.6. Many bug fixes, including one security-related fix.
The following is from the web page:

Release notes for htdig-3.1.6 1 Feb 2002
As  with  previous  releases,  this  version  cleans up some remaining bugs and adds a few
heavily-requested  features.  As  the  latest  stable  release,  it is recommended for all
production servers.
 * Fixed  another  nasty security hole in htsearch, which would allow a denial of service
   attack  or  forcing  htsearch  to  read  in  config files outside of the configuration
   directory.
 * Fixed some problems with htmerge, including problems with words beginning with special
   characters and merging multiple databases.
 * Fixed a bug in handling hopcounts.
 * Fixed problems in handling non-standard relative HTTP redirects.
 * Fixed bugs in external parsers support including being confused by charset information
   in the Content-Type header and handling binary output from external converters.
 * Fixed  bugs  in  the  default English endings database. (Under ispell, it wasn't quite
   intended for the accuracy needed for our usage.)
 * Fixed additional bugs in the endings fuzzy algorithm.
 * Fixed bugs with compiling with gcc-3.0 and later.
 * Fixed bugs compiling and running on Mac OS X.
 * Fixed  problems  with  servers not returning a Last-Modified date--now assums indexing
   time as modification time.
 * Fixed a variety of bugs in the HTML parser to more flexibly handle non-standard HTML.
 * Fixed  problems  in  the  TCP  connection  code  and will more reliably timeout when a
   connection hangs and will retry bad connections several times before giving up.
 * Added the -m "minimal" flag to htdig for only indexing a set list of URLs and made the
   -l (log) flag the default behavior so that htdig will stop and restart automatically.
 * Added  htdump  and  htload programs for dumping ASCII representations of the databases
   and reloading the same.
 * Added  support  for  htnotify to collect multiple URLs and allow easy customization of
   notification    messages,    including    the    new    attributes   htnotify_replyto,
   htnotify_webmaster, htnotify_prefix_file, and htnotify_suffix_file.
 * Added  a  new "accents" fuzzy algorithm to morph accents, including the new accents_db
   attribute.
 * Added  a  'list  all'  feature  to  htsearch  with  a  query  of  '*'  or  the current
   prefix_match_character.
 * Added date restricted searching to htsearch including relative dates.
 * Added documentation on running ht://Dig and the rundig script.
 * Added  METADESCRIPTION  and  NSTARS  variables  to  the  htsearch templates as well as
   support for $=(var) template variable references.
 * Added  new  config attributes to htsearch for restrict and exclude which work like the
   normal htsearch form variables if the form variables are not set.
 * Added  many  new attributes, including ignore_dead_servers description_meta_tag_names,
   max_keywords,      translate_latin1,      url_rewrite_rules,     search_rewrite_rules,
   anchor_target,    ignore_alt_text,    search_results_contenttype,    boolean_keywords,
   boolean_syntax_errors,    multimatch_method,    maximum_page_buttons,    max_excerpts,
   plural_suffix, any_keywords and use_doc_date.
 * Extended  the build_select_lists attribute to support select multiple, radio boxes and
   checkboxes.
 * Revised  the documentation to make it clearer in parts, including the url_part_aliases
   attribute.
 * Updated  various  contributed  utilities  including  doc2html,  xmlsearch,  rundig.sh,
   htparsedoc, acroconv.pl, multidig, etc.
 * A  variety  of  other bug fixes, and many documentation updates. See the ChangeLog for
   details.
@
text
@d1 1
a1 1
$NetBSD: patch-ab,v 1.1 1999/09/23 01:33:30 fredb Exp $
d3 11
a13 21
--- Makefile.in.orig	Thu Jan 31 17:47:14 2002
+++ Makefile.in
@@@@ -26,8 +26,7 @@@@
 top_builddir= .
 include Makefile.config
 
-DIRS=		db/dist \
-		htlib htcommon htfuzzy htdig \
+DIRS=		htlib htcommon htfuzzy htdig \
 		htsearch htmerge htnotify
 INSTALLDIRS=	htfuzzy htdig \
 		htsearch htmerge htnotify
@@@@ -93,7 +92,7 @@@@
 	done && test -z "$$fail"
 	@@echo ""
 	@@echo "Installing default configuration files..."
-	@@if [ ! -f $(INSTALL_ROOT)$(DEFAULT_CONFIG_FILE) ]; then sed -e s%\@@DATABASE_DIR\@@%$(DATABASE_DIR)% -e s%\@@IMAGEDIR\@@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/htdig.conf >$(INSTALL_ROOT)$(DEFAULT_CONFIG_FILE); echo $(INSTALL_ROOT)$(DEFAULT_CONFIG_FILE);fi
+	@@if [ ! -f $(INSTALL_ROOT)$(SEARCH_DIR)/htdig.conf ]; then sed -e s%\@@DATABASE_DIR\@@%$(DATABASE_DIR)% -e s%\@@IMAGEDIR\@@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/htdig.conf >$(INSTALL_ROOT)$(SEARCH_DIR)/htdig.conf; echo $(INSTALL_ROOT)$(DEFAULT_CONFIG_FILE);fi
 	@@if [ ! -f $(INSTALL_ROOT)$(SEARCH_DIR)/$(SEARCH_FORM) ]; then sed -e s%\@@IMAGEDIR\@@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/search.html >$(INSTALL_ROOT)$(SEARCH_DIR)/$(SEARCH_FORM); echo $(INSTALL_ROOT)$(SEARCH_DIR)/$(SEARCH_FORM);fi
 	@@for i in $(COMMONHTML); do \
 		if [ ! -f $(INSTALL_ROOT)$(COMMON_DIR)/$$i ]; then sed -e s%\@@IMAGEDIR\@@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/$$i >$(INSTALL_ROOT)$(COMMON_DIR)/$$i; echo $(INSTALL_ROOT)$(COMMON_DIR)/$$i;fi; \
@


1.1
log
@- - Adjust paths of configs and sample databases, per
    suggestions by Kimmo Suominen.
- - Disable build on NetBSD-1.3[A-J] (needs libstdc++).
- - Use databases/db (currently db-2.7.3), instead of
    included db-2.6.4.
@
text
@d1 1
a1 1
$NetBSD$
d3 2
a4 2
--- Makefile.in.orig	Wed Apr 21 21:47:53 1999
+++ Makefile.in	Wed Sep 22 15:01:33 1999
d19 3
a21 3
-	@@if [ ! -f $(INSTALL_ROOT)$(CONFIG_DIR)/htdig.conf ]; then sed -e s%@@DATABASE_DIR@@%$(DATABASE_DIR)% -e s%@@IMAGEDIR@@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/htdig.conf >$(INSTALL_ROOT)$(CONFIG_DIR)/htdig.conf; echo $(INSTALL_ROOT)$(CONFIG_DIR)/htdig.conf;fi
+	@@if [ ! -f $(INSTALL_ROOT)$(SEARCH_DIR)/htdig.conf ]; then sed -e s%@@DATABASE_DIR@@%$(DATABASE_DIR)% -e s%@@IMAGEDIR@@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/htdig.conf >$(INSTALL_ROOT)$(SEARCH_DIR)/htdig.conf; echo $(INSTALL_ROOT)$(SEARCH_DIR)/htdig.conf;fi
 	@@if [ ! -f $(INSTALL_ROOT)$(SEARCH_DIR)/$(SEARCH_FORM) ]; then sed -e s%@@IMAGEDIR@@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/search.html >$(INSTALL_ROOT)$(SEARCH_DIR)/$(SEARCH_FORM); echo $(INSTALL_ROOT)$(SEARCH_DIR)/$(SEARCH_FORM);fi
d23 1
a23 1
 		if [ ! -f $(INSTALL_ROOT)$(COMMON_DIR)/$$i ]; then sed -e s%@@IMAGEDIR@@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/$$i >$(INSTALL_ROOT)$(COMMON_DIR)/$$i; echo $(INSTALL_ROOT)$(COMMON_DIR)/$$i;fi; \
@

