summaryrefslogtreecommitdiff
path: root/www/swish-e/patches
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>1999-12-14 16:26:23 +0000
committerbouyer <bouyer@pkgsrc.org>1999-12-14 16:26:23 +0000
commit6950625751fd06a8911625b00ad0833bf74ee3b0 (patch)
treeafbf152bbc3d7c5a97ac8068fc56cb812fea3a7c /www/swish-e/patches
parent6e4b437a48d3178af5bc1f6478bdb90681f0488c (diff)
downloadpkgsrc-6950625751fd06a8911625b00ad0833bf74ee3b0.tar.gz
Initial import of FreeBSD's "swish-e" package:
Simple web indexing for humans - enhanced
Diffstat (limited to 'www/swish-e/patches')
-rw-r--r--www/swish-e/patches/patch-aa38
-rw-r--r--www/swish-e/patches/patch-ab21
2 files changed, 59 insertions, 0 deletions
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