Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 1999 18:07:42 -0400 (EDT)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        shige@freebsd.org
Cc:        ports@freebsd.org
Subject:   wcol port
Message-ID:  <199908212207.SAA12047@guest.newton>

next in thread | raw e-mail | index | archive | help

--ELM935273262-11994-0_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hello!

The attached version of the port's  patch-aa will make the port obey the
local settings for CC and CFLAGS.

It will also make wcol use syslog  to do the logging, instead of writing
into a file on its own. IMHO, this aproach is better for log redirection
(to another machine, for example) and for log rotation with newsyslog.

Yours sincerely,

	-mi

--ELM935273262-11994-0_
Content-Type: text/plain; charset=KOI8-R
Content-Disposition: attachment; filename=patch-aa
Content-Description: improved version of wcol's patch-aa
Content-Transfer-Encoding: 7bit

--- Makefile.in.orig	Mon Jun 29 05:59:44 1998
+++ Makefile.in	Sat Aug 21 17:16:06 1999
@@ -10,4 +10,4 @@
 RM=rm -f
-#CC=gcc -ansi
-#CC=/opt/SUNWspro/SC4.0/bin/cc
+WCOLDIR=@prefix@/wcol
+DEFAULT_POOLDIR?=/var/spool/wcol
 
@@ -60,3 +60,7 @@
 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 \
@@ -69,2 +73,3 @@
 	-DUSE_ICP_NOTIFY \
+	-DUSE_SYSLOG \
 	-DQUERY_TIMEOUT=2000
@@ -74,3 +79,3 @@
 
-CFLAGS = -g $(DEFS)
+CFLAGS += $(DEFS)
 
@@ -98,3 +103,4 @@
 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
 
@@ -157,2 +163,23 @@
 	$(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
 

--ELM935273262-11994-0_--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908212207.SAA12047>