blob: d8a0da71decfe9f0eab18d5080c47c104fb8d30b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
--- Makefile.orig Wed Jan 5 23:04:22 2000
+++ Makefile Wed Apr 10 18:24:16 2002
@@ -3,50 +3,57 @@
#
#
-# Configuration Files
+# Configuration Files
#
#
# What directory the server program (nrpep) should live in
#
-nrpepserverdir = "/usr/sbin"
+nrpepserverdir = $(PREFIX)/sbin
#
# What directory the plugin client should live in
#
-nrpepplugindir = "/usr/local/netsaint/libexec"
+nrpepplugindir = $(PREFIX)/libexec/netsaint
#
# What user should own nrpep
#
-nrpepowner = "root"
+nrpepowner = root
#
# What group should own nrpep
#
-nrpepgroup = "root"
+nrpepgroup = wheel
#
# What user should own check_nrpep
#
-checknrpepowner = "netsaint"
+checknrpepowner = root
#
# What group should own check_nrpep
#
-checknrpepgroup = "netsaint"
+checknrpepgroup = wheel
#
# What directory should the nrpep config files go to
#
-nrpepconfigdir = "/usr/local/netsaint/etc"
+nrpepconfigdir = $(PREFIX)/etc/netsaint
# ***************************************
# DO NOT CHANGE ANYTHING BELOW THIS POINT
# ***************************************
all:
- cat README | more
+ mv nrpep.cfg nrpep.cfg.orig
+ cat nrpep.cfg.orig | sed -e 's%/usr/local/netsaint/libexec%$(PREFIX)/libexec/netsaint%' > nrpep.cfg
+
+install: install-client install-server
+ if [ ! -d "$(PREFIX)/share/doc/nrpep" ]; then \
+ mkdir -p $(PREFIX)/share/doc/nrpep; \
+ fi
+ cp README $(PREFIX)/share/doc/nrpep
install-client:
`if [ ! -d "$(nrpepplugindir)" ]; then \
@@ -55,8 +62,8 @@
`if [ ! -d "$(nrpepconfigdir)" ]; then \
mkdir -p $(nrpepconfigdir); \
fi`
- install -b -D -g $(checknrpepgroup) -o $(checknrpepowner) -m 755 check_nrpep $(nrpepplugindir);
- install -b -D -g $(checknrpepgroup) -o $(checknrpepowner) -m 644 check_nrpep.cfg $(nrpepconfigdir);
+ install -g $(checknrpepgroup) -o $(checknrpepowner) -m 755 check_nrpep $(nrpepplugindir);
+ install -g $(checknrpepgroup) -o $(checknrpepowner) -m 644 check_nrpep.cfg $(nrpepconfigdir);
install-server:
`if [ ! -d "$(nrpepserverdir)" ]; then \
@@ -65,8 +72,8 @@
`if [ ! -d "$(nrpepconfigdir)" ]; then \
mkdir -p $(nrpepconfigdir); \
fi`
- install -b -D -g $(nrpepgroup) -o $(nrpepowner) -m 755 nrpep $(nrpepserverdir);
- install -b -D -g $(nrpepgroup) -o $(nrpepowner) -m 644 nrpep.cfg $(nrpepconfigdir);
+ install -g $(nrpepgroup) -o $(nrpepowner) -m 755 nrpep $(nrpepserverdir);
+ install -g $(nrpepgroup) -o $(nrpepowner) -m 644 nrpep.cfg $(nrpepconfigdir);
uninstall-client:
rm $(nrpepplugindir)/check_nrpep
@@ -75,3 +82,7 @@
uninstall-server:
rm $(nrpepserverdir)/nrpep
rm $(nrpepconfigdir)/nrpep.cfg
+
+
+
+
|