2012-10-28 07:30:00 +01:00
|
|
|
# $NetBSD: Makefile,v 1.41 2012/10/28 06:30:17 asau Exp $
|
1999-09-20 04:40:46 +02:00
|
|
|
|
2011-12-05 11:18:16 +01:00
|
|
|
DISTNAME= htdig-3.2.0b6
|
|
|
|
PKGREVISION= 1
|
1999-09-20 04:40:46 +02:00
|
|
|
CATEGORIES= www databases
|
2011-12-05 11:18:16 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=htdig/} \
|
|
|
|
http://www.htdig.org/files/ \
|
|
|
|
http://www.it.htdig.org/files/
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1999-09-20 04:40:46 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2001-02-08 15:43:56 +01:00
|
|
|
HOMEPAGE= http://htdig.sourceforge.net/
|
2001-02-17 18:21:28 +01:00
|
|
|
COMMENT= WWW indexing and searching system
|
1999-09-20 04:40:46 +02:00
|
|
|
|
2011-12-05 11:18:16 +01:00
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --with-cgi-bin-dir=${PREFIX}/libexec/cgi-bin
|
|
|
|
CONFIGURE_ARGS+= --with-common-dir=${PREFIX}/share/htdig/common
|
|
|
|
CONFIGURE_ARGS+= --with-config-dir=${PKG_SYSCONFDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-database-dir=${DBDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --with-image-dir=${PREFIX}/share/examples/htdig
|
|
|
|
CONFIGURE_ARGS+= --with-search-dir=${PREFIX}/share/examples/htdig
|
|
|
|
CONFIGURE_ENV+= PDF_PARSER="${LOCALBASE}/bin/acroread"
|
|
|
|
CXXFLAGS+= -Wno-deprecated
|
2003-12-18 05:05:28 +01:00
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= htdig
|
2012-05-20 08:24:54 +02:00
|
|
|
INSTALLATION_DIRS+= share/htdig/common
|
2003-12-18 05:05:28 +01:00
|
|
|
|
2005-01-12 22:31:29 +01:00
|
|
|
DBDIR?= ${VARBASE}/db/htdig
|
2003-12-18 05:05:28 +01:00
|
|
|
MESSAGE_SUBST+= DBDIR=${DBDIR}
|
|
|
|
OWN_DIRS+= ${DBDIR}
|
|
|
|
|
2011-12-05 11:18:16 +01:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/htdig/HtFileType-magic.mime \
|
|
|
|
${PKG_SYSCONFDIR}/HtFileType-magic.mime
|
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/htdig/cookies.txt \
|
|
|
|
${PKG_SYSCONFDIR}/cookies.txt
|
2003-12-18 05:05:28 +01:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/htdig/htdig.conf \
|
|
|
|
${PKG_SYSCONFDIR}/htdig.conf
|
2011-12-05 11:18:16 +01:00
|
|
|
CONF_FILES+= ${PREFIX}/share/examples/htdig/mime.types \
|
|
|
|
${PKG_SYSCONFDIR}/mime.types
|
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.
2002-03-09 22:48:11 +01:00
|
|
|
|
2005-01-12 22:31:29 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
1999-09-20 04:40:46 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|