mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Import of a port for `marc-search' which offers a web based search
interface for the MHonArc mail archiver. Reviewed by: jkoshy Submitted by: Sheldon Hearn <axl@iafrica.com> (maintainer)
This commit is contained in:
parent
2a9e0a1212
commit
ced1aaaae3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14970
65
www/marc-search/Makefile
Normal file
65
www/marc-search/Makefile
Normal file
@ -0,0 +1,65 @@
|
||||
# New ports collection makefile for: marc-search
|
||||
# Version required: 4.3
|
||||
# Date created: 25 November 1998
|
||||
# Whom: Sheldon Hearn <axl@iafrica.com>
|
||||
#
|
||||
# $Id$
|
||||
#
|
||||
|
||||
DISTNAME= marc-search.4.3
|
||||
PKGNAME= marc-search-4.3
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://www.oac.uci.edu/indiv/ehood/contrib/marc-search/
|
||||
|
||||
MAINTAINER= axl@iafrica.com
|
||||
|
||||
RUN_DEPENDS= mhonarc:${PORTSDIR}/www/mhonarc \
|
||||
${PREFIX}/lib/perl5/site_perl/${PERL_VER}/CGI_Lite.pm:${PORTSDIR}/www/p5-CGI_Lite
|
||||
|
||||
USE_PERL5= YES
|
||||
NO_BUILD= YES
|
||||
NO_PACKAGE= requires site-specific configuration at build time
|
||||
IS_INTERACTIVE= requires site-specific configuration at build time
|
||||
|
||||
# You must tailor these variables to match your sites config
|
||||
# PUB_HTML=public_html # subdir name for "~user" usage
|
||||
# DOCROOT=${PREFIX}/www/data # web page hierarchy root
|
||||
# SCRIPTDIR=/cgi-bin # script directory name
|
||||
HOSTNAME!= hostname
|
||||
|
||||
MARC_LIBS= Marc.pm Marc/Form.pm Marc/Search.pm
|
||||
|
||||
do-configure:
|
||||
.if !defined(PUB_HTML) || !defined(DOCROOT) || !defined(SCRIPTDIR)
|
||||
@echo "You must tailor the port Makefile and set PUB_HTML, DOCROOT,"
|
||||
@echo "and SCRIPTDIR to match your site configuration."
|
||||
@false
|
||||
.else
|
||||
${CP} ${FILESDIR}/marc-search.conf ${WRKSRC}/
|
||||
for i in marc-search.cgi marc-search.conf ; do \
|
||||
${SED} -e 's#XX_PERL_PATH_XX#${PERL}#' \
|
||||
-e 's#XX_PERL_VER_XX#${PERL_VER}#' \
|
||||
-e 's#XX_PREFIX_XX#${PREFIX}#' \
|
||||
-e 's#XX_PUB_HTML_XX#${PUB_HTML}#' \
|
||||
-e 's#XX_HOSTNAME_XX#${HOSTNAME}#' \
|
||||
-e 's#XX_DOCROOT_XX#${DOCROOT}#' \
|
||||
-e 's#XX_SCRIPTDIR_XX#${SCRIPTDIR}#' \
|
||||
< ${WRKSRC}/$${i} \
|
||||
> ${WRKSRC}/$${i}.tmp \
|
||||
&& ${MV} ${WRKSRC}/$${i}.tmp ${WRKSRC}/$${i} ; \
|
||||
done
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${PREFIX}/lib/perl5/site_perl/${PERL_VER}/Marc \
|
||||
${PREFIX}/share/doc/marc-search
|
||||
.for i in ${MARC_LIBS}
|
||||
${INSTALL_DATA} ${WRKSRC}/${i} \
|
||||
${PREFIX}/lib/perl5/site_perl/${PERL_VER}/${i}
|
||||
.endfor
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/marc-search.cgi ${PREFIX}/www/cgi-bin
|
||||
${INSTALL_DATA} ${WRKSRC}/marc-search.conf ${PREFIX}/etc
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/marc-search.html ${PREFIX}/www/data
|
||||
${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/marc-search/
|
||||
|
||||
.include <bsd.port.mk>
|
1
www/marc-search/distinfo
Normal file
1
www/marc-search/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (marc-search.4.3.tar.gz) = 5f66b60cd078e6a08a1d2c7cba776a02
|
5
www/marc-search/files/marc-search.conf
Normal file
5
www/marc-search/files/marc-search.conf
Normal file
@ -0,0 +1,5 @@
|
||||
server = http://XX_HOSTNAME_XX
|
||||
help = ${server}/marc-search.html
|
||||
doc_root = XX_DOCROOT_XX
|
||||
script = ${server}XX_SCRIPTDIR_XX/marc-search.cgi
|
||||
usersubdir = XX_PUB_HTML_XX
|
40
www/marc-search/files/patch-aa
Normal file
40
www/marc-search/files/patch-aa
Normal file
@ -0,0 +1,40 @@
|
||||
--- marc-search.cgi.orig Fri Apr 4 22:06:42 1997
|
||||
+++ marc-search.cgi Sat Nov 28 17:59:27 1998
|
||||
@@ -1,3 +1,3 @@
|
||||
-#!/dcs/bin/perl5 -w
|
||||
+#!/usr/local/bin/perl
|
||||
##------------------------------------------------------------------------##
|
||||
## File:
|
||||
@@ -15,14 +15,13 @@
|
||||
## Configurable options - described in great detail in the POD - READ IT!
|
||||
|
||||
-my $server = 'http://eee.uci.edu';
|
||||
-my $help = $server . '/toolbox/marc-search.html';
|
||||
-my $doc_root = '/Web/doc';
|
||||
-my $script = $server . '/cgi-bin/marc-search.edf.cgi';
|
||||
-my $usersubdir = 'public_html'; # Tells which subdirectory of
|
||||
- # a user's home directory
|
||||
- # (file system) corresponds to
|
||||
- # http://server/~user/ . (Only
|
||||
- # needed if marc-search
|
||||
- # supports URLs with tildes.)
|
||||
+require AppCfg;
|
||||
+
|
||||
+my ($server, $help, $doc_root, $script, $usersubdir);
|
||||
+my $my_config = new AppCfg "/usr/local/etc/marc-search.conf";
|
||||
+$server = $my_config->get_scalar("server");
|
||||
+$help = $my_config->get_scalar("help");
|
||||
+$doc_root = $my_config->get_scalar("doc_root");
|
||||
+$script = $my_config->get_scalar("script");
|
||||
+$usersubdir = $my_config->get_scalar("usersubdir");
|
||||
|
||||
##------------------------------------------------------------------------##
|
||||
@@ -30,6 +29,6 @@
|
||||
|
||||
# This next line tells perl where the CGI_Lite module was installed.
|
||||
-use lib '/users/asc/friedman/www/cgi-bin';
|
||||
-use lib '/Web/httpd/cgi-bin';
|
||||
+use lib '/usr/local/lib/perl5/site_perl/5.005';
|
||||
+use lib '/usr/local/lib/perl5/site_perl/5.005/Marc';
|
||||
use CGI_Lite; # Substitute other CGI libraries if need be (see next section)
|
||||
use strict;
|
1
www/marc-search/pkg-comment
Normal file
1
www/marc-search/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
web interface for searching MHonArc mail archives
|
9
www/marc-search/pkg-descr
Normal file
9
www/marc-search/pkg-descr
Normal file
@ -0,0 +1,9 @@
|
||||
Searches e-mail archives created by Earl Hood's MHonArc. Search
|
||||
options include "From," "Subject," "Date," and "Message Body."
|
||||
Returns results in a visually useful format, with matches printed
|
||||
in bold. Search terms can be treated as a literal phrase or as
|
||||
words to be joined by 'AND' or 'OR' booleans. The full suite of
|
||||
Perl5 regular expressions is allowed. Allows user to set a limit
|
||||
for the number of records to return on each page, with an option
|
||||
to continue the search or start a new one. NOTE: searches are
|
||||
non-indexed and therefore inefficient.
|
2
www/marc-search/pkg-message
Normal file
2
www/marc-search/pkg-message
Normal file
@ -0,0 +1,2 @@
|
||||
Please check the detault settings in the installed marc-search.conf to
|
||||
ensure that they match those of your Apache installation.
|
9
www/marc-search/pkg-plist
Normal file
9
www/marc-search/pkg-plist
Normal file
@ -0,0 +1,9 @@
|
||||
www/cgi-bin/marc-search.cgi
|
||||
www/data/marc-search.html
|
||||
etc/marc-search.conf
|
||||
share/doc/marc-search/README
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Marc.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Marc/Form.pm
|
||||
lib/perl5/site_perl/%%PERL_VER%%/Marc/Search.pm
|
||||
@dirrm share/doc/marc-search
|
||||
@dirrm lib/perl5/site_perl/%%PERL_VER%%/Marc
|
Loading…
Reference in New Issue
Block a user