summaryrefslogtreecommitdiff
path: root/www/swish++/files
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-01-13 04:19:27 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-01-13 04:19:27 +0000
commitd5cd0b4a76977b279ea2383b345fc4a6a5366db5 (patch)
tree37d3e63809d211d21054b80f2d5d9c72fce42260 /www/swish++/files
parentUpdate to 1.2.5.1. This is the latest version on mutt's "stable" (diff)
add swish++ 5.6
Simple Web Indexing System for Humans: C++ version
Notes
Notes: svn path=/head/; revision=53002
Diffstat (limited to 'www/swish++/files')
-rw-r--r--www/swish++/files/patch-GNUmakefile18
-rw-r--r--www/swish++/files/patch-config::config.mk56
-rw-r--r--www/swish++/files/patch-searchd.in11
-rw-r--r--www/swish++/files/patch-searchmonitor.in11
-rw-r--r--www/swish++/files/swish++.sh19
5 files changed, 115 insertions, 0 deletions
diff --git a/www/swish++/files/patch-GNUmakefile b/www/swish++/files/patch-GNUmakefile
new file mode 100644
index 000000000000..aeebede8162f
--- /dev/null
+++ b/www/swish++/files/patch-GNUmakefile
@@ -0,0 +1,18 @@
+--- GNUmakefile.orig Wed Dec 19 12:24:07 2001
++++ GNUmakefile Sun Jan 13 12:04:59 2002
+@@ -192,13 +192,13 @@
+ cd $(I_BIN) && $(STRIP) $(CPP_TARGET)
+
+ install_lib: $(I_LIB)
+- $(INSTALL) $(I_OWNER) $(I_GROUP) $(I_MODE) $(LIB_TARGET) $(I_LIB)
++ $(INSTALL) $(I_OWNER) $(I_GROUP) $(I_MODE) $(LIB_TARGET) $(I_LIB)/perl5/site_perl/${PERL_VER}
+
+ install_man:
+ @$(MAKE) -C man install
+
+ install_conf:
+- $(INSTALL) $(I_OWNER) $(I_GROUP) $(I_MODE) swish++.conf /etc
++ $(INSTALL) $(I_OWNER) $(I_GROUP) $(I_MODE) swish++.conf ${PREFIX}/etc
+
+ $(I_BIN) $(I_LIB):
+ $(MKDIR) $@
diff --git a/www/swish++/files/patch-config::config.mk b/www/swish++/files/patch-config::config.mk
new file mode 100644
index 000000000000..a07fea256706
--- /dev/null
+++ b/www/swish++/files/patch-config::config.mk
@@ -0,0 +1,56 @@
+--- config/config.mk.orig Sun Jan 13 11:38:36 2002
++++ config/config.mk Sun Jan 13 11:41:51 2002
+@@ -35,8 +35,8 @@
+ #
+ ###############################################################################
+
+-#FREE_BSD:= -DFreeBSD
+-LINUX:= -DLinux
++FREE_BSD:= -DFreeBSD
++#LINUX:= -DLinux
+ #SOLARIS:= -DSolaris
+ #WIN32:= -DWIN32
+
+@@ -87,7 +87,6 @@
+ ifdef SEARCH_DAEMON
+
+ ifdef FREE_BSD
+-PTHREAD_LIB:= -pthread
+ else
+ PTHREAD_LIB:= -lpthread
+ endif
+@@ -118,7 +117,6 @@
+ # The command to remove files recursively and ignore errors;
+ # usually "rm -fr" for Unix or "erase" for Windows.
+
+-PERL:= /usr/local/bin/perl
+ # The full path to the Perl 5 executable; usually "/bin/perl" or
+ # "/usr/local/bin/perl" for Unix or "\Perl\bin\perl" for
+ # Windows. You need this only if you intend on using
+@@ -145,15 +143,14 @@
+ #
+ ###############################################################################
+
+-#CC:= g++
+-CC:= /usr/local/bin/g++
++CC:= g++
+ # The C++ compiler you are using; usually "CC" or "g++".
+
+ #DEBUG:= true
+ ifdef DEBUG
+ OPTIM:= -g
+ else
+-OPTIM:= -O2
++OPTIM:= ${CXXFLAGS}
+ # The optimization level. Many compilers allow a digit after the
+ # O to specify the level of optimization; if so, set yours to the
+ # highest number your compiler allows without eliciting problems
+@@ -196,7 +193,7 @@
+ INSTALL:= $(ROOT)/install-sh
+ # Install command; usually "$(ROOT)/install-sh".
+
+-I_ROOT:= /usr/local
++I_ROOT:= ${PREFIX}
+ # The top-level directory of where SWISH++ will be installed.
+
+ I_BIN:= $(I_ROOT)/bin
diff --git a/www/swish++/files/patch-searchd.in b/www/swish++/files/patch-searchd.in
new file mode 100644
index 000000000000..2ac66f21f004
--- /dev/null
+++ b/www/swish++/files/patch-searchd.in
@@ -0,0 +1,11 @@
+--- searchd.in.orig Sun Jan 13 12:00:35 2002
++++ searchd.in Sun Jan 13 12:00:53 2002
+@@ -27,7 +27,7 @@
+ SEARCH="search"
+ SEARCH_PATH="%%I_BIN%%/$SEARCH"
+ SEARCHMONITOR="%%I_BIN%%/searchmonitor"
+-CONF_FILE="/etc/swish++.conf"
++CONF_FILE="%%PREFIX%%/etc/swish++.conf"
+ PID_FILE_DEFAULT="/var/run/search.pid"
+
+ ##
diff --git a/www/swish++/files/patch-searchmonitor.in b/www/swish++/files/patch-searchmonitor.in
new file mode 100644
index 000000000000..5e3b5e79972d
--- /dev/null
+++ b/www/swish++/files/patch-searchmonitor.in
@@ -0,0 +1,11 @@
+--- searchmonitor.in.orig Sun Jan 13 12:01:32 2002
++++ searchmonitor.in Sun Jan 13 12:01:47 2002
+@@ -63,7 +63,7 @@
+ CONF_FILE="swish++.conf"
+ if [ ! -f "$CONF_FILE" ]
+ then
+- CONF_FILE="/etc/$CONF_FILE"
++ CONF_FILE="%%PREFIX%%/etc/$CONF_FILE"
+ [ -f "$CONF_FILE" ] ||
+ { echo "$ME: no configuration file found" >&2; exit 3; }
+ fi
diff --git a/www/swish++/files/swish++.sh b/www/swish++/files/swish++.sh
new file mode 100644
index 000000000000..2ed3b933da79
--- /dev/null
+++ b/www/swish++/files/swish++.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ [ -x ${PREFIX}/bin/searchmonitor -a -f ${PREFIX}/etc/swish++.conf ] && ${PREFIX}/bin/searchmonitor -c ${PREFIX}/etc/swish++.conf -s ${PREFIX}/search &
+ ;;
+stop)
+ ;;
+*)
+ echo "Usage: `basename $0` {start|stop}" >&2
+ ;;
+esac
+
+exit 0