Debian Codegraph @

paths

raw
1 # paths - Paths for inetutils
2 # Copyright (C) 1996-2026 Free Software Foundation, Inc.
3 #
4 # This file is part of GNU Inetutils.
5 #
6 # GNU Inetutils is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or (at
9 # your option) any later version.
10 #
11 # GNU Inetutils is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see `http://www.gnu.org/licenses/'.
18
19 # This file describes how to set various paths used by programs in inetutils.
20 #
21 # The rules determining what a given PATH_FOO expands to, are these:
22 # (1) If the user specifies --with-path-foo, that value is used.
23 # (2) If _PATH_FOO is defined in <paths.h>, that value is used.
24 # (3) The lines below are consulted. They are whitespace-separated
25 # lists of things to try, in order. The various sorts of entries are:
26 #
27 # "value" -- If a file VALUE exists, use VALUE; if no default yet, set
28 # it to VALUE. If VALUE begins with a make-variable of the
29 # form `$(NAME)' and a corresponding shell-variable $NAME
30 # exists at configure time, the value of $NAME is substituted
31 # for the $(NAME) for testing (but not substitution) purposes.
32 # test:T -- Use `test -T' to test for file existence.
33 # x -- The same as test:x
34 # d -- The same as test:d
35 # c -- The same as test:c
36 # b -- The same as test:b
37 # <ach.h>:SYMBOL
38 # -- If SYMBOL is defined in <ack.h>, use SYMBOL.
39 # <ack.h> -- The same as <ack.h>:_PATH_FOO
40 # search:NAME:PATH
41 # -- Search for NAME in the colon-separated path PATH, and use
42 # the first thing found; if the `:PATH' is omitted, it
43 # uses the environment variable $PATH.
44 # no -- Set the default to `no' (even if there already is a default).
45 # FILE -- The same as "FILE" (the quoted syntax only need be used if
46 # the contents could match one of the special syntaxes).
47 #
48 # If cross-compiling then every file-existance test is made to fail
49 # (regardless of what exists on the compilation system), forcing
50 # defaults to be used for paths not defined in any header file. A
51 # warning message is printed by configure in this case, as the user may
52 # have to define many paths by hand.
53 #
54 # If none of the things in the list matches a real file, the default is
55 # used, or `no' if there is none (this means that no path may ever have
56 # the value `no', but that's probably not a severe problem).
57 #
58 # (4) If the resulting value is the string `no', then PATH_FOO is never
59 # defined by any method. (Programs that use it should check that the
60 # symbol is defined before using it).
61 #
62 # Programs wanting to use a particular path PATH_FOO should:
63 # (1) Add the make variable $(PATHDEF_FOO) to CPPFLAGS while compiling. (This
64 # expands either into either -D... for the path variable, or nothing.)
65 # (2) Include any appropriate headers to match <header.h> entries below.
66 #
67
68 PATH_BSHELL x $(bindir)/sh search:sh
69 PATH_CONSOLE c /dev/console
70 PATH_CP x $(bindir)/cp search:cp
71 PATH_DEFPATH "$(bindir):/usr/bin:/bin"
72 PATH_DEV d /dev/
73 # PATH_TTY_PFX is a prefix that's removed to get a tty device's name
74 PATH_TTY_PFX <paths.h>:_PATH_DEV d /dev/
75 PATH_DEVNULL c /dev/null
76 PATH_FTPLOGINMESG /etc/motd
77 PATH_FTPUSERS $(sysconfdir)/ftpusers
78 PATH_FTPCHROOT $(sysconfdir)/ftpchroot
79 PATH_FTPWELCOME $(sysconfdir)/ftpwelcome
80 PATH_FTPDPID $(runstatedir)/ftpd.pid
81 PATH_INETDCONF $(sysconfdir)/inetd.conf
82 PATH_INETDDIR $(sysconfdir)/inetd.d
83 PATH_INETDPID $(runstatedir)/inetd.pid
84 PATH_UTMP <utmp.h> <utmp.h>:UTMP_FILE $(runstatedir)/utmp search:utmp:/run:/var/run:/var/adm:/etc "/var/run/utx.active"
85 PATH_UTMPX <utmpx.h> <utmpx.h>:UTMPX_FILE $(runstatedir)/utmpx search:utmpx:/run:/var/run:/var/adm:/etc "/var/run/utx.active"
86 PATH_WTMP <utmp.h> <utmp.h>:WTMP_FILE $(localstatedir)/log/wtmp search:wtmp:/var/log:/var/adm:/etc "/var/log/utx.log"
87 PATH_WTMPX <utmpx.h> <utmpx.h>:WTMPX_FILE $(localstatedir)/log/wtmpx search:wtmpx:/var/log:/var/adm:/etc "/var/log/utx.log"
88 PATH_LASTLOG <utmp.h> $(localstatedir)/log/lastlog search:lastlog:/var/log:/var/adm:/etc "/var/log/utx.lastlogin"
89 PATH_LOG <syslog.h> /dev/log
90 PATH_KLOG <syslog.h> /dev/klog no
91 PATH_LOGCONF $(sysconfdir)/syslog.conf
92 PATH_LOGCONFD $(sysconfdir)/syslog.d
93 PATH_LOGIN x $(bindir)/login search:login
94 PATH_LOGPID $(runstatedir)/syslog.pid
95 PATH_NOLOGIN /etc/nologin
96 PATH_RLOGIN x $(bindir)/rlogin
97 PATH_RSH x $(bindir)/rsh
98 PATH_TMP d /tmp/
99 PATH_TTY c /dev/tty
100 PATH_UUCICO x $(libexecdir)/uucp/uucico search:uucp/uucico:/usr/libexec:/usr/lib:/usr/etc:/etc
101 PATH_HEQUIV <netdb.h> /etc/hosts.equiv $(sysconfdir)/hosts.equiv
102 PATH_PROCNET_DEV /proc/net/dev no