1 diff -urN fwlogwatch-0.4.org/Makefile fwlogwatch-0.4/Makefile
2 --- fwlogwatch-0.4.org/Makefile Thu Aug 30 14:00:03 2001
3 +++ fwlogwatch-0.4/Makefile Thu Aug 30 14:45:50 2001
8 +SBINDIR=$(PREFIX)/sbin
14 -CFLAGS = -pipe -O2 -Wall #-pedantic #-g #-p
15 +CFLAGS = $(OPT) -pipe -Wall -DSYSCONFDIR=\"$(SYSCONFDIR)\"
16 LDFLAGS = #-g #-static -p
17 LIBS = -lcrypt -lz #-lc_p
20 $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
23 - $(INSTALL_PROGRAM) fwlogwatch /usr/local/sbin/fwlogwatch
24 - $(INSTALL_SCRIPT) contrib/fwlw_notify /usr/local/sbin/fwlw_notify
25 - $(INSTALL_SCRIPT) contrib/fwlw_respond /usr/local/sbin/fwlw_respond
26 - $(INSTALL_DATA) fwlogwatch.8 /usr/local/man/man8/fwlogwatch.8
27 + $(INSTALL_PROGRAM) fwlogwatch $(DESTDIR)$(SBINDIR)/fwlogwatch
28 + $(INSTALL_SCRIPT) contrib/fwlw_notify $(DESTDIR)$(SYSCONFDIR)/fwlw_notify
29 + $(INSTALL_SCRIPT) contrib/fwlw_respond $(DESTDIR)$(SYSCONFDIR)/fwlw_respond
30 + $(INSTALL_DATA) fwlogwatch.8 $(DESTDIR)$(MANDIR)/man8/fwlogwatch.8
33 - $(INSTALL_DATA) fwlogwatch.config /etc/fwlogwatch.config
34 - $(INSTALL_DATA) fwlogwatch.template /etc/fwlogwatch.template
35 + $(INSTALL_DATA) fwlogwatch.config $(DESTDIR)$(SYSCONFDIR)/fwlogwatch.config
36 + $(INSTALL_DATA) fwlogwatch.template $(DESTDIR)$(SYSCONFDIR)/fwlogwatch.template
39 @rm -f /usr/local/sbin/fwlogwatch \
40 diff -urN fwlogwatch-0.4.org/main.h fwlogwatch-0.4/main.h
41 --- fwlogwatch-0.4.org/main.h Thu Aug 30 14:00:03 2001
42 +++ fwlogwatch-0.4/main.h Thu Aug 30 14:45:05 2001
46 #define INFILE "/var/log/messages"
47 -#define RCFILE "/etc/fwlogwatch.config"
48 +#define RCFILE SYSCONFDIR "/fwlogwatch.config"
53 /* Interactive report mode */
55 #define CERT "[Insert address of abuse contact or CERT here]"
56 -#define TEMPLATE "/etc/fwlogwatch.template"
57 +#define TEMPLATE SYSCONFDIR "/fwlogwatch.template"
58 #define FILENAME "fwlogwatchXXXXXX"
59 #define INSERTREPORT "# insert report here"
60 #define P_CAT "/bin/cat"
65 -#define FWLW_NOTIFY "/usr/local/sbin/fwlw_notify"
66 -#define FWLW_RESPOND "/usr/local/sbin/fwlw_respond"
67 +#define FWLW_NOTIFY SYSCONFDIR "/fwlw_notify"
68 +#define FWLW_RESPOND SYSCONFDIR "/fwlw_respond"
69 #define LISTENIF "127.0.0.1"
70 #define LISTENPORT 888
71 #define DEFAULT_USER "admin"