aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorJoseph Koshy <jkoshy@FreeBSD.org>1998-12-01 02:15:41 +0000
committerJoseph Koshy <jkoshy@FreeBSD.org>1998-12-01 02:15:41 +0000
commitced1aaaae3cee1ad1236d20bbe1751425bea4f89 (patch)
tree74fe5c6e66c7a1e8fc42049c3a8dfa523991d904 /www
parent2a9e0a1212384be23a88a2d299b3ce78874f42a7 (diff)
downloadports-ced1aaaae3cee1ad1236d20bbe1751425bea4f89.tar.gz
ports-ced1aaaae3cee1ad1236d20bbe1751425bea4f89.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/marc-search/Makefile65
-rw-r--r--www/marc-search/distinfo1
-rw-r--r--www/marc-search/files/marc-search.conf5
-rw-r--r--www/marc-search/files/patch-aa40
-rw-r--r--www/marc-search/pkg-comment1
-rw-r--r--www/marc-search/pkg-descr9
-rw-r--r--www/marc-search/pkg-message2
-rw-r--r--www/marc-search/pkg-plist9
8 files changed, 132 insertions, 0 deletions
diff --git a/www/marc-search/Makefile b/www/marc-search/Makefile
new file mode 100644
index 000000000000..81d6364ddbf6
--- /dev/null
+++ b/www/marc-search/Makefile
@@ -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>
diff --git a/www/marc-search/distinfo b/www/marc-search/distinfo
new file mode 100644
index 000000000000..30d36a2778eb
--- /dev/null
+++ b/www/marc-search/distinfo
@@ -0,0 +1 @@
+MD5 (marc-search.4.3.tar.gz) = 5f66b60cd078e6a08a1d2c7cba776a02
diff --git a/www/marc-search/files/marc-search.conf b/www/marc-search/files/marc-search.conf
new file mode 100644
index 000000000000..27934a6c9832
--- /dev/null
+++ b/www/marc-search/files/marc-search.conf
@@ -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
diff --git a/www/marc-search/files/patch-aa b/www/marc-search/files/patch-aa
new file mode 100644
index 000000000000..31cae9b91d11
--- /dev/null
+++ b/www/marc-search/files/patch-aa
@@ -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;
diff --git a/www/marc-search/pkg-comment b/www/marc-search/pkg-comment
new file mode 100644
index 000000000000..250139eaa093
--- /dev/null
+++ b/www/marc-search/pkg-comment
@@ -0,0 +1 @@
+web interface for searching MHonArc mail archives
diff --git a/www/marc-search/pkg-descr b/www/marc-search/pkg-descr
new file mode 100644
index 000000000000..b0245ce9fe30
--- /dev/null
+++ b/www/marc-search/pkg-descr
@@ -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.
diff --git a/www/marc-search/pkg-message b/www/marc-search/pkg-message
new file mode 100644
index 000000000000..b59caee9f6e1
--- /dev/null
+++ b/www/marc-search/pkg-message
@@ -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.
diff --git a/www/marc-search/pkg-plist b/www/marc-search/pkg-plist
new file mode 100644
index 000000000000..767926641021
--- /dev/null
+++ b/www/marc-search/pkg-plist
@@ -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