summaryrefslogtreecommitdiff
path: root/www/swish-e
diff options
context:
space:
mode:
authorbouyer <bouyer>1999-12-14 16:26:23 +0000
committerbouyer <bouyer>1999-12-14 16:26:23 +0000
commit1237b8884838a559e2206bb7e190b23903d45a09 (patch)
treeafbf152bbc3d7c5a97ac8068fc56cb812fea3a7c /www/swish-e
parentc0c19c842c1d0bb942d9090ca9371a7ab2ef214b (diff)
downloadpkgsrc-1237b8884838a559e2206bb7e190b23903d45a09.tar.gz
Initial import of FreeBSD's "swish-e" package:
Simple web indexing for humans - enhanced
Diffstat (limited to 'www/swish-e')
-rw-r--r--www/swish-e/Makefile27
-rw-r--r--www/swish-e/files/md51
-rw-r--r--www/swish-e/patches/patch-aa38
-rw-r--r--www/swish-e/patches/patch-ab21
-rw-r--r--www/swish-e/pkg/COMMENT1
-rw-r--r--www/swish-e/pkg/DESCR9
-rw-r--r--www/swish-e/pkg/PLIST7
7 files changed, 104 insertions, 0 deletions
diff --git a/www/swish-e/Makefile b/www/swish-e/Makefile
new file mode 100644
index 00000000000..c665a69f797
--- /dev/null
+++ b/www/swish-e/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: swish-e
+# Version required: 1.3.2
+# Date created: 23 Feb 98
+# Whom: Daniel O'Connor <doconnor@gsoft.com.au>
+#
+# $FreeBSD: ports/www/swish-e/Makefile,v 1.3 1999/08/31 02:43:18 peter Exp $
+#
+
+DISTNAME= swish-efiles.1.3.2
+PKGNAME= swish-e-1.3.2
+CATEGORIES= www textproc
+MASTER_SITES= ftp://sunsite.berkeley.edu/pub/swish-e/
+
+MAINTAINER= doconnor@gsoft.com.au
+
+WRKSRC= ${WRKDIR}/src
+USE_GMAKE= yes
+
+do-install:
+ $(INSTALL_PROGRAM) ${WRKSRC}/swish-e ${PREFIX}/bin
+ $(MKDIR) -p $(PREFIX)/share/examples/swish-e
+ $(INSTALL_DATA) ${WRKSRC}/user.config ${PREFIX}/share/examples/swish-e
+ $(INSTALL_DATA) ${WRKSRC}/test.html ${PREFIX}/share/examples/swish-e
+ $(INSTALL_DATA) ${WRKSRC}/swishspider ${PREFIX}/share/examples/swish-e
+ $(INSTALL_DATA) ${WRKSRC}/README-SWISH-E ${PREFIX}/share/examples/swish-e
+
+.include <bsd.port.mk>
diff --git a/www/swish-e/files/md5 b/www/swish-e/files/md5
new file mode 100644
index 00000000000..4033c698c5f
--- /dev/null
+++ b/www/swish-e/files/md5
@@ -0,0 +1 @@
+MD5 (swish-efiles.1.3.2.tar.gz) = 42327a93924751b0cebec24aba1eadb0
diff --git a/www/swish-e/patches/patch-aa b/www/swish-e/patches/patch-aa
new file mode 100644
index 00000000000..0d59a382d76
--- /dev/null
+++ b/www/swish-e/patches/patch-aa
@@ -0,0 +1,38 @@
+--- fs.c.old Fri Nov 27 13:30:13 1998
++++ fs.c Fri Nov 27 13:32:19 1998
+@@ -539,23 +539,28 @@
+ int ishtml(filename)
+ char *filename;
+ {
+- char *c, suffix[MAXSUFFIXLEN];
++ char *c, *d;
+
++ d = (char *) strrchr(filename, '/');
+ c = (char *) strrchr(filename, '.');
+
++ /* make sure the . is part of the filename */
++ if (d != NULL && c < d) {
++ return 0;
++ }
++
+ if (c == NULL)
+ return 0;
+- strcpy(suffix, c + 1);
+- if (suffix[0] == '\0')
++ if (c++ == '\0')
+ return 0;
+
+- if (!strncmp(suffix, "htm", 3))
++ if (!strncmp(c, "htm", 3))
+ return 1;
+- else if (!strncmp(suffix, "HTM", 3))
++ else if (!strncmp(c, "HTM", 3))
+ return 1;
+- else if (!strncmp(suffix, "shtml", 5))
++ else if (!strncmp(c, "shtml", 5))
+ return 1;
+- else if (!strncmp(suffix, "SHTML", 5))
++ else if (!strncmp(c, "SHTML", 5))
+ return 1;
+ return 0;
+ }
diff --git a/www/swish-e/patches/patch-ab b/www/swish-e/patches/patch-ab
new file mode 100644
index 00000000000..6dc0223b7a5
--- /dev/null
+++ b/www/swish-e/patches/patch-ab
@@ -0,0 +1,21 @@
+*** Makefile.orig Mon May 3 12:23:45 1999
+--- Makefile Mon May 3 12:24:04 1999
+***************
+*** 8,15 ****
+ #CC= /opt/SUNWspro/bin/cc
+ #CC= /usr/ccs/bin/ucbcc
+ #CC = /vol/moby/moby_a/gnu/sun4_sunos5.1/bin/gcc
+! CC = /usr/local/bin/gcc
+! #CC = gcc
+
+ #CFLAGS = -Xa
+ CFLAGS= -O2
+--- 8,15 ----
+ #CC= /opt/SUNWspro/bin/cc
+ #CC= /usr/ccs/bin/ucbcc
+ #CC = /vol/moby/moby_a/gnu/sun4_sunos5.1/bin/gcc
+! #CC = /usr/local/bin/gcc
+! CC = gcc
+
+ #CFLAGS = -Xa
+ CFLAGS= -O2
diff --git a/www/swish-e/pkg/COMMENT b/www/swish-e/pkg/COMMENT
new file mode 100644
index 00000000000..e1484650b1e
--- /dev/null
+++ b/www/swish-e/pkg/COMMENT
@@ -0,0 +1 @@
+Simple web indexing for humans - enhanced
diff --git a/www/swish-e/pkg/DESCR b/www/swish-e/pkg/DESCR
new file mode 100644
index 00000000000..8987301db41
--- /dev/null
+++ b/www/swish-e/pkg/DESCR
@@ -0,0 +1,9 @@
+SWISH-Enhanced is a fast, powerful, flexible, and easy to use system for
+indexing collections of Web pages or other text files. Key features include
+the ability to limit searches to certain HTML tags (META, TITLE, comments,
+etc.). The SWISH-E software is free, and includes a package of Perl programs
+that enable anyone who is authorized to create and maintain their own indexes
+(AutoSwish). SWISH-E is an enhanced version of SWISH, which was originally
+written by Kevin Hughes and modified and released with his permission.
+
+http://sunsite.berkeley.edu/SWISH-E/
diff --git a/www/swish-e/pkg/PLIST b/www/swish-e/pkg/PLIST
new file mode 100644
index 00000000000..160e6903c1b
--- /dev/null
+++ b/www/swish-e/pkg/PLIST
@@ -0,0 +1,7 @@
+share/examples/swish-e/user.config
+share/examples/swish-e/test.html
+share/examples/swish-e/swishspider
+share/examples/swish-e/README-SWISH-E
+bin/swish-e
+@dirrm share/examples/swish-e
+@dirrm share/examples