mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
CGI search application built on Xapian
This package contains two index building utilities (omindex and scriptindex) and a CGI search application (omega). These use the Xapian search library to provide a search over a collection of documents. Approved by: erwin (mentor)
This commit is contained in:
parent
54d87846f6
commit
e05b7a4cf2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216367
@ -1436,6 +1436,7 @@
|
|||||||
SUBDIR += wwwoffle
|
SUBDIR += wwwoffle
|
||||||
SUBDIR += wwwstat
|
SUBDIR += wwwstat
|
||||||
SUBDIR += wyvern
|
SUBDIR += wyvern
|
||||||
|
SUBDIR += xapian-omega
|
||||||
SUBDIR += xaraya
|
SUBDIR += xaraya
|
||||||
SUBDIR += xcache
|
SUBDIR += xcache
|
||||||
SUBDIR += xfce4-smartbookmark-plugin
|
SUBDIR += xfce4-smartbookmark-plugin
|
||||||
|
66
www/xapian-omega/Makefile
Normal file
66
www/xapian-omega/Makefile
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# New ports collection makefile for: xapian-omega
|
||||||
|
# Date created: 05 Jul 2008
|
||||||
|
# Whom: Henrik Brix Andersen <brix@FreeBSD.org>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= xapian-omega
|
||||||
|
PORTVERSION= 1.0.6
|
||||||
|
CATEGORIES= www
|
||||||
|
MASTER_SITES= http://oligarchy.co.uk/xapian/${PORTVERSION}/ \
|
||||||
|
${MASTER_SITE_LOCAL}
|
||||||
|
MASTER_SITE_SUBDIR= brix
|
||||||
|
|
||||||
|
MAINTAINER= brix@FreeBSD.org
|
||||||
|
COMMENT= CGI search application built on Xapian
|
||||||
|
|
||||||
|
LIB_DEPENDS= xapian.19:${PORTSDIR}/databases/xapian-core
|
||||||
|
|
||||||
|
GNU_CONFIGURE= yes
|
||||||
|
USE_LDCONFIG= yes
|
||||||
|
USE_PERL5_RUN= yes
|
||||||
|
|
||||||
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||||
|
LDFLAGS="-L${LOCALBASE}/lib"
|
||||||
|
|
||||||
|
MAN1= omindex.1 scriptindex.1
|
||||||
|
|
||||||
|
MORE_PORTDOCS= AUTHORS ChangeLog NEWS README TODO
|
||||||
|
PORTDOCS= cgiparams.html omegascript.html overview.html \
|
||||||
|
quickstart.html scriptindex.html termprefixes.html \
|
||||||
|
${MORE_PORTDOCS}
|
||||||
|
PORTEXAMPLES= omega.conf
|
||||||
|
|
||||||
|
OPTIONS= ICONV "Enable iconv character set conversion support" On
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if defined(WITH_ICONV)
|
||||||
|
USE_ICONV= yes
|
||||||
|
CONFIGURE_ARGS+= --with-iconv
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-iconv
|
||||||
|
.endif
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} \
|
||||||
|
-e 's|^\(dist_sysconf_DATA\ =\ omega\.conf\)|#\1|' \
|
||||||
|
-e "s|^\(pkglibbindir\)\ =.*/bin|\1\ =\ \$$(prefix)/${WWWDIR_REL}/cgi-bin|" \
|
||||||
|
${WRKSRC}/Makefile.in
|
||||||
|
.if defined(NOPORTDOCS)
|
||||||
|
@${REINPLACE_CMD} \
|
||||||
|
-e 's|^\(SUBDIRS\ =\ \.\) docs|\1|' \
|
||||||
|
${WRKSRC}/Makefile.in
|
||||||
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
.if !defined(NOPORTDOCS)
|
||||||
|
${MKDIR} ${DOCSDIR}
|
||||||
|
${INSTALL_DATA} ${MORE_PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
|
||||||
|
.endif
|
||||||
|
.if !defined(NOPORTEXAMPLES)
|
||||||
|
${MKDIR} ${EXAMPLESDIR}
|
||||||
|
${INSTALL_DATA} ${PORTEXAMPLES:S@^@${WRKSRC}/@} ${EXAMPLESDIR}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.post.mk>
|
3
www/xapian-omega/distinfo
Normal file
3
www/xapian-omega/distinfo
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 (xapian-omega-1.0.6.tar.gz) = 7746c428d7081e637aecbeef23432cda
|
||||||
|
SHA256 (xapian-omega-1.0.6.tar.gz) = fd316c38c46f621d6fe5f26f316abe2dda2e8263b588b41c41f4b8f86918b850
|
||||||
|
SIZE (xapian-omega-1.0.6.tar.gz) = 490233
|
10
www/xapian-omega/files/patch-runfilter.cc
Normal file
10
www/xapian-omega/files/patch-runfilter.cc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- runfilter.cc.orig 2008-07-03 21:16:54.000000000 +0200
|
||||||
|
+++ runfilter.cc 2008-07-03 21:18:48.000000000 +0200
|
||||||
|
@@ -25,6 +25,7 @@
|
||||||
|
#include "safeerrno.h"
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
+#include <signal.h>
|
||||||
|
#include "safefcntl.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_TIME_H
|
6
www/xapian-omega/pkg-descr
Normal file
6
www/xapian-omega/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
This package contains two index building utilities (omindex and
|
||||||
|
scriptindex) and a CGI search application (omega). These use the
|
||||||
|
Xapian search library to provide a search over a collection of
|
||||||
|
documents.
|
||||||
|
|
||||||
|
WWW: http://www.xapian.org/
|
11
www/xapian-omega/pkg-plist
Normal file
11
www/xapian-omega/pkg-plist
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
bin/dbi2omega
|
||||||
|
bin/htdig2omega
|
||||||
|
bin/mbox2omega
|
||||||
|
bin/omindex
|
||||||
|
bin/scriptindex
|
||||||
|
www/xapian-omega/cgi-bin/omega
|
||||||
|
share/omega/htdig2omega.script
|
||||||
|
share/omega/mbox2omega.script
|
||||||
|
@dirrm www/xapian-omega/cgi-bin
|
||||||
|
@dirrm www/xapian-omega
|
||||||
|
@dirrm share/omega
|
66
www/xapian-omega10/Makefile
Normal file
66
www/xapian-omega10/Makefile
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
# New ports collection makefile for: xapian-omega
|
||||||
|
# Date created: 05 Jul 2008
|
||||||
|
# Whom: Henrik Brix Andersen <brix@FreeBSD.org>
|
||||||
|
#
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= xapian-omega
|
||||||
|
PORTVERSION= 1.0.6
|
||||||
|
CATEGORIES= www
|
||||||
|
MASTER_SITES= http://oligarchy.co.uk/xapian/${PORTVERSION}/ \
|
||||||
|
${MASTER_SITE_LOCAL}
|
||||||
|
MASTER_SITE_SUBDIR= brix
|
||||||
|
|
||||||
|
MAINTAINER= brix@FreeBSD.org
|
||||||
|
COMMENT= CGI search application built on Xapian
|
||||||
|
|
||||||
|
LIB_DEPENDS= xapian.19:${PORTSDIR}/databases/xapian-core
|
||||||
|
|
||||||
|
GNU_CONFIGURE= yes
|
||||||
|
USE_LDCONFIG= yes
|
||||||
|
USE_PERL5_RUN= yes
|
||||||
|
|
||||||
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||||
|
LDFLAGS="-L${LOCALBASE}/lib"
|
||||||
|
|
||||||
|
MAN1= omindex.1 scriptindex.1
|
||||||
|
|
||||||
|
MORE_PORTDOCS= AUTHORS ChangeLog NEWS README TODO
|
||||||
|
PORTDOCS= cgiparams.html omegascript.html overview.html \
|
||||||
|
quickstart.html scriptindex.html termprefixes.html \
|
||||||
|
${MORE_PORTDOCS}
|
||||||
|
PORTEXAMPLES= omega.conf
|
||||||
|
|
||||||
|
OPTIONS= ICONV "Enable iconv character set conversion support" On
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if defined(WITH_ICONV)
|
||||||
|
USE_ICONV= yes
|
||||||
|
CONFIGURE_ARGS+= --with-iconv
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-iconv
|
||||||
|
.endif
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${REINPLACE_CMD} \
|
||||||
|
-e 's|^\(dist_sysconf_DATA\ =\ omega\.conf\)|#\1|' \
|
||||||
|
-e "s|^\(pkglibbindir\)\ =.*/bin|\1\ =\ \$$(prefix)/${WWWDIR_REL}/cgi-bin|" \
|
||||||
|
${WRKSRC}/Makefile.in
|
||||||
|
.if defined(NOPORTDOCS)
|
||||||
|
@${REINPLACE_CMD} \
|
||||||
|
-e 's|^\(SUBDIRS\ =\ \.\) docs|\1|' \
|
||||||
|
${WRKSRC}/Makefile.in
|
||||||
|
.endif
|
||||||
|
|
||||||
|
post-install:
|
||||||
|
.if !defined(NOPORTDOCS)
|
||||||
|
${MKDIR} ${DOCSDIR}
|
||||||
|
${INSTALL_DATA} ${MORE_PORTDOCS:S@^@${WRKSRC}/@} ${DOCSDIR}
|
||||||
|
.endif
|
||||||
|
.if !defined(NOPORTEXAMPLES)
|
||||||
|
${MKDIR} ${EXAMPLESDIR}
|
||||||
|
${INSTALL_DATA} ${PORTEXAMPLES:S@^@${WRKSRC}/@} ${EXAMPLESDIR}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.include <bsd.port.post.mk>
|
3
www/xapian-omega10/distinfo
Normal file
3
www/xapian-omega10/distinfo
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
MD5 (xapian-omega-1.0.6.tar.gz) = 7746c428d7081e637aecbeef23432cda
|
||||||
|
SHA256 (xapian-omega-1.0.6.tar.gz) = fd316c38c46f621d6fe5f26f316abe2dda2e8263b588b41c41f4b8f86918b850
|
||||||
|
SIZE (xapian-omega-1.0.6.tar.gz) = 490233
|
10
www/xapian-omega10/files/patch-runfilter.cc
Normal file
10
www/xapian-omega10/files/patch-runfilter.cc
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- runfilter.cc.orig 2008-07-03 21:16:54.000000000 +0200
|
||||||
|
+++ runfilter.cc 2008-07-03 21:18:48.000000000 +0200
|
||||||
|
@@ -25,6 +25,7 @@
|
||||||
|
#include "safeerrno.h"
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
+#include <signal.h>
|
||||||
|
#include "safefcntl.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_TIME_H
|
6
www/xapian-omega10/pkg-descr
Normal file
6
www/xapian-omega10/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
This package contains two index building utilities (omindex and
|
||||||
|
scriptindex) and a CGI search application (omega). These use the
|
||||||
|
Xapian search library to provide a search over a collection of
|
||||||
|
documents.
|
||||||
|
|
||||||
|
WWW: http://www.xapian.org/
|
11
www/xapian-omega10/pkg-plist
Normal file
11
www/xapian-omega10/pkg-plist
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
bin/dbi2omega
|
||||||
|
bin/htdig2omega
|
||||||
|
bin/mbox2omega
|
||||||
|
bin/omindex
|
||||||
|
bin/scriptindex
|
||||||
|
www/xapian-omega/cgi-bin/omega
|
||||||
|
share/omega/htdig2omega.script
|
||||||
|
share/omega/mbox2omega.script
|
||||||
|
@dirrm www/xapian-omega/cgi-bin
|
||||||
|
@dirrm www/xapian-omega
|
||||||
|
@dirrm share/omega
|
Loading…
Reference in New Issue
Block a user