aboutsummaryrefslogtreecommitdiffstats
path: root/usr.bin/login/Makefile
blob: cb1e7e38e1603fc539875115c7f51805b41fda52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 	@(#)Makefile	8.1 (Berkeley) 7/19/93
# $FreeBSD$

.include <src.opts.mk>

CONFS=	fbtab login.conf motd.template login.access
PROG=	login
SRCS=	login.c login_fbtab.c
CFLAGS+=-DLOGALL
LIBADD=	util pam
CAP_MKDB_CMD?=	cap_mkdb

WARNS?=	5

.if ${MK_AUDIT} != "no"
SRCS+=	login_audit.c
CFLAGS+= -DUSE_BSM_AUDIT
LIBADD+=	bsm
.endif

.if ${MK_SETUID_LOGIN} != "no"
BINOWN=	root
BINMODE=4555
PRECIOUSPROG=
.endif

.include <bsd.endian.mk>
afterinstallconfig:
	${CAP_MKDB_CMD} ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf
.if defined(NO_ROOT) && defined(METALOG)
	echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel" | \
		cat -l >> ${METALOG}
.endif

.include <bsd.prog.mk>