Home | History | Annotate | Download | only in login
History log of /src/usr.bin/login/Makefile
RevisionDateAuthorComments
 1.59  03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.58  13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.57  25-Feb-2018  mrg branches: 1.57.4;
add LIBKRB5_LDADD/LIBKRB5_DPADD and their static counterparts
to bsd.prog.mk. use them instead of hard coding various lists
of libraries for krb5.

this fixes static builds.
 1.56  11-Aug-2013  dholland Remove redundant WARNS=5.
 1.55  24-Apr-2012  christos branches: 1.55.2;
no more KRB5_DEPRECATED
 1.54  23-Apr-2012  christos remove obsolete comment.
 1.53  22-Apr-2012  christos make krb5 compile again. XXX: one function left that is deprecated, what's
the new equivalent?
 1.52  24-Apr-2011  elric branches: 1.52.4; 1.52.6;
We no longer need -I/usr/include/krb5.
 1.51  29-Dec-2009  christos PR/42540: Ed Ravin: /usr/bin/login does not log normal logins, and does not
log ip addresses.
- Factor out the common code in login.c and login_pam.c into common.c
- Always log a login event
- Check passed in sockaddr against the one from getpeername(2).
 1.50  14-Apr-2009  lukem Enable WARNS=4 by default for usr.bin, except for:
awk bdes checknr compile_et error gss hxtool kgetcred kinit
klist ldd less lex locale login m4 man menuc mk_cmds
mklocale msgc openssl rpcgen rpcinfo sdiff spell ssh
string2key telnet tn3270 verify_krb5_conf xlint
 1.49  19-Oct-2008  apb branches: 1.49.4;
Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
 1.48  06-Apr-2008  lukem Be consistent about making USE_PAM!=no be exclusive to USE_SKEY!=no.
 1.47  28-May-2007  tls Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
 1.46  20-Mar-2006  christos Goodbye KerberosIV
 1.45  04-Mar-2005  he Introduce PAM_STATIC_LDADD and PAM_STATIC_DPADD. When compiling
with MKPIC=no, possibly because the target does not support shared
libraries, these include libraries required to resolve all symbols
which end up referenced from PAM-using applications. The libraries
presently required are -lcrypt, -lrpcsvc and -lutil.

Add use of these variables which are currently set up to use PAM,
so that they compile when MKPIC=no.

Also, in the telnetd case, reorder the order of the libraries, so
that libtelnet.a comes before -ltermcap and -lutil, again to fix
link error when MKPIC=no.

Discussed with thorpej and christos.
 1.44  23-Jan-2005  manu Add PAM support to login(8)
 1.43  20-Jan-2005  xtraeme Kill __P(), ANSIfy, remove main() prototype, whitespace; WARNS=2
 1.42  05-Jan-2004  lukem Generate the copyright string from sys/conf/copyright rather than
replicating it here. Idea from Simon Burge.
 1.41  11-Dec-2003  dyoung Fix the checkflist for builds without Kerberos 4 (MKKERBEROS4=no)
and without Kerberos 4 & 5 (MKKERBEROS=no). Previously checkflist
complained of missing files.

