0435c15004
Use getpwnam before getpwuid since two users with same uids can exists (affects new login classes code only) The same fixes as in inetd: by default run `system crontab things' with daemon login class now, not restrict them to user class breaking compatibility with old way (so-called nobody limits problem) Implement user[:group][/login-class] syntax in system crontab for more flexible control (the same as in inetd)
27 lines
413 B
Makefile
27 lines
413 B
Makefile
BINDIR?= /usr/bin
|
|
|
|
PROG= crontab
|
|
SRCS= crontab.c
|
|
CFLAGS+= -I${.CURDIR}/../cron
|
|
MAN1= crontab.1
|
|
MAN5= crontab.5
|
|
|
|
.if exists(${.OBJDIR}/../lib)
|
|
LDDESTDIR+= -L${.OBJDIR}/../lib
|
|
DPADD+= ${.OBJDIR}/../lib/libcron.a
|
|
.else
|
|
LDDESTDIR+= -L${.CURDIR}/../lib
|
|
DPADD+= ${.CURDIR}/../lib/libcron.a
|
|
.endif
|
|
|
|
LDADD+= -lcron
|
|
|
|
LDADD+= -lutil
|
|
DPADD+= ${LIBUTIL}
|
|
|
|
BINOWN= root
|
|
BINMODE=4555
|
|
INSTALLFLAGS=-fschg
|
|
|
|
.include <bsd.prog.mk>
|