1# @(#)Makefile 8.1 (Berkeley) 7/19/93 2# $FreeBSD$ 3 4.include <src.opts.mk> 5.include <src.tools.mk> 6 7PACKAGE= runtime 8 9CONFS= fbtab login.conf motd.template login.access 10PROG= login 11SRCS= login.c login_fbtab.c 12CFLAGS+=-DLOGALL 13LIBADD= util pam 14 15WARNS?= 5 16 17.if ${MK_AUDIT} != "no" 18SRCS+= login_audit.c 19CFLAGS+= -DUSE_BSM_AUDIT 20LIBADD+= bsm 21.endif 22 23.if ${MK_SETUID_LOGIN} != "no" 24BINOWN= root 25BINMODE=4555 26PRECIOUSPROG= 27.endif 28 29.include <bsd.endian.mk> 30afterinstallconfig: 31 ${CAP_MKDB_CMD} ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf 32.if defined(NO_ROOT) && defined(METALOG) 33 echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel" | \ 34 cat -l >> ${METALOG} 35.endif 36 37.include <bsd.prog.mk> 38