]>
Commit | Line | Data |
---|---|---|
dc0e06de AM |
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 | |
4 | @@ -1,8 +1,13 @@ | |
5 | # $Id$ | |
6 | ||
7 | +PREFIX=/usr | |
8 | +SBINDIR=$(PREFIX)/sbin | |
9 | +MANDIR=$(PREFIX)/man | |
10 | +SYSCONFDIR=/etc | |
11 | + | |
12 | # Linux | |
13 | CC = gcc | |
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 | |
18 | ||
19 | @@ -66,14 +71,14 @@ | |
20 | $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) | |
21 | ||
22 | install: all | |
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 | |
31 | ||
32 | install-config: | |
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 | |
37 | ||
38 | uninstall: | |
39 | @rm -f /usr/local/sbin/fwlogwatch \ | |
5249a8c3 | 40 | --- fwlogwatch-0.5.2/main.h.orig Sun Jan 27 19:17:42 2002 |
41 | +++ fwlogwatch-0.5.2/main.h Tue Feb 19 08:04:49 2002 | |
42 | @@ -41,7 +41,7 @@ | |
dc0e06de AM |
43 | /* Files */ |
44 | ||
45 | #define INFILE "/var/log/messages" | |
46 | -#define RCFILE "/etc/fwlogwatch.config" | |
47 | +#define RCFILE SYSCONFDIR "/fwlogwatch.config" | |
48 | ||
49 | /* Modes */ | |
50 | ||
5249a8c3 | 51 | @@ -194,11 +194,11 @@ |
dc0e06de AM |
52 | /* Interactive report mode */ |
53 | ||
54 | #define CERT "[Insert address of abuse contact or CERT here]" | |
55 | -#define TEMPLATE "/etc/fwlogwatch.template" | |
56 | +#define TEMPLATE SYSCONFDIR "/fwlogwatch.template" | |
57 | #define FILENAME "fwlogwatchXXXXXX" | |
58 | #define INSERTREPORT "# insert report here" | |
59 | #define P_CAT "/bin/cat" | |
5249a8c3 | 60 | -#define P_SENDMAIL "/usr/sbin/sendmail" |
61 | +#define P_SENDMAIL "/usr/lib/sendmail" | |
62 | ||
63 | enum { | |
64 | OPT_NONE, | |
65 | @@ -210,8 +210,8 @@ | |
dc0e06de AM |
66 | |
67 | #define ALERT 5 | |
68 | #define FORGET 86400 | |
69 | -#define FWLW_NOTIFY "/usr/local/sbin/fwlw_notify" | |
70 | -#define FWLW_RESPOND "/usr/local/sbin/fwlw_respond" | |
71 | +#define FWLW_NOTIFY SYSCONFDIR "/fwlw_notify" | |
72 | +#define FWLW_RESPOND SYSCONFDIR "/fwlw_respond" | |
5249a8c3 | 73 | #define STATUS_TITLE _("fwlogwatch status") |
dc0e06de AM |
74 | #define LISTENIF "127.0.0.1" |
75 | #define LISTENPORT 888 |