xref: /freebsd/usr.bin/login/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
1c6063d0dSWarner Losh.include <src.opts.mk>
2a8b8edb2SMaxim Sobolev.include <src.tools.mk>
3e1fe3dbaSRuslan Ermilov
493c43690SEmmanuel VadotPACKAGE=	runtime
593c43690SEmmanuel Vadot
62826da43SConrad MeyerCONFS=	fbtab login.conf motd.template login.access
79b50d902SRodney W. GrimesPROG=	login
80c59c145SChristian S.J. PeronSRCS=	login.c login_fbtab.c
9c60ed00aSDag-Erling SmørgravCFLAGS+=-DLOGALL
103e11bd9eSBaptiste DaroussinLIBADD=	util pam
110c59c145SChristian S.J. Peron
12b7946da9SEd SchoutenWARNS?=	5
13b7946da9SEd Schouten
140c59c145SChristian S.J. Peron.if ${MK_AUDIT} != "no"
150c59c145SChristian S.J. PeronSRCS+=	login_audit.c
160c59c145SChristian S.J. PeronCFLAGS+= -DUSE_BSM_AUDIT
173e11bd9eSBaptiste DaroussinLIBADD+=	bsm
180c59c145SChristian S.J. Peron.endif
1908284aaaSYaroslav Tykhiy
20e1fe3dbaSRuslan Ermilov.if ${MK_SETUID_LOGIN} != "no"
2113ae56f8SDag-Erling SmørgravBINOWN=	root
2213ae56f8SDag-Erling SmørgravBINMODE=4555
23dee651ebSRuslan ErmilovPRECIOUSPROG=
2413ae56f8SDag-Erling Smørgrav.endif
259b50d902SRodney W. Grimes
26d3b764acSBrad Davis.include <bsd.endian.mk>
27d3b764acSBrad Davisafterinstallconfig:
285ec57af4SMaxim Sobolev	${CAP_MKDB_CMD} ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf
29d3b764acSBrad Davis.if defined(NO_ROOT) && defined(METALOG)
30*b58ea3e1SJessica Clarke	echo ".${DISTBASE}/etc/login.conf.db type=file mode=0644 uname=root gname=wheel" | \
31d3b764acSBrad Davis		cat -l >> ${METALOG}
32d3b764acSBrad Davis.endif
33d3b764acSBrad Davis
349b50d902SRodney W. Grimes.include <bsd.prog.mk>
35