1999-09-03 16:30:54 +00:00
|
|
|
--- Makefile.in.orig Mon Jun 29 18:59:44 1998
|
|
|
|
+++ Makefile.in Sat Sep 4 01:13:54 1999
|
|
|
|
@@ -8,8 +8,8 @@
|
1998-08-24 02:11:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
RM=rm -f
|
|
|
|
-#CC=gcc -ansi
|
|
|
|
-#CC=/opt/SUNWspro/SC4.0/bin/cc
|
|
|
|
+WCOLDIR=@prefix@/wcol
|
|
|
|
+DEFAULT_POOLDIR?=/var/spool/wcol
|
|
|
|
|
|
|
|
#
|
|
|
|
# Compile Flag
|
|
|
|
@@ -58,7 +58,11 @@
|
|
|
|
#
|
|
|
|
|
|
|
|
DEFS = @DEFS@ \
|
|
|
|
- -DDEFAULT_CONFIGFILE=\"/etc/wcol.conf\" \
|
|
|
|
+ -DDEFAULT_CONFIGFILE=\"@prefix@/etc/wcol.conf\" \
|
|
|
|
+ -DDEFAULT_LOGFILE=\"/var/log/wcol.log\" \
|
|
|
|
+ -DDEFAULT_PIDFILE=\"/var/run/wcol.pid\" \
|
|
|
|
+ -DDEFAULT_STATEFILE=\"/var/tmp/wcol.state\" \
|
|
|
|
+ -DDEFAULT_POOLDIR=\"${DEFAULT_POOLDIR}\" \
|
|
|
|
-DLOGGING_LOCALTIME \
|
|
|
|
-DMAX_REQUEST_QUEUE=2048 \
|
|
|
|
-DMAX_HANDLER=4 -DNUM_HANDLER=4 \
|
1999-09-03 16:30:54 +00:00
|
|
|
@@ -72,7 +76,7 @@
|
|
|
|
|
|
|
|
LIBS = @LIBS@
|
|
|
|
|
|
|
|
-CFLAGS = -g $(DEFS)
|
|
|
|
+CFLAGS += $(DEFS)
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
@@ -96,7 +100,8 @@
|
1998-08-24 02:11:20 +00:00
|
|
|
ICP_OBJS = _icp.o socket.o hname.o msg.o base.o url.o mem.o sigs.o
|
1999-09-03 16:30:54 +00:00
|
|
|
FLOOD_OBJS = flood.o icp.o socket.o hname.o msg.o base.o url.o mem.o sigs.o misc.o
|
1998-08-24 02:11:20 +00:00
|
|
|
PLIST_OBJS = plist.o msg.o base.o url.o info.o mem.o misc.o \
|
|
|
|
- args.o rglobal.o accept.o pstate.o conv.o
|
|
|
|
+ args.o rglobal.o accept.o pstate.o conv.o \
|
|
|
|
+ reaper.o sigs.o ipc.o eqsort.o
|
|
|
|
|
|
|
|
OBJS = $(WCOL_OBJS) $(SSTATE_OBJS) $(HSTATE_OBJS) $(REAPER_OBJS) \
|
1999-09-03 16:30:54 +00:00
|
|
|
$(FTP_OBJS) $(PARSE_OBJS) $(JFILTER_OBJS) $(ICP_OBJS) $(FLOOD_OBJS) \
|
|
|
|
@@ -155,6 +160,27 @@
|
1998-08-24 02:11:20 +00:00
|
|
|
allclean:
|
|
|
|
-$(MAKE) clean
|
|
|
|
$(RM) config.h Makefile config.cache config.status
|
|
|
|
+
|
|
|
|
+###
|
|
|
|
+install:
|
|
|
|
+ @if [ ! -d ${WCOLDIR} ]; then \
|
|
|
|
+ mkdir ${WCOLDIR}; \
|
|
|
|
+ fi
|
|
|
|
+ @echo "install programs..."
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./hstate ${WCOLDIR}/hstate
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./icp ${WCOLDIR}/icp
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./jfilter ${WCOLDIR}/jfilter
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./parse ${WCOLDIR}/parse
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./plist ${WCOLDIR}/plist
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./reaper ${WCOLDIR}/reaper
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./scntl ${WCOLDIR}/scntl
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./sstate ${WCOLDIR}/sstate
|
|
|
|
+ ${BSD_INSTALL_PROGRAM} ./wcol ${WCOLDIR}/wcol
|
|
|
|
+ @echo "install admin scripts..."
|
|
|
|
+ ${BSD_INSTALL_SCRIPT} ../admin/killwcol ${WCOLDIR}/killwcol
|
|
|
|
+ ${BSD_INSTALL_SCRIPT} ../admin/pool_walk ${WCOLDIR}/pool_walk
|
|
|
|
+ ${BSD_INSTALL_SCRIPT} ../stat/log_report ${WCOLDIR}/log_report
|
|
|
|
+ ${BSD_INSTALL_SCRIPT} ../stat/log_transition ${WCOLDIR}/log_transition
|
|
|
|
|
|
|
|
###
|
|
|
|
### dependency
|