#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.in,v 1.21 1996/04/16 18:28:31 wessels Exp $
+# $Id: Makefile.in,v 1.22 1996/04/16 20:53:32 wessels Exp $
#
# Uncomment and customize the following to suit your needs:
#
-DDEFAULT_CACHE_LOG=\"$(prefix)/logs/cache.log\" \
-DDEFAULT_ACCESS_LOG=\"$(prefix)/logs/access.log\" \
-DDEFAULT_HIERARCHY_LOG=\"$(prefix)/logs/hierarchy.log\" \
- -DDEFAULT_STORE_LOG=\"$(prefix)/logs/store.log\"
+ -DDEFAULT_STORE_LOG=\"$(prefix)/logs/store.log\" \
+ -DDEFAULT_SWAP_DIR=\"$(prefix)/cache\"
all: $(PROGS) $(UTILS) $(CGIPROGS)
-/* $Id: cache_cf.cc,v 1.48 1996/04/16 18:31:32 wessels Exp $ */
+/* $Id: cache_cf.cc,v 1.49 1996/04/16 20:53:33 wessels Exp $ */
/* DEBUG: Section 3 cache_cf: Configuration file parsing */
time_t neighbor_timeout = DefaultNeighborTimeout; /* for fast access */
int single_parent_bypass = 0;
int DnsPositiveTtl = DefaultPositiveDnsTtl;
+char *DefaultSwapDir = DEFAULT_SWAP_DIR;
char *config_file = DEFAULT_CONFIG_FILE;
char *cfg_filename = NULL; /* just the last part */
-/* $Id: store.cc,v 1.54 1996/04/16 05:05:32 wessels Exp $ */
-#ident "$Id: store.cc,v 1.54 1996/04/16 05:05:32 wessels Exp $"
+/* $Id: store.cc,v 1.55 1996/04/16 20:53:33 wessels Exp $ */
+#ident "$Id: store.cc,v 1.55 1996/04/16 20:53:33 wessels Exp $"
/*
* DEBUG: Section 20 store
#define SWAP_BUF DISK_PAGE_SIZE
#define FATAL_BUF_SIZE 1024
#define SWAP_DIRECTORIES 100
-#ifndef DEFAULT_SWAP_DIR
-#define DEFAULT_SWAP_DIR "/tmp/cache"
-#endif
#define WITH_MEMOBJ 1
#define WITHOUT_MEMOBJ 0
int i;
if (ncache_dirs < 1)
- storeAddSwapDisk(DEFAULT_SWAP_DIR);
+ storeAddSwapDisk(DefaultSwapDir);
for (i = 0; i < SWAP_DIRECTORIES; i++) {
sprintf(name, "%s/%02d", swappath(i), i);