#
-# Makefile for the Harvest Object Cache server
+# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.in,v 1.19 1996/04/16 05:05:16 wessels Exp $
+# $Id: Makefile.in,v 1.20 1996/04/16 16:35:25 wessels Exp $
#
# Uncomment and customize the following to suit your needs:
#
SHELL = /bin/sh
-## AIX users might need to use these values
-#
-#CC = cc
-#XTRA_CFLAGS = -D_HARVEST_HPUX_ -d_AIX -D_ALL_SOURCE
-#
-
-## LINUX users might need to use these values
-#
-#XTRA_CFLAGS = -D_ALL_SOURCE
-
INCLUDE = -I. -I../include # MUST use -I. first
CFLAGS = $(STD_CFLAGS) $(XTRA_CFLAGS) $(INCLUDE) $(DEFINES)
LDFLAGS = $(STD_LDFLAGS)
fi
clean:
- -rm -rf *.o *pure_* core $(PROGS) $(UTILS) $(CGIPROGS) squid.conf
+ -rm -rf *.o *pure_* core $(PROGS) $(UTILS) $(CGIPROGS)
realclean: clean
- -rm -f Makefile
+ -rm -f Makefile squid.conf
-/* $Id: cachemgr.cc,v 1.6 1996/04/16 05:05:18 wessels Exp $ */
+/* $Id: cachemgr.cc,v 1.7 1996/04/16 16:35:26 wessels Exp $ */
#include "squid.h"
int hasTables = FALSE;
-char *script_name = "/Harvest/cgi-bin/cachemgr.cgi";
+char *script_name = "/cgi-bin/cachemgr.cgi";
char *progname = NULL;
#define LF 10
void noargs_html()
{
printf("\r\n\r\n");
- printf("<TITLE>Harvest Cache Manager Interface</TITLE>\n");
+ printf("<TITLE>Cache Manager Interface</TITLE>\n");
printf("<H1>Cache Manager Interface</H1>\n");
printf("<P>\n");
printf("This is a WWW interface to the instrumentation interface ");
- printf("for the\n");
- printf("<A HREF=\"http://harvest.cs.colorado.edu/\">\n");
- printf("\tHarvest object cache</A>.\n");
+ printf("for the Squid object cache.\n");
printf("<HR>\n");
printf("<P>\n");
printf("<FORM METHOD=\"POST\" ACTION=\"%s\">\n", script_name);
-/* $Id: gopher.cc,v 1.26 1996/04/16 05:05:22 wessels Exp $ */
+/* $Id: gopher.cc,v 1.27 1996/04/16 16:35:27 wessels Exp $ */
/*
* DEBUG: Section 10 gopher: GOPHER
sprintf(tempMIME, "\
HTTP/1.0 200 OK Gatewaying\r\n\
-Server: HarvestCache/%s\r\n\
+Server: Squid/%s\r\n\
MIME-version: 1.0\r\n", version_string);
switch (data->type_id) {
-/* $Id: http.cc,v 1.50 1996/04/16 05:13:34 wessels Exp $ */
+/* $Id: http.cc,v 1.51 1996/04/16 16:35:28 wessels Exp $ */
/*
* DEBUG: Section 11 http: HTTP
char *t = NULL;
char *post_buf = NULL;
static char *crlf = "\r\n";
- static char *HARVEST_PROXY_TEXT = "via Harvest Cache version";
+ static char *VIA_PROXY_TEXT = "via Sqiud Cache version";
int len = 0;
int buflen;
int cfd = -1;
if (strncasecmp(t, "User-Agent:", 11) == 0) {
ybuf = (char *) get_free_4k_page();
memset(ybuf, '\0', SM_PAGE_SIZE);
- sprintf(ybuf, "%s %s %s", t, HARVEST_PROXY_TEXT, version_string);
+ sprintf(ybuf, "%s %s %s", t, VIA_PROXY_TEXT, version_string);
t = ybuf;
}
if (len + (int) strlen(t) > buflen - 10)
-/* $Id: main.cc,v 1.36 1996/04/16 05:48:58 wessels Exp $ */
+/* $Id: main.cc,v 1.37 1996/04/16 16:35:29 wessels Exp $ */
/* DEBUG: Section 1 main: startup and main loop */
while ((c = getopt(argc, argv, "vCDRVbsif:a:p:u:m:zh?")) != -1) {
switch (c) {
case 'v':
- printf("Harvest Cache: Version %s\n", version_string);
+ printf("Squid Cache: Version %s\n", version_string);
exit(0);
/* NOTREACHED */
case 'b':
static void mainReinitialize()
{
- debug(1, 0, "Retarting Harvest Cache (version %s)...\n", version_string);
+ debug(1, 0, "Retarting Squid Cache (version %s)...\n", version_string);
/* Already called serverConnectionsClose and ipcacheShutdownServers() */
neighborsDestroy();
fdstat_open(fileno(debug_log), LOG);
fd_note(fileno(debug_log), getCacheLogFile());
- debug(1, 0, "Starting Harvest Cache (version %s)...\n", version_string);
+ debug(1, 0, "Starting Squid Cache (version %s)...\n", version_string);
ipcache_init();
neighbors_init();
-/* $Id: recv-announce.cc,v 1.3 1996/04/16 05:05:28 wessels Exp $ */
+/* $Id: recv-announce.cc,v 1.4 1996/04/16 16:35:29 wessels Exp $ */
#include <stdio.h>
#include <fcntl.h>
* This program must be run from inetd. First add something like this
* to /etc/services:
*
- * cached_announce 3131/udp # harvest cache announcements
+ * cached_announce 3131/udp # cache announcements
*
* And then add something like this to /etc/inetd/conf:
*
-/* $Id: send-announce.cc,v 1.9 1996/04/16 05:05:29 wessels Exp $ */
+/* $Id: send-announce.cc,v 1.10 1996/04/16 16:35:30 wessels Exp $ */
/*
* DEBUG: Section 27 send-announce
sndbuf[0] = '\0';
- sprintf(tbuf, "cache_version HARVEST/%s\n", version_string);
+ sprintf(tbuf, "cache_version SQUID/%s\n", version_string);
strcat(sndbuf, tbuf);
sprintf(tbuf, "Running on %s %d %d\n",
getMyHostname(),
-/* $Id: stat.cc,v 1.26 1996/04/16 05:05:30 wessels Exp $ */
+/* $Id: stat.cc,v 1.27 1996/04/16 16:35:31 wessels Exp $ */
/*
* DEBUG: Section 18 stat
storeAppend(sentry, open_bracket, (int) strlen(open_bracket));
- sprintf(line, "{Harvest Object Cache: Version %s}\n", version_string);
+ sprintf(line, "{Squid Object Cache: Version %s}\n", version_string);
storeAppend(sentry, line, strlen(line));
tod = mkrfc850(&squid_starttime);
-/* $Id: tools.cc,v 1.35 1996/04/16 05:13:06 wessels Exp $ */
+/* $Id: tools.cc,v 1.36 1996/04/16 16:35:31 wessels Exp $ */
/*
* DEBUG: Section 21 tools
extern void serverConnectionsClose _PARAMS((void));
#define DEAD_MSG "\
-The Harvest Cache (version %s) died.\n\
+The Squid Cache (version %s) died.\n\
\n\
-You've encountered a fatal error in the Harvest Cache version %s.\n\
+You've encountered a fatal error in the Squid Cache version %s.\n\
If a core file was created (possibly in the swap directory),\n\
please execute 'gdb squid core' or 'dbx squid core', then type 'where',\n\
-and report the trace back to harvest-dvl@cs.colorado.edu.\n\
+and report the trace back to squid@nlanr.net.\n\
\n\
Thanks!\n"
safeunlink(getPidFilename(), 0);
storeWriteCleanLog();
PrintRusage(NULL, debug_log);
- debug(21, 0, "Harvest Cache (Version %s): Exiting normally.\n",
+ debug(21, 0, "Squid Cache (Version %s): Exiting normally.\n",
version_string);
exit(0);
}
syslog(LOG_ALERT, message);
#endif
fprintf(debug_log, "FATAL: %s\n", message);
- fprintf(debug_log, "Harvest Cache (Version %s): Terminated abnormally.\n",
+ fprintf(debug_log, "Squid Cache (Version %s): Terminated abnormally.\n",
version_string);
fflush(debug_log);
PrintRusage(NULL, debug_log);