Initial import of portsentry into the NetBSD packages collection.
[pkgsrcv2.git] / security / portsentry / patches / patch-ac
1 $NetBSD$
2
3 --- Makefile    2000/02/07 15:16:12     1.1
4 +++ Makefile    2000/02/07 15:17:47
5 @@ -21,9 +21,9 @@
6  #
7  #
8  # Generic compiler
9 -CC = cc
10 +# CC = cc
11  # GNU..
12 -#CC = gcc 
13 +CC = gcc 
14  
15  # Normal systems flags
16  CFLAGS = -O -Wall
17 @@ -35,8 +35,8 @@
18  #CFLAGS = -pg -O -Wall -DNODAEMON
19  #LIBS = /usr/lib/libefence.a
20  
21 -INSTALLDIR = /usr/local/psionic
22 -CHILDDIR=/portsentry
23 +INSTALLDIR = ${PREFIX}
24 +CHILDDIR=/etc
25  
26  all:
27                 @echo "Usage: make <systype>"
28 @@ -67,21 +67,17 @@
29  install:       
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)
39                 @echo "Copying files"
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
51                 @echo ""
52                 @echo ""
53                 @echo "Edit $(INSTALLDIR)$(CHILDDIR)/portsentry.conf and change"