2005-01-12 01:42:30 +03:00
|
|
|
# $NetBSD: Makefile,v 1.36 2005/01/11 22:42:30 christos Exp $
|
1996-12-28 07:30:02 +03:00
|
|
|
# from: @(#)Makefile 8.3 (Berkeley) 4/2/94
|
|
|
|
|
2000-06-24 10:52:10 +04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
PROG= passwd
|
2005-01-12 01:42:30 +03:00
|
|
|
SRCS= local_passwd.c passwd.c
|
1994-07-27 07:28:11 +04:00
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
CPPFLAGS+=-I${.CURDIR} -DLOGIN_CAP
|
|
|
|
|
|
|
|
.if (${USE_YP} != "no")
|
|
|
|
SRCS+= yp_passwd.c
|
|
|
|
CPPFLAGS+=-DYP
|
|
|
|
DPADD+= ${LIBRPCSVC}
|
|
|
|
LDADD+= -lrpcsvc
|
2003-04-06 20:35:37 +04:00
|
|
|
LINKS+= ${BINDIR}/passwd ${BINDIR}/yppasswd
|
|
|
|
MLINKS+=passwd.1 yppasswd.1
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.endif
|
|
|
|
|
|
|
|
DPADD+= ${LIBCRYPT} ${LIBUTIL}
|
|
|
|
LDADD+= -lcrypt -lutil
|
1995-02-12 20:45:54 +03:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
BINOWN= root
|
|
|
|
BINMODE=4555
|
|
|
|
|
Split the notion of building Hesiod, Kerberos, S/key, and YP
infrastructure and using that infrastructure in programs.
* MKHESIOD, MKKERBEROS, MKSKEY, and MKYP control building
of the infratsructure (libraries, support programs, etc.)
* USE_HESIOD, USE_KERBEROS, USE_SKEY, and USE_YP control
building of support for using the corresponding API
in various libraries/programs that can use it.
As discussed on tech-toolchain.
2002-03-22 21:10:19 +03:00
|
|
|
.if (${USE_KERBEROS} != "no")
|
2000-06-20 10:00:24 +04:00
|
|
|
CPPFLAGS+= -DKERBEROS5 -I${DESTDIR}/usr/include/krb5
|
|
|
|
SRCS+= krb5_passwd.c
|
2000-08-04 02:56:29 +04:00
|
|
|
|
2002-10-23 05:25:35 +04:00
|
|
|
DPADD+= ${LIBKRB5} ${LIBCRYPTO} ${LIBASN1} ${LIBCOM_ERR} ${LIBROKEN} ${LIBCRYPT}
|
2000-08-04 02:56:29 +04:00
|
|
|
LDADD+= -lkrb5 -lcrypto -lasn1 -lcom_err -lroken -lcrypt
|
2003-04-06 20:35:37 +04:00
|
|
|
LINKS+= ${BINDIR}/passwd ${BINDIR}/kpasswd
|
|
|
|
MLINKS+= passwd.1 kpasswd.1
|
2000-06-24 10:52:10 +04:00
|
|
|
.endif
|
1999-07-13 02:11:37 +04:00
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
.include <bsd.prog.mk>
|