1# From: @(#)Makefile 8.3 (Berkeley) 4/2/94 2# $FreeBSD$ 3 4PROG= passwd 5SRCS= local_passwd.c yppasswd_private_xdr.c yppasswd_comm.c yp_passwd.c \ 6 passwd.c pw_copy.c pw_util.c pw_yp.c 7 8DPADD= ${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL} 9LDADD= -lcrypt -lrpcsvc -lutil 10.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 11 ${.CURDIR}/../rlogin ${.CURDIR}/../../libexec/ypxfr \ 12 ${.CURDIR}/../../usr.sbin/rpc.yppasswdd 13 14CFLAGS+= -DLOGIN_CAP -DCRYPT -DYP -I. -I${.CURDIR} \ 15 -I${.CURDIR}/../../usr.sbin/vipw \ 16 -I${.CURDIR}/../../usr.bin/chpass \ 17 -I${.CURDIR}/../../libexec/ypxfr \ 18 -I${.CURDIR}/../../usr.sbin/rpc.yppasswdd \ 19 -Dyp_error=warnx -DLOGGING 20 21SRCS+= ypxfr_misc.c yp_clnt.c yppasswd_clnt.c 22 23CLEANFILES= yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \ 24 yppasswd_private.h yppasswd_private_xdr.c 25 26RPCGEN= rpcgen -C 27RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x 28RPCSRC_PW= ${DESTDIR}/usr/include/rpcsvc/yppasswd.x 29RPCSRC_PRIV= ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x 30 31yp.h: ${RPCSRC} 32 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC} 33 34yp_clnt.c: ${RPCSRC} yp.h 35 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC} 36 37yppasswd.h: ${RPCSRC_PW} 38 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW} 39 40yppasswd_clnt.c: ${RPCSRC_PW} yppasswd.h 41 ${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW} 42 43yppasswd_private.h: ${RPCSRC_PRIV} 44 ${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV} 45 46yppasswd_private_xdr.c: ${RPCSRC_PRIV} yppasswd_private.h 47 ${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV} 48 49BINOWN= root 50BINMODE=4555 51MAN1=passwd.1 52LINKS=${BINDIR}/passwd ${BINDIR}/yppasswd 53MLINKS=passwd.1 yppasswd.1 54 55.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_EBONES)) 56SRCS+= kpasswd.c 57.PATH: ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \ 58 ${.CURDIR}/../../usr.bin/rlogin ${.CURDIR}/../../usr.bin/passwd \ 59 ${.CURDIR}/../../eBones/usr.bin/passwd 60 61CFLAGS+= -DKERBEROS \ 62 -I${.CURDIR}/../../eBones/include \ 63 -I${.CURDIR}/../../eBones/lib/libkadm 64# XXX not defined: ${LIBKADM}, ${LIBCOM_ERR} 65DPADD= ${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} ${LIBUTIL} 66LDADD= -lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil 67DISTRIBUTION= krb 68.endif 69 70beforeinstall: 71 [ ! -e ${DESTDIR}${BINDIR}/passwd ] || \ 72 chflags noschg ${DESTDIR}${BINDIR}/passwd 73 74afterinstall: 75 chflags schg ${DESTDIR}${BINDIR}/passwd 76 77.include <bsd.prog.mk> 78