HardenedBSD/sbin
Stefan Eßer 1f474190fc Replace literal uses of /usr/local in C sources with _PATH_LOCALBASE
Literal references to /usr/local exist in a large number of files in
the FreeBSD base system. Many are in contributed software, in configuration
files, or in the documentation, but 19 uses have been identified in C
source files or headers outside the contrib and sys/contrib directories.

This commit makes it possible to set _PATH_LOCALBASE in paths.h to use
a different prefix for locally installed software.

In order to avoid changes to openssh source files, LOCALBASE is passed to
the build via Makefiles under src/secure. While _PATH_LOCALBASE could have
been used here, there is precedent in the construction of the path used to
a xauth program which depends on the LOCALBASE value passed on the compiler
command line to select a non-default directory.

This could be changed in a later commit to make the openssh build
consistently use _PATH_LOCALBASE. It is considered out-of-scope for this
commit.

Reviewed by:	imp
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D26942
2020-10-27 11:29:11 +00:00
..
adjkerntz
bectl
bsdlabel
camcontrol
ccdconfig
clri
comcontrol
conscontrol
ddb
decryptcore
devd
devfs
devmatch
dhclient
dmesg
dump
dumpfs
dumpon
etherswitchcfg
fdisk
ffsinfo
fsck
fsck_ffs
fsck_msdosfs
fsdb
fsirand
gbde
geom
ggate
growfs
gvinum
hastctl
hastd
ifconfig
init
ipf
ipfw
iscontrol
kldconfig
kldload
kldstat
kldunload
ldconfig
md5
mdconfig
mdmfs
mknod
mksnap_ffs
mount
mount_cd9660
mount_fusefs
mount_msdosfs
mount_nfs
mount_nullfs
mount_udf
mount_unionfs
natd
newfs
newfs_msdos
nfsiod
nos-tun
nvmecontrol
pfctl
pfilctl
pflogd
ping
ping6
quotacheck
rcorder
reboot
recoverdisk
resolvconf
restore
route
routed
rtsol
savecore
sconfig
setkey
shutdown
spppcontrol
swapon
sysctl
tests
tunefs
umount
veriexec
zfsbootcfg
Makefile
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.mips
Makefile.powerpc64