1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/security/portsentry/files/patch-aa

48 lines
1.3 KiB
Plaintext
Raw Normal View History

--- 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 ""