Wed Jun 14 17:11:39 2017 UTC ()
Unbreak MKPAM=no build

Make cron(8) linkage with PAM conditional.


(kamil)
diff -r1.4 -r1.5 src/external/bsd/cron/bin/cron/Makefile

cvs diff -r1.4 -r1.5 src/external/bsd/cron/bin/cron/Makefile (expand / switch to unified diff)

--- src/external/bsd/cron/bin/cron/Makefile 2017/06/09 17:36:29 1.4
+++ src/external/bsd/cron/bin/cron/Makefile 2017/06/14 17:11:39 1.5
@@ -1,14 +1,23 @@ @@ -1,14 +1,23 @@
1# $NetBSD: Makefile,v 1.4 2017/06/09 17:36:29 christos Exp $ 1# $NetBSD: Makefile,v 1.5 2017/06/14 17:11:39 kamil Exp $
 2
 3.include <bsd.own.mk>
2 4
3BINDIR= /usr/sbin 5BINDIR= /usr/sbin
4PROG= cron 6PROG= cron
5SRCS= cron.c database.c do_command.c entry.c env.c job.c \ 7SRCS= cron.c database.c do_command.c entry.c env.c job.c \
6 misc.c pam_auth.c popen.c pw_dup.c user.c 8 misc.c popen.c pw_dup.c user.c
7CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP -DUSE_PAM 9CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP
8DPADD+=${LIBPAM} ${LIBUTIL} 10DPADD+= ${LIBUTIL}
9LDADD+=-lpam -lutil 11LDADD+= -lutil
10MAN= cron.8 12MAN= cron.8
11 13
 14.if (${MKPAM} != "no")
 15SRCS+= pam_auth.c
 16CPPFLAGS+= -DUSE_PAM
 17DPADD+= ${LIBPAM}
 18LDADD+= -lpam
 19.endif
 20
12CWARNFLAGS.clang+= -Wno-string-plus-int 21CWARNFLAGS.clang+= -Wno-string-plus-int
13 22
14.include <bsd.prog.mk> 23.include <bsd.prog.mk>