2002-04-21 12:43:14 +00:00
|
|
|
# @(#)Makefile 8.1 (Berkeley) 7/19/93
|
1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2019-07-20 20:56:31 +00:00
|
|
|
CONFS= fbtab login.conf motd.template login.access
|
1994-05-27 12:33:43 +00:00
|
|
|
PROG= login
|
2006-12-13 06:13:32 +00:00
|
|
|
SRCS= login.c login_fbtab.c
|
2002-01-30 19:10:21 +00:00
|
|
|
CFLAGS+=-DLOGALL
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= util pam
|
2019-06-02 23:38:19 +00:00
|
|
|
CAP_MKDB_CMD?= cap_mkdb
|
2006-12-13 06:13:32 +00:00
|
|
|
|
2010-01-02 10:27:05 +00:00
|
|
|
WARNS?= 5
|
|
|
|
|
2006-12-13 06:13:32 +00:00
|
|
|
.if ${MK_AUDIT} != "no"
|
|
|
|
SRCS+= login_audit.c
|
|
|
|
CFLAGS+= -DUSE_BSM_AUDIT
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD+= bsm
|
2006-12-13 06:13:32 +00:00
|
|
|
.endif
|
2006-03-06 12:31:25 +00:00
|
|
|
|
2006-03-17 18:54:44 +00:00
|
|
|
.if ${MK_SETUID_LOGIN} != "no"
|
2004-02-29 06:39:11 +00:00
|
|
|
BINOWN= root
|
2004-02-27 17:50:59 +00:00
|
|
|
BINMODE=4555
|
2004-11-03 18:01:21 +00:00
|
|
|
PRECIOUSPROG=
|
2004-02-27 17:50:59 +00:00
|
|
|
.endif
|
1994-05-27 12:33:43 +00:00
|
|
|
|
2018-08-30 15:52:03 +00:00
|
|
|
.include <bsd.endian.mk>
|
|
|
|
afterinstallconfig:
|
2019-06-02 23:38:19 +00:00
|
|
|
${CAP_MKDB_CMD} ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf
|
2018-08-30 15:52:03 +00:00
|
|
|
.if defined(NO_ROOT) && defined(METALOG)
|
|
|
|
echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel" | \
|
|
|
|
cat -l >> ${METALOG}
|
|
|
|
.endif
|
|
|
|
|
1994-05-27 12:33:43 +00:00
|
|
|
.include <bsd.prog.mk>
|