-
Notifications
You must be signed in to change notification settings - Fork 133
/
paths.in
executable file
·85 lines (83 loc) · 3.17 KB
/
paths.in
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
#!/bin/sh
wrout () {
if test "$2" != "N/A"; then printf " %-25s %s\n" "$1" "$2"; fi
}
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Detected Environment:"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
wrout "Operating System" "@opsys@"
wrout "Architecture" "@arch@"
wrout "Distribution type" "@dist_type@ Version @dist_ver@"
wrout "Init type" "@init_type@"
wrout "Inetd type" "@inetd_type@"
echo
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "Paths are:"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
wrout "prefix" "@prefix@"
wrout "exec_prefix" "@prefix@"
if test "@PKG_NAME@" = "nagios"; then
wrout "bindir" "@bindir@"
fi
wrout "sbindir" "@sbindir@"
wrout "sysconfdir" "@sysconfdir@"
wrout "pkgsysconfdir" "@pkgsysconfdir@"
if test "@PKG_NAME@" = "nagios"; then
wrout "privatesysconfdir" "@privatesysconfdir@"
fi
wrout "localstatedir" "@localstatedir@"
wrout "pkglocalstatedir" "@pkglocalstatedir@"
wrout "datarootdir" "@datarootdir@"
wrout "datadir" "@datadir@"
wrout "webdir" "@webdir@"
wrout "localedir" "@localedir@"
wrout "logdir" "@logdir@"
wrout "piddir" "@piddir@"
wrout "pipedir" "@pipedir@"
wrout "spooldir" "@spooldir@"
wrout "libexecdir" "@libexecdir@"
wrout "brokersdir" "@brokersdir@"
wrout "pluginsdir" "@pluginsdir@"
wrout "cgibindir" "@cgibindir@"
wrout "initdir" "@initdir@"
wrout "inetddir" "@inetddir@"
wrout "subsyslockdir" "@subsyslockdir@"
echo
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo '@PKG_NAME@ files will be installed or created as follows:'
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
wrout "Config file" "@pkgsysconfdir@/@[email protected]"
wrout "Object config dir" "@objsysconfdir@"
wrout "daemon" "@sbindir@/@PKG_NAME@"
if test "@PKG_NAME@" = "nrpe"; then
wrout "check_@PKG_NAME@" "@pluginsdir@/check_@PKG_NAME@"
fi
if test "@PKG_NAME@" = "nagios"; then
wrout "nagiostats (prog)" "@bindir@/nagiostats"
wrout "Website password file" "@pkgsysconfdir@/passwd"
wrout "resource.cfg" "@privatesysconfdir@/resource.cfg"
wrout "event handlers dir" "@brokersdir@"
wrout "cgi program dir" "@cgibindir@"
wrout "website file dir" "@webdir@"
wrout "status.dat" "@pkglocalstatedir@/status.dat"
wrout "retention.dat" "@pkglocalstatedir@/retention.dat"
wrout "object cache dir" "@pkglocalstatedir@"
wrout "log file" "@logdir@/@[email protected]"
wrout "log archive dir" "@logdir@/archives"
wrout "@[email protected]" "@logdir@/@[email protected]"
wrout "@[email protected]" "@pipedir@/@[email protected]"
wrout "@[email protected]" "@pipedir@/@[email protected]"
wrout "perfdata file dir" "@spooldir@"
wrout "checkresult files" "@spooldir@/checkresults"
else
wrout "inetd config" "@inetddir@/@inetdname@"
fi
wrout "init script" "@initdir@/@initname@"
wrout "@[email protected] (tmpfiles.d)" "@tmpfilesd@"
wrout "@PKG_NAME@ lock file" "@piddir@/@[email protected]"
wrout "language files" "@localedir@"
wrout "init lock file" "@subsyslockfile@"
wrout "init source file" "@src_init@"
wrout "inetd source file" "@src_inetd@"
echo
echo "To show this list again, type './paths' at the prompt"