summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2005-12-17 19:26:26 +0000
committermarkd <markd@pkgsrc.org>2005-12-17 19:26:26 +0000
commitd20f1faf575c79a637274f0d3c25ea7878d7dba8 (patch)
treec58c397c9d30601af67fddaca8404dead3b5abc8 /www
parent318aab0b7d3ccaae0f627035c7a6c82d22779106 (diff)
downloadpkgsrc-d20f1faf575c79a637274f0d3c25ea7878d7dba8.tar.gz
Import of latest htdig beta release (from 18 months ago) as htdig-devel.
The ht://Dig system is a complete world wide web indexing and searching system for a small domain or intranet. Imported during the freeze as its needed to fix a problem in kdebase3. OKed by wiz.
Diffstat (limited to 'www')
-rw-r--r--www/htdig-devel/DESCR2
-rw-r--r--www/htdig-devel/INSTALL10
-rw-r--r--www/htdig-devel/MESSAGE13
-rw-r--r--www/htdig-devel/Makefile50
-rw-r--r--www/htdig-devel/PLIST206
-rw-r--r--www/htdig-devel/distinfo9
-rw-r--r--www/htdig-devel/patches/patch-af14
-rw-r--r--www/htdig-devel/patches/patch-ag14
-rw-r--r--www/htdig-devel/patches/patch-ah14
-rw-r--r--www/htdig-devel/patches/patch-ai28
10 files changed, 360 insertions, 0 deletions
diff --git a/www/htdig-devel/DESCR b/www/htdig-devel/DESCR
new file mode 100644
index 00000000000..aedb7500b8a
--- /dev/null
+++ b/www/htdig-devel/DESCR
@@ -0,0 +1,2 @@
+The ht://Dig system is a complete world wide web indexing and searching
+system for a small domain or intranet.
diff --git a/www/htdig-devel/INSTALL b/www/htdig-devel/INSTALL
new file mode 100644
index 00000000000..bb9c3e349a1
--- /dev/null
+++ b/www/htdig-devel/INSTALL
@@ -0,0 +1,10 @@
+#!@SH@
+#
+# $NetBSD: INSTALL,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+
+case "${STAGE}" in
+POST-INSTALL)
+ ${PREFIX}/bin/htfuzzy -v synonyms
+ ${PREFIX}/bin/htfuzzy -v endings
+ ;;
+esac
diff --git a/www/htdig-devel/MESSAGE b/www/htdig-devel/MESSAGE
new file mode 100644
index 00000000000..c31620a7c0b
--- /dev/null
+++ b/www/htdig-devel/MESSAGE
@@ -0,0 +1,13 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+
+The sample ${PREFIX}/bin/rundig script may be run to create a database
+in the newly created empty directory, ${DBDIR}. A sample search
+form, which may be used to search that database, has been installed to
+${PREFIX}/share/examples/htdig/search.html.
+
+For an example of how to set up ht://Dig and integrate it with your web
+site, you may wish to examine the scripts installed into
+/var/wwwoffle/html/htdig/scripts by the www/wwwoffle package.
+
+===========================================================================
diff --git a/www/htdig-devel/Makefile b/www/htdig-devel/Makefile
new file mode 100644
index 00000000000..d89fa1606d4
--- /dev/null
+++ b/www/htdig-devel/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+
+DISTNAME= htdig-3.2.0b6
+CATEGORIES= www databases
+MASTER_SITES= http://www.htdig.org/files/ \
+ ftp://ftp.htdig.org/ \
+ ${MASTER_SITE_SOURCEFORGE:=files/} \
+ ${MASTER_SITE_SOURCEFORGE:=pub/sourceforge/htdig/} \
+ http://htdig.europeanservers.net/files/ \
+ http://www.it.htdig.org/files/ \
+ ftp://www.it.htdig.org/pub/htdig/ \
+ http://www.opdenbrouw.nl/htdig/maindocs/files/
+EXTRACT_SUFX= .tar.gz
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://htdig.sourceforge.net/
+COMMENT= WWW indexing and searching system
+
+USE_PKGINSTALL= YES
+USE_LANGUAGES= c c++
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --with-cgi-bin-dir=${PREFIX}/libexec/cgi-bin \
+ --with-common-dir=${PREFIX}/share/htdig/common \
+ --with-config-dir=${PKG_SYSCONFDIR:Q} \
+ --with-database-dir=${DBDIR:Q} \
+ --with-image-dir=${PREFIX}/share/examples/htdig \
+ --with-search-dir=${PREFIX}/share/examples/htdig
+CONFIGURE_ENV+= PDF_PARSER="${LOCALBASE}/bin/acroread"
+CXXFLAGS+= -Wno-deprecated
+CPPFLAGS+= ${CXXFLAGS}
+
+INSTALL_EXTRA_TMPL= ${PKGDIR}/INSTALL
+PKG_SYSCONFSUBDIR= htdig
+
+DBDIR?= ${VARBASE}/db/htdig
+MESSAGE_SUBST+= DBDIR=${DBDIR}
+OWN_DIRS+= ${DBDIR}
+
+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
+CONF_FILES+= ${PREFIX}/share/examples/htdig/htdig.conf \
+ ${PKG_SYSCONFDIR}/htdig.conf
+CONF_FILES+= ${PREFIX}/share/examples/htdig/mime.types \
+ ${PKG_SYSCONFDIR}/mime.types
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/htdig-devel/PLIST b/www/htdig-devel/PLIST
new file mode 100644
index 00000000000..86d5f753454
--- /dev/null
+++ b/www/htdig-devel/PLIST
@@ -0,0 +1,206 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+bin/HtFileType
+bin/htdb_dump
+bin/htdb_load
+bin/htdb_stat
+bin/htdig
+bin/htdump
+bin/htfuzzy
+bin/htload
+bin/htmerge
+bin/htnotify
+bin/htpurge
+bin/htstat
+bin/rundig
+include/htdig/Configuration.h
+include/htdig/Connection.h
+include/htdig/DB2_db.h
+include/htdig/Database.h
+include/htdig/Dictionary.h
+include/htdig/HtCodec.h
+include/htdig/HtCookie.h
+include/htdig/HtCookieInFileJar.h
+include/htdig/HtCookieJar.h
+include/htdig/HtCookieMemJar.h
+include/htdig/HtDateTime.h
+include/htdig/HtFTP.h
+include/htdig/HtFile.h
+include/htdig/HtHTTP.h
+include/htdig/HtHTTPBasic.h
+include/htdig/HtHTTPSecure.h
+include/htdig/HtHeap.h
+include/htdig/HtMaxMin.h
+include/htdig/HtNNTP.h
+include/htdig/HtPack.h
+include/htdig/HtRandom.h
+include/htdig/HtRegex.h
+include/htdig/HtRegexList.h
+include/htdig/HtRegexReplace.h
+include/htdig/HtRegexReplaceList.h
+include/htdig/HtTime.h
+include/htdig/HtVector.h
+include/htdig/HtVectorGeneric.h
+include/htdig/HtVectorGenericCode.h
+include/htdig/HtVector_String.h
+include/htdig/HtVector_int.h
+include/htdig/HtWordCodec.h
+include/htdig/HtWordType.h
+include/htdig/IntObject.h
+include/htdig/List.h
+include/htdig/Object.h
+include/htdig/ParsedString.h
+include/htdig/Queue.h
+include/htdig/QuotedStringList.h
+include/htdig/SSLConnection.h
+include/htdig/Stack.h
+include/htdig/StringList.h
+include/htdig/StringMatch.h
+include/htdig/Transport.h
+include/htdig/WordBitCompress.h
+include/htdig/WordCaseIsAStatements.h
+include/htdig/WordContext.h
+include/htdig/WordCursor.h
+include/htdig/WordDB.h
+include/htdig/WordDBCompress.h
+include/htdig/WordDBInfo.h
+include/htdig/WordDBPage.h
+include/htdig/WordKey.h
+include/htdig/WordKeyInfo.h
+include/htdig/WordList.h
+include/htdig/WordMonitor.h
+include/htdig/WordRecord.h
+include/htdig/WordRecordInfo.h
+include/htdig/WordReference.h
+include/htdig/WordStat.h
+include/htdig/WordType.h
+include/htdig/ber.h
+include/htdig/clib.h
+include/htdig/good_strtok.h
+include/htdig/gregex.h
+include/htdig/htString.h
+include/htdig/htconfig.h
+include/htdig/lib.h
+include/htdig/libdefs.h
+include/htdig/md5.h
+include/htdig/mhash_md5.h
+include/htdig/myqsort.h
+include/htdig_db/btree.h
+include/htdig_db/btree_auto.h
+include/htdig_db/btree_ext.h
+include/htdig_db/common_ext.h
+include/htdig_db/crdel_auto.h
+include/htdig_db/db.h
+include/htdig_db/db_am.h
+include/htdig_db/db_auto.h
+include/htdig_db/db_config.h
+include/htdig_db/db_dispatch.h
+include/htdig_db/db_ext.h
+include/htdig_db/db_int.h
+include/htdig_db/db_join.h
+include/htdig_db/db_page.h
+include/htdig_db/db_shash.h
+include/htdig_db/db_swap.h
+include/htdig_db/debug.h
+include/htdig_db/env_ext.h
+include/htdig_db/hash.h
+include/htdig_db/hash_auto.h
+include/htdig_db/hash_ext.h
+include/htdig_db/lock.h
+include/htdig_db/lock_ext.h
+include/htdig_db/log.h
+include/htdig_db/log_auto.h
+include/htdig_db/log_ext.h
+include/htdig_db/mp.h
+include/htdig_db/mp_ext.h
+include/htdig_db/mutex.h
+include/htdig_db/mutex_ext.h
+include/htdig_db/os.h
+include/htdig_db/os_ext.h
+include/htdig_db/os_jump.h
+include/htdig_db/qam.h
+include/htdig_db/qam_auto.h
+include/htdig_db/qam_ext.h
+include/htdig_db/queue.h
+include/htdig_db/region.h
+include/htdig_db/shqueue.h
+include/htdig_db/txn.h
+include/htdig_db/txn_auto.h
+include/htdig_db/txn_ext.h
+include/htdig_db/xa.h
+include/htdig_db/xa_ext.h
+lib/htdig/libcommon.la
+lib/htdig/libfuzzy.la
+lib/htdig/libht.la
+lib/htdig/libhtnet.la
+lib/htdig/libhtword.la
+lib/htdig_db/libhtdb.la
+libexec/cgi-bin/htsearch
+libexec/cgi-bin/qtest
+man/man1/htdig-pdfparser.1
+man/man1/htdig.1
+man/man1/htdump.1
+man/man1/htfuzzy.1
+man/man1/htload.1
+man/man1/htmerge.1
+man/man1/htnotify.1
+man/man1/htpurge.1
+man/man1/htsearch.1
+man/man1/htstat.1
+man/man1/rundig.1
+man/man8/htdigconfig.8
+share/examples/htdig/HtFileType-magic.mime
+share/examples/htdig/button1.gif
+share/examples/htdig/button1.png
+share/examples/htdig/button10.gif
+share/examples/htdig/button10.png
+share/examples/htdig/button2.gif
+share/examples/htdig/button2.png
+share/examples/htdig/button3.gif
+share/examples/htdig/button3.png
+share/examples/htdig/button4.gif
+share/examples/htdig/button4.png
+share/examples/htdig/button5.gif
+share/examples/htdig/button5.png
+share/examples/htdig/button6.gif
+share/examples/htdig/button6.png
+share/examples/htdig/button7.gif
+share/examples/htdig/button7.png
+share/examples/htdig/button8.gif
+share/examples/htdig/button8.png
+share/examples/htdig/button9.gif
+share/examples/htdig/button9.png
+share/examples/htdig/buttonl.gif
+share/examples/htdig/buttonl.png
+share/examples/htdig/buttonr.gif
+share/examples/htdig/buttonr.png
+share/examples/htdig/cookies.txt
+share/examples/htdig/htdig.conf
+share/examples/htdig/htdig.gif
+share/examples/htdig/htdig.png
+share/examples/htdig/mime.types
+share/examples/htdig/search.html
+share/examples/htdig/star.gif
+share/examples/htdig/star.png
+share/examples/htdig/star_blank.gif
+share/examples/htdig/star_blank.png
+share/htdig/common/bad_words
+share/htdig/common/english.0
+share/htdig/common/english.aff
+share/htdig/common/footer.html
+share/htdig/common/header.html
+share/htdig/common/long.html
+share/htdig/common/nomatch.html
+share/htdig/common/short.html
+share/htdig/common/synonyms
+share/htdig/common/synonyms.db
+share/htdig/common/syntax.html
+share/htdig/common/wrapper.html
+@unexec ${RM} %D/share/htdig/common/root2word.db
+@unexec ${RM} %D/share/htdig/common/word2root.db
+@dirrm share/htdig/common
+@dirrm share/htdig
+@dirrm share/examples/htdig
+@dirrm lib/htdig_db
+@dirrm lib/htdig
+@dirrm include/htdig_db
+@dirrm include/htdig
diff --git a/www/htdig-devel/distinfo b/www/htdig-devel/distinfo
new file mode 100644
index 00000000000..f3a98ab10db
--- /dev/null
+++ b/www/htdig-devel/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+
+SHA1 (htdig-3.2.0b6.tar.gz) = 106db8c137a3e8f0f5fcf24ac96e01f3515e9cae
+RMD160 (htdig-3.2.0b6.tar.gz) = 621e85920f3452bc1a28a61cf7f8b3e08808bc55
+Size (htdig-3.2.0b6.tar.gz) = 3104936 bytes
+SHA1 (patch-af) = d366aeac016505fce044e6bbdff9506fa68877ba
+SHA1 (patch-ag) = 6105b1526f31bb7b757c3ceeae286c7f2c0aa007
+SHA1 (patch-ah) = e6e87151c7bd0a44d138d431bdcc7ce7f950d1ee
+SHA1 (patch-ai) = f49a6cf6bc385e1025c7aa90cb268e2117e61dab
diff --git a/www/htdig-devel/patches/patch-af b/www/htdig-devel/patches/patch-af
new file mode 100644
index 00000000000..256b1f2652d
--- /dev/null
+++ b/www/htdig-devel/patches/patch-af
@@ -0,0 +1,14 @@
+$NetBSD: patch-af,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+
+--- htsearch/htsearch.cc.orig 2004-05-29 01:15:24.000000000 +1200
++++ htsearch/htsearch.cc
+@@ -211,8 +211,7 @@ main(int ac, char **av)
+ }
+ if (access((char*)configFile, R_OK) < 0)
+ {
+- reportError(form("Unable to read configuration file '%s'",
+- configFile.get()));
++ reportError(form("Unable to read configuration file."));
+ }
+ config->Read(configFile);
+
diff --git a/www/htdig-devel/patches/patch-ag b/www/htdig-devel/patches/patch-ag
new file mode 100644
index 00000000000..63f5f2fc04a
--- /dev/null
+++ b/www/htdig-devel/patches/patch-ag
@@ -0,0 +1,14 @@
+$NetBSD: patch-ag,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+
+--- htfuzzy/htfuzzy.cc.orig 2004-05-29 01:15:20.000000000 +1200
++++ htfuzzy/htfuzzy.cc
+@@ -127,8 +127,7 @@ main(int ac, char **av)
+ config->Defaults(&defaults[0]);
+ if (access((char*)configFile, R_OK) < 0)
+ {
+- reportError(form("Unable to find configuration file '%s'",
+- configFile.get()));
++ reportError(form("Unable to find configuration file."));
+ }
+ config->Read(configFile);
+
diff --git a/www/htdig-devel/patches/patch-ah b/www/htdig-devel/patches/patch-ah
new file mode 100644
index 00000000000..d8377c11669
--- /dev/null
+++ b/www/htdig-devel/patches/patch-ah
@@ -0,0 +1,14 @@
+$NetBSD: patch-ah,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+
+--- httools/htmerge.cc.orig 2004-05-29 01:15:25.000000000 +1200
++++ httools/htmerge.cc
+@@ -118,8 +118,7 @@ int main(int ac, char **av)
+
+ if (access((char*)configfile, R_OK) < 0)
+ {
+- reportError(form("Unable to find configuration file '%s'",
+- configfile.get()));
++ reportError(form("Unable to find configuration file."));
+ }
+
+ config->Read(configfile);
diff --git a/www/htdig-devel/patches/patch-ai b/www/htdig-devel/patches/patch-ai
new file mode 100644
index 00000000000..1715b68b46a
--- /dev/null
+++ b/www/htdig-devel/patches/patch-ai
@@ -0,0 +1,28 @@
+$NetBSD: patch-ai,v 1.1.1.1 2005/12/17 19:26:26 markd Exp $
+
+--- installdir/Makefile.in.orig 2005-12-15 01:15:44.000000000 +1300
++++ installdir/Makefile.in
+@@ -496,10 +496,10 @@ uninstall-man: uninstall-man1 uninstall-
+ install-data-local: all
+ $(mkinstalldirs) $(DESTDIR)$(DATABASE_DIR)
+ @echo "Installing default configuration files..."
+- $(mkinstalldirs) $(DESTDIR)$(CONFIG_DIR)
+- @if [ ! -f $(DESTDIR)$(CONFIG_DIR)/htdig.conf ]; then sed -e s%@\DATABASE_DIR@%$(DATABASE_DIR)% -e s%@\IMAGEDIR@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/htdig.conf >$(DESTDIR)$(CONFIG_DIR)/htdig.conf; echo $(DESTDIR)$(CONFIG_DIR)/htdig.conf;fi
+- @if [ ! -f $(DESTDIR)$(CONFIG_DIR)/mime.types ]; then cp $(top_srcdir)/installdir/mime.types $(DESTDIR)$(CONFIG_DIR)/mime.types; echo $(DESTDIR)$(CONFIG_DIR)/mime.types;fi
+- @if [ ! -f $(DESTDIR)$(CONFIG_DIR)/HtFileType-magic.mime ]; then cp $(top_srcdir)/installdir/HtFileType-magic.mime $(DESTDIR)$(CONFIG_DIR)/HtFileType-magic.mime; echo $(DESTDIR)$(CONFIG_DIR)/HtFileType-magic.mime;fi
++ $(mkinstalldirs) $(DESTDIR)$(SEARCH_DIR)
++ @if [ ! -f $(DESTDIR)$(SEARCH_DIR)/htdig.conf ]; then sed -e s%@\DATABASE_DIR@%$(DATABASE_DIR)% -e s%@\IMAGEDIR@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/htdig.conf >$(DESTDIR)$(SEARCH_DIR)/htdig.conf; echo $(DESTDIR)$(CONFIG_DIR)/htdig.conf;fi
++ @if [ ! -f $(DESTDIR)$(SEARCH_DIR)/mime.types ]; then cp $(top_srcdir)/installdir/mime.types $(DESTDIR)$(SEARCH_DIR)/mime.types; echo $(DESTDIR)$(CONFIG_DIR)/mime.types;fi
++ @if [ ! -f $(DESTDIR)$(SEARCH_DIR)/HtFileType-magic.mime ]; then cp $(top_srcdir)/installdir/HtFileType-magic.mime $(DESTDIR)$(SEARCH_DIR)/HtFileType-magic.mime; echo $(DESTDIR)$(CONFIG_DIR)/HtFileType-magic.mime;fi
+ $(mkinstalldirs) $(DESTDIR)$(SEARCH_DIR)
+ @if [ ! -f $(DESTDIR)$(SEARCH_DIR)/$(SEARCH_FORM) ]; then sed -e s%@\IMAGEDIR@%$(IMAGE_URL_PREFIX)% $(top_srcdir)/installdir/search.html >$(DESTDIR)$(SEARCH_DIR)/$(SEARCH_FORM); echo $(DESTDIR)$(SEARCH_DIR)/$(SEARCH_FORM);fi
+ $(mkinstalldirs) $(DESTDIR)$(COMMON_DIR)
+@@ -509,7 +509,7 @@ install-data-local: all
+ @for i in $(COMMONDICT); do \
+ if [ ! -f $(DESTDIR)$(COMMON_DIR)/$$i ]; then $(INSTALL_DATA) $(top_srcdir)/installdir/$$i $(DESTDIR)$(COMMON_DIR)/$$i; echo $(DESTDIR)$(COMMON_DIR)/$$i; fi; \
+ done && test -z "$$fail"
+- @if [ ! -f $(DESTDIR)$(CONFIG_DIR)/cookies.txt ]; then cp $(top_srcdir)/installdir/cookies.txt $(DESTDIR)$(CONFIG_DIR)/cookies.txt; echo $(DESTDIR)$(CONFIG_DIR)/cookies.txt;fi
++ @if [ ! -f $(DESTDIR)$(SEARCH_DIR)/cookies.txt ]; then cp $(top_srcdir)/installdir/cookies.txt $(DESTDIR)$(SEARCH_DIR)/cookies.txt; echo $(DESTDIR)$(CONFIG_DIR)/cookies.txt;fi
+ @echo "Installing images..."
+ $(mkinstalldirs) $(DESTDIR)$(IMAGE_DIR)
+ @for i in $(IMAGES); do \