Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/cron/bin/cron Unbreak MKPAM=no build
details: https://anonhg.NetBSD.org/src/rev/c01cea911434
branches: trunk
changeset: 354387:c01cea911434
user: kamil <kamil%NetBSD.org@localhost>
date: Wed Jun 14 17:11:39 2017 +0000
description:
Unbreak MKPAM=no build
Make cron(8) linkage with PAM conditional.
diffstat:
external/bsd/cron/bin/cron/Makefile | 19 ++++++++++++++-----
1 files changed, 14 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 444453e985c9 -r c01cea911434 external/bsd/cron/bin/cron/Makefile
--- a/external/bsd/cron/bin/cron/Makefile Wed Jun 14 17:02:16 2017 +0000
+++ b/external/bsd/cron/bin/cron/Makefile Wed Jun 14 17:11:39 2017 +0000
@@ -1,14 +1,23 @@
-# $NetBSD: Makefile,v 1.4 2017/06/09 17:36:29 christos Exp $
+# $NetBSD: Makefile,v 1.5 2017/06/14 17:11:39 kamil Exp $
+
+.include <bsd.own.mk>
BINDIR= /usr/sbin
PROG= cron
SRCS= cron.c database.c do_command.c entry.c env.c job.c \
- misc.c pam_auth.c popen.c pw_dup.c user.c
-CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP -DUSE_PAM
-DPADD+=${LIBPAM} ${LIBUTIL}
-LDADD+=-lpam -lutil
+ misc.c popen.c pw_dup.c user.c
+CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP
+DPADD+= ${LIBUTIL}
+LDADD+= -lutil
MAN= cron.8
+.if (${MKPAM} != "no")
+SRCS+= pam_auth.c
+CPPFLAGS+= -DUSE_PAM
+DPADD+= ${LIBPAM}
+LDADD+= -lpam
+.endif
+
CWARNFLAGS.clang+= -Wno-string-plus-int
.include <bsd.prog.mk>
Home |
Main Index |
Thread Index |
Old Index