mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00:00
589b8bfc35
also controlled by /var/yp/securenets). Add -u flag to turn off the privileged port check done by yp_access(); some commercial systems (IRIX, Solaris 2.x, HP-UX, and probably others) don't use a reserved port for submitting yppasswd updates. If we always enforce the check, these client systems will be unable to submit updates to us. Document securenets support and -u flag in man page. Like ypserv, you can compile rpc.yppasswdd to use the tcpwrapper package instead of securenets if you want to.
56 lines
1.6 KiB
Makefile
56 lines
1.6 KiB
Makefile
# $Id: Makefile,v 1.1.1.1 1996/02/12 15:09:01 wpaul Exp $
|
|
|
|
PROG= rpc.yppasswdd
|
|
SRCS= pw_copy.c pw_util.c yppasswd_svc.c yp_error.c ypxfr_misc.c \
|
|
yp_clnt.c yp_dblookup.c yp_access.c yppasswd_private_xdr.c \
|
|
util.c yppasswdd_server.c yppasswd_comm.c yppasswdd_main.c
|
|
|
|
.PATH: ${.CURDIR}/../../usr.sbin/ypserv ${.CURDIR}/../../usr.bin/chpass \
|
|
${.CURDIR}/../../libexec/ypxfr
|
|
|
|
MAN8= rpc.yppasswdd.8
|
|
|
|
CFLAGS+= -I. -I${.CURDIR}/../../usr.sbin/vipw \
|
|
-I${.CURDIR}/../../libexec/ypxfr -I${.CURDIR}/../../usr.bin/chpass \
|
|
-I${.CURDIR}
|
|
|
|
LDADD+=-lrpcsvc -lcrypt
|
|
|
|
CLEANFILES= yppasswd_svc.c yppasswd.h \
|
|
yppasswd_private_xdr.c yppasswd_private.h \
|
|
yp.h yp_clnt.c
|
|
|
|
RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/yppasswd.x
|
|
YP_RPCSRC= ${.DESTDIR}/usr/include/rpcsvc/yp.x
|
|
PRIV_RPCSRC= ${.CURDIR}/yppasswd_private.x
|
|
RPCGEN= rpcgen -I -C
|
|
|
|
# We need to remove the 'static' keyword from _rpcsvcstate so that
|
|
# yppasswdd_main.c can see it.
|
|
yppasswd_svc.c: ${RPCSRC} yppasswd.h
|
|
rm -f ${.TARGET}
|
|
${RPCGEN} -m ${RPCSRC} | \
|
|
sed s/"static int _rpcsvcstate"/"int _rpcsvcstate"/g > ${.TARGET}
|
|
|
|
yppasswd.h: ${RPCSRC}
|
|
${RPCGEN} -h -o ${.TARGET} ${RPCSRC}
|
|
|
|
yp.h: ${YP_RPCSRC}
|
|
${RPCGEN} -h -o ${.TARGET} ${YP_RPCSRC}
|
|
|
|
yp_clnt.c: ${YP_RPCSRC} yp.h
|
|
${RPCGEN} -DYPSERV_ONLY -l -o ${.TARGET} ${YP_RPCSRC}
|
|
|
|
yppasswd_private.h: ${PRIV_RPCSRC}
|
|
${RPCGEN} -h -o ${.TARGET} ${PRIV_RPCSRC}
|
|
|
|
yppasswd_private_xdr.c: ${PRIV_RPCSRC} yppasswd_private.h
|
|
${RPCGEN} -c -o ${.TARGET} ${PRIV_RPCSRC}
|
|
|
|
afterinstall:
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
${.CURDIR}/yppwupdate \
|
|
${DESTDIR}/usr/libexec/yppwupdate
|
|
|
|
.include <bsd.prog.mk>
|