summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2008-07-26 23:37:29 +0000
committerschmonz <schmonz@pkgsrc.org>2008-07-26 23:37:29 +0000
commitc2e477db4a2a763f6f2b22eceae4de202bd02b36 (patch)
treefad97fc5a84fd86c4737ddda519f493855437a93 /textproc
parenta3b44764a98e64a81272cced82670f5945b96698 (diff)
downloadpkgsrc-c2e477db4a2a763f6f2b22eceae4de202bd02b36.tar.gz
Initial import of Omega, which operates on a set of Xapian databases.
Each database is created and updated separately using either omindex or scriptindex. You can search these databases (or any other Xapian database with suitable contents) via a web front-end provided by omega, a CGI application. A search can also be done over more than one database at once.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/xapian-omega/DESCR5
-rw-r--r--textproc/xapian-omega/Makefile40
-rw-r--r--textproc/xapian-omega/PLIST22
-rw-r--r--textproc/xapian-omega/distinfo7
-rw-r--r--textproc/xapian-omega/patches/patch-aa37
-rw-r--r--textproc/xapian-omega/patches/patch-ab20
6 files changed, 131 insertions, 0 deletions
diff --git a/textproc/xapian-omega/DESCR b/textproc/xapian-omega/DESCR
new file mode 100644
index 00000000000..5da196e74a8
--- /dev/null
+++ b/textproc/xapian-omega/DESCR
@@ -0,0 +1,5 @@
+Omega operates on a set of databases. Each database is created and
+updated separately using either omindex or scriptindex. You can
+search these databases (or any other Xapian database with suitable
+contents) via a web front-end provided by omega, a CGI application.
+A search can also be done over more than one database at once.
diff --git a/textproc/xapian-omega/Makefile b/textproc/xapian-omega/Makefile
new file mode 100644
index 00000000000..d92d5dc59c7
--- /dev/null
+++ b/textproc/xapian-omega/Makefile
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/07/26 23:37:29 schmonz Exp $
+#
+
+DISTNAME= xapian-omega-1.0.7
+CATEGORIES= textproc
+MASTER_SITES= http://oligarchy.co.uk/xapian/1.0.7/
+
+MAINTAINER= schmonz@NetBSD.org
+HOMEPAGE= http://xapian.org/docs/omega/overview.html
+COMMENT= Search engine application for websites using Xapian
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+USE_LIBTOOL= yes
+USE_LANGUAGES= c c++
+
+SUBST_CLASSES+= files
+SUBST_STAGE.files= do-configure
+SUBST_FILES.files= omega.conf
+SUBST_SED.files= -e "s|@VARBASE@|${VARBASE}|g"
+SUBST_MESSAGE.files= Fixing configuration files.
+
+OWN_DIRS+= ${VARBASE}/log/${PKGBASE}
+OWN_DIRS+= ${VARBASE}/${PKGBASE}/cdb
+OWN_DIRS+= ${VARBASE}/${PKGBASE}/data
+OWN_DIRS+= ${VARBASE}/${PKGBASE}/templates
+
+EGDIR= ${PREFIX}/share/examples/${PKGBASE}
+
+CONF_FILES+= ${EGDIR}/omega.conf ${PKG_SYSCONFDIR}/omega.conf
+
+INSTALLATION_DIRS= ${EGDIR}
+
+INSTALL_TARGET= install install-dist_sysconfDATA
+INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q}
+
+BUILD_DEFS+= VARBASE
+
+.include "../../textproc/xapian/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/xapian-omega/PLIST b/textproc/xapian-omega/PLIST
new file mode 100644
index 00000000000..cd815724f5a
--- /dev/null
+++ b/textproc/xapian-omega/PLIST
@@ -0,0 +1,22 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/07/26 23:37:29 schmonz Exp $
+bin/dbi2omega
+bin/htdig2omega
+bin/mbox2omega
+bin/omindex
+bin/scriptindex
+libexec/cgi-bin/xapian-omega
+man/man1/omindex.1
+man/man1/scriptindex.1
+share/doc/xapian-omega/cgiparams.html
+share/doc/xapian-omega/omegascript.html
+share/doc/xapian-omega/overview.html
+share/doc/xapian-omega/quickstart.html
+share/doc/xapian-omega/scriptindex.html
+share/doc/xapian-omega/termprefixes.html
+share/examples/xapian-omega/omega.conf
+share/xapian-omega/htdig2omega.script
+share/xapian-omega/mbox2omega.script
+@unexec ${RMDIR} %D/libexec/cgi-bin 2>/dev/null || ${TRUE}
+@dirrm share/xapian-omega
+@dirrm share/examples/xapian-omega
+@dirrm share/doc/xapian-omega
diff --git a/textproc/xapian-omega/distinfo b/textproc/xapian-omega/distinfo
new file mode 100644
index 00000000000..406eb17b25b
--- /dev/null
+++ b/textproc/xapian-omega/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/07/26 23:37:29 schmonz Exp $
+
+SHA1 (xapian-omega-1.0.7.tar.gz) = a765c1d26f82bb25f4d1844757c0dddbc25a9f0d
+RMD160 (xapian-omega-1.0.7.tar.gz) = 28d3171dd426e692b85e0ee4329bb4a7c0d4879e
+Size (xapian-omega-1.0.7.tar.gz) = 498784 bytes
+SHA1 (patch-aa) = ce457e51d62ecc8833b1f1f7b9aaeddf6f39bf98
+SHA1 (patch-ab) = 6e845f6a61d7e36715b4a1bde217ff31ea0999e5
diff --git a/textproc/xapian-omega/patches/patch-aa b/textproc/xapian-omega/patches/patch-aa
new file mode 100644
index 00000000000..6671c34b14b
--- /dev/null
+++ b/textproc/xapian-omega/patches/patch-aa
@@ -0,0 +1,37 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/07/26 23:37:29 schmonz Exp $
+
+--- Makefile.in.orig 2008-07-16 00:46:59.000000000 -0400
++++ Makefile.in
+@@ -35,7 +35,7 @@ PRE_UNINSTALL = :
+ POST_UNINSTALL = :
+ build_triplet = @build@
+ host_triplet = @host@
+-pkglibbin_PROGRAMS = omega$(EXEEXT)
++pkglibbin_PROGRAMS = xapian-omega$(EXEEXT)
+ bin_PROGRAMS = omindex$(EXEEXT) scriptindex$(EXEEXT)
+ check_PROGRAMS = htmlparsetest$(EXEEXT) md5test$(EXEEXT) \
+ utf8converttest$(EXEEXT)
+@@ -332,10 +332,10 @@ EXTRA_DIST = \
+ xapian-omega.spec
+
+ AM_CPPFLAGS = -DCONFIGFILE_SYSTEM=\"$(sysconfdir)/omega.conf\"
+-pkglibbindir = $(pkglibdir)/bin
++pkglibbindir = $(libexecdir)/cgi-bin
+ dist_bin_SCRIPTS = dbi2omega htdig2omega mbox2omega
+ TESTS = htmlparsetest$(EXEEXT) md5test$(EXEEXT) utf8converttest$(EXEEXT)
+-omegadatadir = $(datadir)/omega
++omegadatadir = $(datadir)/xapian-omega
+ dist_omegadata_DATA = htdig2omega.script mbox2omega.script
+ dist_sysconf_DATA = omega.conf
+
+@@ -506,8 +506,8 @@ htmlparsetest$(EXEEXT): $(htmlparsetest_
+ md5test$(EXEEXT): $(md5test_OBJECTS) $(md5test_DEPENDENCIES)
+ @rm -f md5test$(EXEEXT)
+ $(CXXLINK) $(md5test_OBJECTS) $(md5test_LDADD) $(LIBS)
+-omega$(EXEEXT): $(omega_OBJECTS) $(omega_DEPENDENCIES)
+- @rm -f omega$(EXEEXT)
++xapian-omega$(EXEEXT): $(omega_OBJECTS) $(omega_DEPENDENCIES)
++ @rm -f xapian-omega$(EXEEXT)
+ $(CXXLINK) $(omega_OBJECTS) $(omega_LDADD) $(LIBS)
+ omindex$(EXEEXT): $(omindex_OBJECTS) $(omindex_DEPENDENCIES)
+ @rm -f omindex$(EXEEXT)
diff --git a/textproc/xapian-omega/patches/patch-ab b/textproc/xapian-omega/patches/patch-ab
new file mode 100644
index 00000000000..b9caf3e99b1
--- /dev/null
+++ b/textproc/xapian-omega/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/07/26 23:37:29 schmonz Exp $
+
+--- omega.conf.orig 2008-07-16 00:42:17.000000000 -0400
++++ omega.conf
+@@ -1,11 +1,11 @@
+ # Directory containing Xapian databases:
+-database_dir /var/lib/omega/data
++database_dir @VARBASE@/xapian-omega/data
+
+ # Directory containing OmegaScript templates:
+-template_dir /var/lib/omega/templates
++template_dir @VARBASE@/xapian-omega/templates
+
+ # Directory to write Omega logs to:
+-log_dir /var/log/omega
++log_dir @VARBASE@/log/xapian-omega
+
+ # Directory containing any cdb files for the $lookup OmegaScript command:
+-cdb_dir /var/lib/omega/cdb
++cdb_dir @VARBASE@/xapian-omega/cdb