blob: e810065f8833781ac3a93cacca2edcb5c0af4132 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
--- Makefile.orig Thu May 28 22:24:11 1998
+++ Makefile Thu Jan 21 05:57:29 1999
@@ -25,13 +25,13 @@
#CC = gcc
# Normal systems flags
-CFLAGS = -O
+CFLAGS+= -O -DPREFIX="${PREFIX}"
# Debug mode for sentry
#CFLAGS = -Wall -g -DDEBUG
-INSTALLDIR = /usr/local/abacus
+INSTALLDIR = ${PREFIX}
all:
@@ -54,21 +54,16 @@
/bin/rmdir $(INSTALLDIR)
install:
- @echo "Creating abacus directory $(INSTALLDIR)"
- @if [ ! -d $(INSTALLDIR) ]; then /bin/mkdir $(INSTALLDIR); fi
- @echo "Setting directory permissions"
- chmod 700 $(INSTALLDIR)
- @echo "Copying files"
- cp ./sentry.conf $(INSTALLDIR)
- cp ./sentry.ignore $(INSTALLDIR)
- cp ./sentry $(INSTALLDIR)
+ cp ./sentry.conf $(INSTALLDIR)/etc
+ cp ./sentry.ignore $(INSTALLDIR)/etc
+ cp ./sentry $(INSTALLDIR)/bin
@echo "Setting permissions"
- chmod 600 $(INSTALLDIR)/sentry.ignore
- chmod 600 $(INSTALLDIR)/sentry.conf
- chmod 700 $(INSTALLDIR)/sentry
+ chmod 600 $(INSTALLDIR)/etc/sentry.ignore
+ chmod 600 $(INSTALLDIR)/etc/sentry.conf
+ chmod 700 $(INSTALLDIR)/bin/sentry
@echo ""
@echo ""
- @echo "Edit $(INSTALLDIR)/sentry.conf and change"
+ @echo "Edit $(INSTALLDIR)/etc/sentry.conf and change"
@echo "your settings if you haven't already. (route, etc)"
@echo ""
@echo ""
|