mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
eedce59458
* Let the install target print correct location of the conf file. * Use CFLAGS+= instead of commenting it out. * Add -DPREFIX="${PREFIX}" to the CFLAGS.
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
--- 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 ""
|