1999-01-20 21:04:29 +00:00
|
|
|
--- Makefile.orig Thu May 28 22:24:11 1998
|
|
|
|
+++ Makefile Thu Jan 21 05:57:29 1999
|
1998-12-19 16:53:20 +00:00
|
|
|
@@ -25,13 +25,13 @@
|
|
|
|
#CC = gcc
|
|
|
|
|
|
|
|
# Normal systems flags
|
|
|
|
-CFLAGS = -O
|
1999-01-20 21:04:29 +00:00
|
|
|
+CFLAGS+= -O -DPREFIX="${PREFIX}"
|
1998-12-19 16:53:20 +00:00
|
|
|
|
|
|
|
# Debug mode for sentry
|
|
|
|
#CFLAGS = -Wall -g -DDEBUG
|
|
|
|
|
|
|
|
|
|
|
|
-INSTALLDIR = /usr/local/abacus
|
|
|
|
+INSTALLDIR = ${PREFIX}
|
|
|
|
|
|
|
|
|
|
|
|
all:
|
1999-01-20 21:04:29 +00:00
|
|
|
@@ -54,21 +54,16 @@
|
1998-12-19 16:53:20 +00:00
|
|
|
/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 ""
|
1999-01-20 21:04:29 +00:00
|
|
|
- @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 ""
|