freebsd-dev/usr.bin/login
Jessica Clarke b58ea3e1f7 Fix hand-rolled METALOG entries for installconfig during distributeworld
During distributeworld we call distribute on subdirectories, which in
turn calls installconfig. However, this recursive installconfig call
appends the distribution name (in these cases, "base") to DESTDIR. For
install(1) this works fine as its -D argument comes from the top-level
Makefile.inc1, which passes the original DESTDIR, thereby resulting in
the METALOG entry having the distribution name as a prefix representing
its true installed path relative to the root, but for the hand-rolled
entries they do not use install(1) and thus do not have access to what
the original DESTDIR was, resulting in the METALOG missing this prefix.

Thus, pass down the name of the distribution via a new variable DISTBASE
(chosen as Makefile.inc1 already uses that to convey this exact same
information to etc's distrib-dirs during distributeworld) and prepend
this to the handful of manually-generated METALOG entries. For the
installworld case this variable will be empty and so this behaves as
before.

Note that we need to be careful to avoid double slashes in the METALOG;
distributeworld uses find | awk to split the single METALOG up into
multiple dist.meta files, and this relies on the paths in the METALOG
having the exact prefix ./dist (or ./dist/usr/lib/debug).

Reviewed by:	brooks, emaste
Differential Revision:	https://reviews.freebsd.org/D33997
2022-02-28 22:36:39 +00:00
..
fbtab
login_audit.c login: use sizeof(audit_cond) consistently, NFC 2021-10-05 23:25:29 -05:00
login_fbtab.c
login.1 motd: Generate from template to /var/run 2019-07-20 20:56:31 +00:00
login.access pkgbase: Really move login.access 2019-05-22 07:41:58 +00:00
login.c usr.bin/login: send errors to console if syslog isn't running 2021-07-06 10:51:16 +01:00
login.conf Change the default locale to C.UTF-8 2020-11-14 19:16:39 +00:00
login.h
Makefile Fix hand-rolled METALOG entries for installconfig during distributeworld 2022-02-28 22:36:39 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
motd.template motd: Fix Questions List address 2021-11-28 18:15:04 -03:00
pathnames.h motd: Generate from template to /var/run 2019-07-20 20:56:31 +00:00
README

This login has additional functionalities. They are all based on (part of)
Wietse Venema's logdaemon package.


The following defines can be used:

- LOGALL to log all logins


-Guido

$FreeBSD$