3 --- Makefile 2000/02/07 15:16:12 1.1
4 +++ Makefile 2000/02/07 15:17:47
15 # Normal systems flags
18 #CFLAGS = -pg -O -Wall -DNODAEMON
19 #LIBS = /usr/lib/libefence.a
21 -INSTALLDIR = /usr/local/psionic
23 +INSTALLDIR = ${PREFIX}
27 @echo "Usage: make <systype>"
30 @echo "Creating psionic directory $(INSTALLDIR)"
31 @if [ ! -d $(INSTALLDIR) ]; then /bin/mkdir $(INSTALLDIR); fi
32 - @echo "Setting directory permissions"
33 - chmod 700 $(INSTALLDIR)
34 @echo "Creating portsentry directory $(INSTALLDIR)$(CHILDDIR)"
35 @if [ ! -d $(INSTALLDIR)$(CHILDDIR) ]; then /bin/mkdir\
36 $(INSTALLDIR)$(CHILDDIR); fi
37 - @echo "Setting directory permissions"
38 - chmod 700 $(INSTALLDIR)$(CHILDDIR)
40 - cp ./portsentry.conf $(INSTALLDIR)$(CHILDDIR)
41 - cp ./portsentry.ignore $(INSTALLDIR)$(CHILDDIR)
42 - cp ./portsentry $(INSTALLDIR)$(CHILDDIR)
43 + ${BSD_INSTALL_DATA} ./portsentry.conf $(INSTALLDIR)$(CHILDDIR)
44 + ${BSD_INSTALL_DATA} ./portsentry.ignore $(INSTALLDIR)$(CHILDDIR)
45 + ${BSD_INSTALL_PROGRAM} ./portsentry ${PREFIX}/sbin
46 @echo "Setting permissions"
47 chmod 600 $(INSTALLDIR)$(CHILDDIR)/portsentry.ignore
48 chmod 600 $(INSTALLDIR)$(CHILDDIR)/portsentry.conf
49 - chmod 700 $(INSTALLDIR)$(CHILDDIR)/portsentry
50 + chmod 700 ${PREFIX}/sbin/portsentry
53 @echo "Edit $(INSTALLDIR)$(CHILDDIR)/portsentry.conf and change"