Module Name:    src
Committed By:   kamil
Date:           Wed Jun 14 17:11:39 UTC 2017

Modified Files:
        src/external/bsd/cron/bin/cron: Makefile

Log Message:
Unbreak MKPAM=no build

Make cron(8) linkage with PAM conditional.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/bsd/cron/bin/cron/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/cron/bin/cron/Makefile
diff -u src/external/bsd/cron/bin/cron/Makefile:1.4 src/external/bsd/cron/bin/cron/Makefile:1.5
--- src/external/bsd/cron/bin/cron/Makefile:1.4	Fri Jun  9 17:36:29 2017
+++ src/external/bsd/cron/bin/cron/Makefile	Wed Jun 14 17:11:39 2017
@@ -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>

Reply via email to