* move kerberos- and kerberos 4-only files into new flists,
distrib/sets/lists/*/krb.*

* make the flist generators grok MKKERBEROS{,4} variables

* fix Makefiles which treat MKKERBEROS=no as MKKERBEROS5=no.
9 out of 10 experts agree that it is ludicrous to build w/
KERBEROS4 and w/o KERBEROS5.

* fix header files, also, which treat MKKERBEROS=no as MKKERBEROS5=no.

* omit some Kerberos-only subdirectories from the build as
MKKERBEROS{,4} indicate

(I acknowledge the sentiment that flists are the wrong way to go,
and that the makefiles should produce the metalog directly. That
sounds to me like the right way to go, but I am not prepared to do
revamp all the makefiles. While my approach is expedient, it fits
painlessly within the current build architecture until we are
delivered from flist purgatory, and it does not postpone our
delivery. Fair enough?)
 1.40  23-Aug-2003  lha libkrb depends on libdes, patch in private mail from
Harold Gutch logix at foobar franken de
 1.39  23-Jul-2003  itojun split MKKERBEROS4 from MKKERBEROS. based on work by lha at stacken.kth.se
(build confirmed with both MKKERBEROS4=yes and MKKERBEROS4=no)
 1.38  23-Oct-2002  itojun add DPADD.
 1.37  27-Jul-2002  christos make this compile without SUPPORT_UTMPX
 1.36  27-Jul-2002  christos Factor out the utmp/wtmp/lastlog updating and add utmpx/wtmpx/lastlogx updating.
Both are turned on for now.
 1.35  22-Mar-2002  thorpej Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.

* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)

* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.

As discussed on tech-toolchain.
 1.34  18-Oct-2000  simonb Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile.
 1.33  03-Aug-2000  assar remove -lvers, it's not used
 1.32  03-Aug-2000  assar update build infrastructure for heimdal 0.3a
 1.31  23-Jul-2000  mycroft Fix library order.
 1.30  23-Jun-2000  thorpej Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.
 1.29  20-Jun-2000  thorpej branches: 1.29.2;
Merge a bunch of things from crypto-us and crypto-intl into basesrc,
adding support for Heimdal/KTH Kerberos where easy to do so. Eliminate
bsd.crypto.mk.

There is still a bunch more work to do, but crypto is now more-or-less
fully merged into the base NetBSD distribution.
 1.28  13-Jan-2000  mjl branches: 1.28.2;
Clean up changes a bit.
 1.27  13-Jan-2000  mjl Re-enable login_cap processing, now that a non-existing login.conf
won't make it crash. Also make it less noisy in that case.
 1.26  13-Jan-2000  mjl Ack. Disable login caps, until problems are fixed.
 1.25  13-Jan-2000  mjl Add login.conf capability setting.
 1.24  20-Jul-1999  mrg optionally include CRYPTOPATH Makefile.frag files.
 1.23  12-Jul-1999  thorpej Use bsd.crypto.mk.
 1.22  12-Jul-1999  aidan Kerberos5 changes to login -- now supports forwarded TGTs.
 1.21  05-Mar-1999  kim Build domestic login on domestic systems.
Incorporated (minor) diff from domestic man page.
 1.20  18-Feb-1999  scottr Remove the crypto-related bits until such time as we have a fully-
integrated source tree. Export-controlled versions of these are now
built during the domestic build process.
 1.19  19-Oct-1997  lukem don't define WARNS=1 here
 1.18  12-Oct-1997  mycroft SRCS must be defined *before* bsd.prog.mk is included...
 1.17  12-Oct-1997  mycroft Minor changes.
 1.16  12-Oct-1997  mycroft Minor changes.
 1.15  12-Oct-1997  mycroft Pull in bsd.own.mk for SKEY, KERBEROS, KERBEROS5.
 1.14  11-Oct-1997  christos CFLAGS->CPPFLAGS; Conditionalize SKEY
 1.13  19-Aug-1997  mycroft Various changes to keep up with krb5, mostly addition of the kcontext
structure. From PR 3826, by Chris Jones.
 1.12  16-Aug-1997  lukem * add functionality to `force password change at next login'. to use,
set the pw_change field of the user to -1 (defined in <pwd.h> as
_PASSWORD_CHGNOW). based on [bin/936] by Simon Gerraty <sjg@quick.com.au>
* clean up for WARNS?=1
 1.11  23-Jun-1997  lukem Install statically linked, as suggested by mrg@eterna.com.au in [bin/1715].
 1.10  23-Dec-1994  jtc Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
 1.9  25-Jul-1994  brezak Add support for Kerberos5 authentication.
 1.8  24-May-1994  deraadt add s/key support
 1.7  30-Mar-1994  cgd some changes to make Kerberos a bit easier to use. from
Michael Graff <explorer@vorpal.com>, with some work by myself...
 1.6  07-Oct-1993  cgd always use libcrypt
 1.5  31-Jul-1993  mycroft Add RCS indentifiers.
 1.4  26-Apr-1993  cgd update to new version from uunet
 1.3  26-Apr-1993  cgd changed to use new libcrypt scheme.
 1.2  22-Mar-1993  cgd added support for using real crypt
 1.1  21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2  23-Dec-1994  jtc imported from 44lite
 1.1.1.1  21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.28.2.1  23-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.29.2.4  18-Oct-2000  tv Pull up 1.34 [simonb]:
Remove INSTALLFLAGS=-fschg.
 1.29.2.3  26-Jul-2000  mycroft Approved by thorpej:
Fix library link order.

basesrc/usr.bin/login/Makefile 1.30 -> 1.31
 1.29.2.2  24-Jun-2000  thorpej Update from trunk:
Add MK... variables to enable/disable various aspects of building
crypto support into the system. See share/mk/bsd.README for more
a full description.
 1.29.2.1  20-Jun-2000  thorpej file Makefile was added on branch netbsd-1-5 on 2000-06-24 06:59:36 +0000
 1.49.4.1  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.52.6.1  07-May-2012  riz Pull up following revision(s) (requested by christos in ticket #215):
usr.bin/login/login.c: revision 1.100
usr.bin/login/login.c: revision 1.101
usr.bin/login/login.c: revision 1.102
usr.bin/login/common.c: revision 1.4
usr.bin/login/common.h: revision 1.2
usr.bin/login/k5login.c: revision 1.28
usr.bin/login/k5login.c: revision 1.29
usr.bin/login/login.c: revision 1.99
usr.bin/login/login_pam.c: revision 1.21
usr.bin/login/Makefile: revision 1.53
usr.bin/login/Makefile: revision 1.54
usr.bin/login/Makefile: revision 1.55
usr.bin/login/k5login.c: revision 1.30
usr.bin/login/k5login.c: revision 1.31
usr.bin/login/k5login.c: revision 1.32
usr.bin/login/k5login.c: revision 1.33
make krb5 compile again. XXX: one function left that is deprecated, what's
the new equivalent?
centralize error function processing.
fix the USE_KERBEROS=no USE_PAM=no build.
remove obsolete comment.
make kerberos work again:
1. make notickets external
2. don't use the tty as part of the credential cache, since pts/1 will not work.
3. Attempt to use the newer functions, but punt for now since it does not work
yet.
don't abuse the instance variable
move more of the compat code in the compat block.
last commit before I nuke the old code.
no more KRB5_DEPRECATED
 1.52.4.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.52.4.1  23-May-2012  yamt sync with head.
 1.55.2.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.57.4.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed