]> git.pld-linux.org Git - packages/fwlogwatch.git/blame - fwlogwatch-DESTDIR.patch
3906af844fd242b9791a46cfc1e24068 fwlogwatch.sysconfig
[packages/fwlogwatch.git] / fwlogwatch-DESTDIR.patch
CommitLineData
dc0e06de
AM
1diff -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 \
40diff -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
43@@ -32,7 +32,7 @@
44 /* Files */
45
46 #define INFILE "/var/log/messages"
47-#define RCFILE "/etc/fwlogwatch.config"
48+#define RCFILE SYSCONFDIR "/fwlogwatch.config"
49
50 /* Modes */
51
52@@ -187,7 +187,7 @@
53 /* Interactive report mode */
54
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"
61@@ -203,8 +203,8 @@
62
63 #define ALERT 5
64 #define FORGET 86400
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"
This page took 0.053259 seconds and 4 git commands to generate.