head	1.50;
access;
symbols
	RELENG_8_4:1.50.0.2
	RELENG_9_1_0_RELEASE:1.48.2.1.4.2
	RELENG_9_1:1.48.2.1.0.4
	RELENG_9_1_BP:1.48.2.1
	RELENG_8_3_0_RELEASE:1.47.10.1.8.1
	RELENG_8_3:1.47.10.1.0.8
	RELENG_8_3_BP:1.47.10.1
	RELENG_9_0_0_RELEASE:1.48.2.1.2.1
	RELENG_9_0:1.48.2.1.0.2
	RELENG_9_0_BP:1.48.2.1
	RELENG_9:1.48.0.2
	RELENG_9_BP:1.48
	RELENG_7_4_0_RELEASE:1.47.14.1
	RELENG_8_2_0_RELEASE:1.47.10.1.6.1
	RELENG_7_4:1.47.0.14
	RELENG_7_4_BP:1.47
	RELENG_8_2:1.47.10.1.0.6
	RELENG_8_2_BP:1.47.10.1
	RELENG_8_1_0_RELEASE:1.47.10.1.4.1
	RELENG_8_1:1.47.10.1.0.4
	RELENG_8_1_BP:1.47.10.1
	RELENG_7_3_0_RELEASE:1.47.12.1
	RELENG_7_3:1.47.0.12
	RELENG_7_3_BP:1.47
	RELENG_8_0_0_RELEASE:1.47.10.1.2.1
	RELENG_8_0:1.47.10.1.0.2
	RELENG_8_0_BP:1.47.10.1
	RELENG_8:1.47.0.10
	RELENG_8_BP:1.47
	RELENG_7_2_0_RELEASE:1.47.8.1
	RELENG_7_2:1.47.0.8
	RELENG_7_2_BP:1.47
	RELENG_7_1_0_RELEASE:1.47.6.1
	RELENG_6_4_0_RELEASE:1.46.12.1
	RELENG_7_1:1.47.0.6
	RELENG_7_1_BP:1.47
	RELENG_6_4:1.46.0.12
	RELENG_6_4_BP:1.46
	RELENG_7_0_0_RELEASE:1.47
	RELENG_6_3_0_RELEASE:1.46
	RELENG_7_0:1.47.0.4
	RELENG_7_0_BP:1.47
	RELENG_6_3:1.46.0.10
	RELENG_6_3_BP:1.46
	RELENG_7:1.47.0.2
	RELENG_7_BP:1.47
	RELENG_6_2_0_RELEASE:1.46
	RELENG_6_2:1.46.0.8
	RELENG_6_2_BP:1.46
	RELENG_5_5_0_RELEASE:1.45
	RELENG_5_5:1.45.0.14
	RELENG_5_5_BP:1.45
	RELENG_6_1_0_RELEASE:1.46
	RELENG_6_1:1.46.0.6
	RELENG_6_1_BP:1.46
	RELENG_6_0_0_RELEASE:1.46
	RELENG_6_0:1.46.0.4
	RELENG_6_0_BP:1.46
	RELENG_6:1.46.0.2
	RELENG_6_BP:1.46
	RELENG_5_4_0_RELEASE:1.45
	RELENG_5_4:1.45.0.12
	RELENG_5_4_BP:1.45
	RELENG_4_11_0_RELEASE:1.40.2.3
	RELENG_4_11:1.40.2.3.0.10
	RELENG_4_11_BP:1.40.2.3
	RELENG_5_3_0_RELEASE:1.45
	RELENG_5_3:1.45.0.10
	RELENG_5_3_BP:1.45
	RELENG_5:1.45.0.8
	RELENG_5_BP:1.45
	RELENG_4_10_0_RELEASE:1.40.2.3
	RELENG_4_10:1.40.2.3.0.8
	RELENG_4_10_BP:1.40.2.3
	RELENG_5_2_1_RELEASE:1.45
	RELENG_5_2_0_RELEASE:1.45
	RELENG_5_2:1.45.0.6
	RELENG_5_2_BP:1.45
	RELENG_4_9_0_RELEASE:1.40.2.3
	RELENG_4_9:1.40.2.3.0.6
	RELENG_4_9_BP:1.40.2.3
	RELENG_5_1_0_RELEASE:1.45
	RELENG_5_1:1.45.0.4
	RELENG_5_1_BP:1.45
	RELENG_4_8_0_RELEASE:1.40.2.3
	RELENG_4_8:1.40.2.3.0.4
	RELENG_4_8_BP:1.40.2.3
	RELENG_5_0_0_RELEASE:1.45
	RELENG_5_0:1.45.0.2
	RELENG_5_0_BP:1.45
	RELENG_4_7_0_RELEASE:1.40.2.3
	RELENG_4_7:1.40.2.3.0.2
	RELENG_4_7_BP:1.40.2.3
	RELENG_4_6_2_RELEASE:1.40.2.2
	RELENG_4_6_1_RELEASE:1.40.2.2
	RELENG_4_6_0_RELEASE:1.40.2.2
	RELENG_4_6:1.40.2.2.0.2
	RELENG_4_6_BP:1.40.2.2
	RELENG_4_5_0_RELEASE:1.40.2.1
	RELENG_4_5:1.40.2.1.0.4
	RELENG_4_5_BP:1.40.2.1
	RELENG_4_4_0_RELEASE:1.40.2.1
	RELENG_4_4:1.40.2.1.0.2
	RELENG_4_4_BP:1.40.2.1
	RELENG_4_3_0_RELEASE:1.40
	RELENG_4_3:1.40.0.4
	RELENG_4_3_BP:1.40
	RELENG_4_2_0_RELEASE:1.40
	RELENG_4_1_1_RELEASE:1.40
	PRE_SMPNG:1.40
	RELENG_4_1_0_RELEASE:1.40
	RELENG_3_5_0_RELEASE:1.30.2.4
	RELENG_4_0_0_RELEASE:1.40
	RELENG_4:1.40.0.2
	RELENG_4_BP:1.40
	RELENG_3_4_0_RELEASE:1.30.2.4
	RELENG_3_3_0_RELEASE:1.30.2.3
	RELENG_3_2_PAO:1.30.2.1.0.2
	RELENG_3_2_PAO_BP:1.30.2.1
	RELENG_3_2_0_RELEASE:1.30.2.1
	RELENG_3_1_0_RELEASE:1.30.2.1
	RELENG_3:1.30.0.2
	RELENG_3_BP:1.30
	RELENG_2_2_8_RELEASE:1.19.2.3
	RELENG_3_0_0_RELEASE:1.30
	RELENG_2_2_7_RELEASE:1.19.2.3
	RELENG_2_2_6_RELEASE:1.19.2.3
	RELENG_2_2_5_RELEASE:1.19.2.2
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.19.2.2
	RELENG_2_2_1_RELEASE:1.19.2.1
	RELENG_2_2_0_RELEASE:1.19.2.1
	RELENG_2_1_7_RELEASE:1.14.2.3
	RELENG_2_1_6_1_RELEASE:1.14.2.3
	RELENG_2_1_6_RELEASE:1.14.2.3
	RELENG_2_2:1.19.0.2
	RELENG_2_2_BP:1.19
	RELENG_2_1_5_RELEASE:1.14.2.3
	RELENG_2_1_0_RELEASE:1.14.2.3
	RELENG_2_1_0:1.14.0.2
	RELENG_2_1_0_BP:1.14
	RELENG_2_0_5_RELEASE:1.13.2.1
	RELENG_2_0_5:1.13.0.2
	RELENG_2_0_5_BP:1.13
	RELENG_2_0_5_ALPHA:1.13
	RELEASE_2_0:1.4
	BETA_2_0:1.4
	ALPHA_2_0:1.4.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.50
date	2012.11.27.16.54.55;	author svnexp;	state Exp;
branches
	1.50.2.1;
next	1.49;

1.49
date	2012.11.17.01.54.27;	author svnexp;	state Exp;
branches;
next	1.48;

1.48
date	2010.01.02.10.27.05;	author ed;	state Exp;
branches
	1.48.2.1;
next	1.47;

1.47
date	2006.03.17.18.54.39;	author ru;	state Exp;
branches
	1.47.2.1
	1.47.6.1
	1.47.8.1
	1.47.10.1
	1.47.12.1
	1.47.14.1;
next	1.46;

1.46
date	2004.12.29.08.16.39;	author ache;	state Exp;
branches
	1.46.2.1
	1.46.12.1;
next	1.45;

1.45
date	2002.04.15.03.02.57;	author des;	state Exp;
branches;
next	1.44;

1.44
date	2002.04.13.23.31.27;	author des;	state Exp;
branches;
next	1.43;

1.43
date	2002.03.18.12.55.28;	author cjc;	state Exp;
branches;
next	1.42;

1.42
date	2001.09.13.06.48.17;	author ru;	state Exp;
branches;
next	1.41;

1.41
date	2001.03.27.10.52.03;	author ru;	state Exp;
branches;
next	1.40;

1.40
date	2000.03.09.06.28.44;	author kris;	state Exp;
branches
	1.40.2.1;
next	1.39;

1.39
date	2000.02.24.21.06.16;	author markm;	state Exp;
branches;
next	1.38;

1.38
date	99.12.18.13.55.15;	author peter;	state Exp;
branches;
next	1.37;

1.37
date	99.12.16.10.55.42;	author marcel;	state Exp;
branches;
next	1.36;

1.36
date	99.10.30.09.19.30;	author roger;	state Exp;
branches;
next	1.35;

1.35
date	99.09.19.22.26.01;	author markm;	state Exp;
branches;
next	1.34;

1.34
date	99.09.06.17.30.02;	author peter;	state Exp;
branches;
next	1.33;

1.33
date	99.08.28.01.04.49;	author peter;	state Exp;
branches;
next	1.32;

1.32
date	99.07.29.16.30.35;	author sheldonh;	state Exp;
branches;
next	1.31;

1.31
date	99.02.14.13.56.15;	author des;	state Exp;
branches;
next	1.30;

1.30
date	98.09.19.22.42.04;	author obrien;	state Exp;
branches
	1.30.2.1;
next	1.29;

1.29
date	98.08.06.21.37.51;	author markm;	state Exp;
branches;
next	1.28;

1.28
date	98.05.10.16.01.34;	author bde;	state Exp;
branches;
next	1.27;

1.27
date	98.03.06.14.02.04;	author bde;	state Exp;
branches;
next	1.26;

1.26
date	97.09.28.08.51.02;	author markm;	state Exp;
branches;
next	1.25;

1.25
date	97.07.29.15.45.04;	author wpaul;	state Exp;
branches;
next	1.24;

1.24
date	97.02.26.05.31.52;	author mpp;	state Exp;
branches;
next	1.23;

1.23
date	97.02.22.19.56.34;	author peter;	state Exp;
branches;
next	1.22;

1.22
date	97.02.10.15.42.09;	author davidn;	state Exp;
branches;
next	1.21;

1.21
date	97.01.14.07.03.35;	author jkh;	state Exp;
branches;
next	1.20;

1.20
date	96.11.03.03.11.54;	author jkh;	state Exp;
branches;
next	1.19;

1.19
date	96.02.23.16.08.23;	author wpaul;	state Exp;
branches
	1.19.2.1;
next	1.18;

1.18
date	95.09.14.21.02.16;	author gibbs;	state Exp;
branches;
next	1.17;

1.17
date	95.09.03.11.40.37;	author markm;	state Exp;
branches;
next	1.16;

1.16
date	95.08.17.11.26.42;	author bde;	state Exp;
branches;
next	1.15;

1.15
date	95.08.13.16.07.28;	author wpaul;	state Exp;
branches;
next	1.14;

1.14
date	95.06.11.19.32.12;	author rgrimes;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	95.04.01.19.19.15;	author wpaul;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	95.02.14.21.08.45;	author rgrimes;	state Exp;
branches;
next	1.11;

1.11
date	95.02.14.15.38.13;	author wpaul;	state Exp;
branches;
next	1.10;

1.10
date	95.02.11.18.20.06;	author ache;	state Exp;
branches;
next	1.9;

1.9
date	95.02.01.23.46.20;	author wpaul;	state Exp;
branches;
next	1.8;

1.8
date	95.02.01.05.55.18;	author wpaul;	state Exp;
branches;
next	1.7;

1.7
date	95.01.31.08.33.59;	author wpaul;	state Exp;
branches;
next	1.6;

1.6
date	95.01.19.21.03.48;	author wollman;	state Exp;
branches;
next	1.5;

1.5
date	94.11.20.23.21.06;	author wollman;	state Exp;
branches;
next	1.4;

1.4
date	94.09.29.13.05.44;	author csgr;	state Exp;
branches;
next	1.3;

1.3
date	94.08.20.21.18.30;	author csgr;	state Exp;
branches;
next	1.2;

1.2
date	94.08.05.20.36.26;	author wollman;	state Exp;
branches;
next	1.1;

1.1
date	94.05.27.12.32.27;	author rgrimes;	state Exp;
branches
	1.1.1.1;
next	;

1.50.2.1
date	2012.11.27.16.54.55;	author svnexp;	state dead;
branches;
next	1.50.2.2;

1.50.2.2
date	2013.03.28.13.06.08;	author svnexp;	state Exp;
branches;
next	;

1.48.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.48.2.1.2.1
	1.48.2.1.4.1;
next	1.48.2.2;

1.48.2.2
date	2012.11.17.11.37.40;	author svnexp;	state Exp;
branches;
next	;

1.48.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.48.2.1.2.2;

1.48.2.1.2.2
date	2012.11.17.08.37.36;	author svnexp;	state Exp;
branches;
next	;

1.48.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.48.2.1.4.2;

1.48.2.1.4.2
date	2012.11.17.08.48.28;	author svnexp;	state Exp;
branches;
next	;

1.47.2.1
date	2012.11.17.08.08.39;	author svnexp;	state Exp;
branches;
next	;

1.47.6.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.47.8.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.47.10.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.47.10.1.2.1
	1.47.10.1.4.1
	1.47.10.1.6.1
	1.47.10.1.8.1;
next	1.47.10.2;

1.47.10.2
date	2012.11.17.10.37.18;	author svnexp;	state Exp;
branches;
next	;

1.47.10.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.47.10.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.47.10.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.47.10.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.47.10.1.8.2;

1.47.10.1.8.2
date	2012.11.17.08.25.51;	author svnexp;	state Exp;
branches;
next	;

1.47.12.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.47.14.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.47.14.2;

1.47.14.2
date	2012.11.17.08.17.43;	author svnexp;	state Exp;
branches;
next	;

1.46.2.1
date	2012.11.17.07.45.52;	author svnexp;	state Exp;
branches;
next	;

1.46.12.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.40.2.1
date	2001.04.25.11.29.32;	author ru;	state Exp;
branches;
next	1.40.2.2;

1.40.2.2
date	2002.03.24.09.00.11;	author cjc;	state Exp;
branches;
next	1.40.2.3;

1.40.2.3
date	2002.07.17.19.08.22;	author ru;	state Exp;
branches;
next	1.40.2.4;

1.40.2.4
date	2012.11.17.07.27.44;	author svnexp;	state Exp;
branches;
next	;

1.30.2.1
date	99.02.14.14.09.44;	author des;	state Exp;
branches;
next	1.30.2.2;

1.30.2.2
date	99.07.29.16.37.09;	author sheldonh;	state Exp;
branches;
next	1.30.2.3;

1.30.2.3
date	99.08.29.15.31.52;	author peter;	state Exp;
branches;
next	1.30.2.4;

1.30.2.4
date	99.11.18.13.33.53;	author roger;	state Exp;
branches;
next	;

1.19.2.1
date	96.11.05.20.13.30;	author phk;	state Exp;
branches;
next	1.19.2.2;

1.19.2.2
date	97.05.10.21.32.32;	author davidn;	state Exp;
branches;
next	1.19.2.3;

1.19.2.3
date	98.02.18.12.10.41;	author markm;	state Exp;
branches;
next	1.19.2.4;

1.19.2.4
date	99.09.05.11.32.58;	author peter;	state Exp;
branches;
next	;

1.14.2.1
date	95.08.26.09.53.02;	author davidg;	state Exp;
branches;
next	1.14.2.2;

1.14.2.2
date	95.09.15.17.21.51;	author gibbs;	state Exp;
branches;
next	1.14.2.3;

1.14.2.3
date	95.10.06.01.58.43;	author davidg;	state Exp;
branches;
next	1.14.2.4;

1.14.2.4
date	99.09.05.11.35.14;	author peter;	state Exp;
branches;
next	;

1.13.2.1
date	95.06.07.05.52.05;	author jkh;	state Exp;
branches;
next	;

1.1.1.1
date	94.05.27.12.32.28;	author rgrimes;	state Exp;
branches;
next	;


desc
@@


1.50
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 243617
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r243617 | pjd | 2012-11-27 16:23:12 +0000 (Tue, 27 Nov 2012) | 4 lines
## SVN ##
## SVN ## Respect NO_FSCHG and don't set 'schg' flag on passwd/yppasswd is defined.
## SVN ##
## SVN ## MFC after:	2 weeks
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# From:	@@(#)Makefile	8.3 (Berkeley) 4/2/94
# $FreeBSD: head/usr.bin/passwd/Makefile 243617 2012-11-27 16:23:12Z pjd $

.include <bsd.own.mk>

PROG	 = passwd
BINOWN	 = root
BINMODE	 = 4555
DPADD	 = ${LIBPAM}
LDADD	 = ${MINUSLPAM}
.if ${MK_NIS} != "no"
LINKS	 = ${BINDIR}/passwd ${BINDIR}/yppasswd
MLINKS	 = passwd.1 yppasswd.1
.endif

beforeinstall:
.for i in passwd yppasswd
	[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
		chflags noschg ${DESTDIR}${BINDIR}/$i || true
.endfor

.if !defined(NO_FSCHG)
afterinstall:
	-chflags schg ${DESTDIR}${BINDIR}/passwd
.endif

.include <bsd.prog.mk>
@


1.50.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:06:08 +0000
@
text
@d1 27
@


1.50.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 26
# From:	@@(#)Makefile	8.3 (Berkeley) 4/2/94
# $FreeBSD: releng/8.4/usr.bin/passwd/Makefile 156813 2006-03-17 18:54:44Z ru $

.include <bsd.own.mk>

PROG	 = passwd
BINOWN	 = root
BINMODE	 = 4555
DPADD	 = ${LIBPAM}
LDADD	 = ${MINUSLPAM}
.if ${MK_NIS} != "no"
LINKS	 = ${BINDIR}/passwd ${BINDIR}/yppasswd
MLINKS	 = passwd.1 yppasswd.1
.endif
WARNS	?= 4

beforeinstall:
.for i in passwd yppasswd
	[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
		chflags noschg ${DESTDIR}${BINDIR}/$i || true
.endfor

afterinstall:
	-chflags schg ${DESTDIR}${BINDIR}/passwd

.include <bsd.prog.mk>
@


1.49
log
@Switching exporter and resync
@
text
@d2 1
a2 1
# $FreeBSD: head/usr.bin/passwd/Makefile 201386 2010-01-02 10:27:05Z ed $
d22 1
d25 1
@


1.48
log
@SVN rev 201386 on 2010-01-02 10:27:05Z by ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.48.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.48.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/9/usr.bin/passwd/Makefile 201386 2010-01-02 10:27:05Z ed $
@


1.48.2.1.4.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.48.2.1.4.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/usr.bin/passwd/Makefile 201386 2010-01-02 10:27:05Z ed $
@


1.48.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.48.2.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/usr.bin/passwd/Makefile 201386 2010-01-02 10:27:05Z ed $
@


1.47
log
@Reimplementation of world/kernel build options.  For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by:	imp, jhb, kris, phk, ru (all bugs are mine)
@
text
@a14 1
WARNS	?= 4
@


1.47.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/usr.bin/passwd/Makefile 156813 2006-03-17 18:54:44Z ru $
@


1.47.14.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.47.14.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/usr.bin/passwd/Makefile 156813 2006-03-17 18:54:44Z ru $
@


1.47.12.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.47.10.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.47.10.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/usr.bin/passwd/Makefile 156813 2006-03-17 18:54:44Z ru $
@


1.47.10.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.47.10.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/usr.bin/passwd/Makefile 156813 2006-03-17 18:54:44Z ru $
@


1.47.10.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.47.10.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.47.10.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.47.8.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.47.6.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.46
log
@NO_NIS cleanup: LINKS and MLINKS
@
text
@d4 2
d11 1
a11 1
.if !defined(NO_NIS)
@


1.46.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/usr.bin/passwd/Makefile 139397 2004-12-29 08:16:39Z ache $
@


1.46.12.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.45
log
@PAMified passwd(1).  Some NIS-related issues remain to be solved, but this
should work for everyday use.

Sponsored by:	DARPA, NAI Labs
@
text
@d9 1
d12 1
@


1.44
log
@Remove bogus dependency on rlogin.
@
text
@d4 8
a11 91
# NOPAM is used by PicoBSD

.if defined(NOPAM)

PROG=	passwd
SRCS=	local_passwd.c passwd.c pw_copy.c pw_util.c 

GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \
	yppasswd_private.h yppasswd_private_clnt.c yppasswd_private_xdr.c
CFLAGS+=-Wall

DPADD=	${LIBCRYPT} ${LIBUTIL}
LDADD=	-lcrypt -lutil
.PATH:  ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw

CFLAGS+= -DLOGIN_CAP -DCRYPT -I. -I${.CURDIR} \
	-I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass \
	-I${.CURDIR}/../../lib/libc/gen \
	-Dyp_error=warnx -DLOGGING

.else

PROG=	passwd
SRCS=	local_passwd.c passwd.c pw_copy.c pw_util.c pw_yp.c \
	yp_passwd.c ypxfr_misc.c ${GENSRCS}
GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \
	yppasswd_private.h yppasswd_private_clnt.c yppasswd_private_xdr.c
CFLAGS+=-Wall

DPADD=	${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL}
LDADD=	-lcrypt -lrpcsvc -lutil
.PATH:  ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
	${.CURDIR}/../../libexec/ypxfr \
	${.CURDIR}/../../usr.sbin/rpc.yppasswdd

CFLAGS+= -DLOGIN_CAP -DCRYPT -DYP -I. -I${.CURDIR} \
	-I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass \
	-I${.CURDIR}/../../libexec/ypxfr \
	-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd \
	-I${.CURDIR}/../../lib/libc/gen \
	-Dyp_error=warnx -DLOGGING

.endif

CLEANFILES= ${GENSRCS}

RPCGEN= rpcgen -C
RPCSRC= ${DESTDIR}/usr/include/rpcsvc/yp.x
RPCSRC_PW= ${DESTDIR}/usr/include/rpcsvc/yppasswd.x
RPCSRC_PRIV= ${.CURDIR}/../../usr.sbin/rpc.yppasswdd/yppasswd_private.x

yp.h: ${RPCSRC}
	${RPCGEN} -h -o ${.TARGET} ${RPCSRC}

yp_clnt.c: ${RPCSRC} yp.h
	${RPCGEN} -l -o ${.TARGET} ${RPCSRC}

yppasswd.h: ${RPCSRC_PW}
	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PW}

yppasswd_clnt.c: ${RPCSRC_PW}
	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PW}

yppasswd_private.h: ${RPCSRC_PRIV}
	${RPCGEN} -h -o ${.TARGET} ${RPCSRC_PRIV}

yppasswd_private_xdr.c: ${RPCSRC_PRIV}
	${RPCGEN} -c -o ${.TARGET} ${RPCSRC_PRIV}

yppasswd_private_clnt.c: ${RPCSRC_PRIV}
	${RPCGEN} -l -o ${.TARGET} ${RPCSRC_PRIV}

BINOWN=	root
BINMODE=4555
LINKS=${BINDIR}/passwd ${BINDIR}/yppasswd
MLINKS=passwd.1 yppasswd.1

.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && !defined(NOCRYPT) && !defined(NO_OPENSSL) && defined(MAKE_KERBEROS4)
SRCS+=	kpasswd_standalone.c
.PATH:	${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
	${.CURDIR}/../../usr.bin/passwd \
	${.CURDIR}/../../crypto/kerberosIV/kadmin

CFLAGS+=	-DKERBEROS
# XXX not defined: ${LIBKADM}, ${LIBCOM_ERR}
DPADD=	${LIBKADM} ${LIBKRB} ${LIBCRYPTO} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} ${LIBUTIL}
LDADD=	-lkadm -lkrb -lcrypto -lcrypt -lrpcsvc -lcom_err -lutil
DISTRIBUTION=	krb4
.endif
@


1.43
log
@Fix world breakage introduced by my recent modifications to
chpass(8). The relations between libc, libpam, chpass, passwd, and
vipw are a mess and probably should be cleaned up.

Submitted by:	Peter Pentchev <roam@@ringlet.net>
@
text
@d17 1
a17 2
.PATH:  ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
	${.CURDIR}/../rlogin 
d37 1
a37 1
	${.CURDIR}/../rlogin ${.CURDIR}/../../libexec/ypxfr \
d86 1
a86 1
	${.CURDIR}/../../usr.bin/rlogin ${.CURDIR}/../../usr.bin/passwd \
@


1.42
log
@Set BINOWN=root explicitly for setuid root binaries.

This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.41 2001/03/27 10:52:03 ru Exp $
d23 1
d46 1
@


1.41
log
@MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.40 2000/03/09 06:28:44 kris Exp $
d77 1
@


1.40
log
@Buildworld fixes for NO_OPENSSH and NO_OPENSSL

Approved by:	jkh
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.39 2000/02/24 21:06:16 markm Exp $
a77 1
MAN1=passwd.1
@


1.40.2.1
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.40 2000/03/09 06:28:44 kris Exp $
d78 1
@


1.40.2.2
log
@MFC: Using chpass(1), it was possible for an unprivileged user to tie
up the password information (no one else can vipw(8), chpass(1), or
even passwd(1)), either on purpose or by accident, until an
administrator manually intervened.

This time take care of the cross-dependencies among the password tools
(passwd(1) in this case) so world doesn't get broken.

	src/usr.bin/chpass/chpass.c		1.19
	src/usr.bin/chpass/pw_copy.c		1.11
	src/usr.bin/chpass/pw_copy.h		1.2, 1.4
	src/usr.bin/passwd/Makefile		1.43
	src/usr.bin/passwd/local_passwd.c	1.28

PR:		i386/35816
@
text
@d2 1
a2 1
# $FreeBSD$
d9 1
a9 1
SRCS=	local_passwd.c passwd.c pw_copy.c pw_scan.c pw_util.c 
d17 1
a17 2
.PATH:	${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/pwd_mkdb \
	${.CURDIR}/../../usr.sbin/vipw \
a22 1
	-I${.CURDIR}/../../usr.sbin/pwd_mkdb \
d28 1
a28 1
SRCS=	local_passwd.c passwd.c pw_copy.c pw_scan.c pw_util.c pw_yp.c \
d36 1
a36 2
.PATH:	${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/pwd_mkdb \
	${.CURDIR}/../../usr.sbin/vipw \
a43 1
	-I${.CURDIR}/../../usr.sbin/pwd_mkdb \
@


1.40.2.3
log
@MFC: bsd.init.mk, don't include bsd.own.mk from sys.mk, assorted fixes.
@
text
@d85 1
a85 1
.if defined(MAKE_KERBEROS4) && !defined(NO_OPENSSL) && !defined(NOCRYPT)
@


1.40.2.4
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/usr.bin/passwd/Makefile 100260 2002-07-17 19:08:24Z ru $
@


1.39
log
@Use libcrypto in place of libdes.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.38 1999/12/18 13:55:15 peter Exp $
d82 1
a82 1
.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && (defined(MAKE_KERBEROS4))
@


1.38
log
@Revert the libcrypt/libmd stuff back to how it was.  This should not have
happened as it was working around problems elsewhere (ie: binutils/ld
not doing the right thing according to the ELF design).  libcrypt has
been adjusted to not need the runtime -lmd.  It's still not quite right
(ld is supposed to work damnit) but at least it doesn't impact all the
users of libcrypt in Marcel's cross-build model.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.37 1999/12/16 10:55:42 marcel Exp $
d90 2
a91 2
DPADD=	${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} ${LIBUTIL}
LDADD=	-lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil
@


1.37
log
@Add libmd (or move it after libcrypt). We don't want the linker to be
smart because it will definitely get it wrong. This popped up during
cross-linking.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.36 1999/10/30 09:19:30 roger Exp $
d15 2
a16 2
DPADD=	${LIBCRYPT} ${LIBUTIL} ${LIBMD}
LDADD=	-lcrypt -lutil -lmd
d34 2
a35 2
DPADD=	${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL} ${LIBMD}
LDADD=	-lcrypt -lrpcsvc -lutil -lmd
d90 2
a91 3
DPADD=	${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} \
	${LIBUTIL} ${LIBMD}
LDADD=	-lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil -lmd
@


1.36
log
@Update PicoBSD so it does not need to patch the passwd Makefile.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.35 1999/09/19 22:26:01 markm Exp $
d15 2
a16 2
DPADD=	${LIBCRYPT} ${LIBUTIL}
LDADD=	-lcrypt -lutil
d34 2
a35 2
DPADD=	${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL}
LDADD=	-lcrypt -lrpcsvc -lutil
d90 3
a92 2
DPADD=	${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} ${LIBUTIL}
LDADD=	-lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil
@


1.35
log
@Change edistribution to krb4 in preaparation for K5
@
text
@d2 24
a25 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.34 1999/09/06 17:30:02 peter Exp $
d46 2
@


1.34
log
@Unifdef -DPASSWD_IGNORE_COMMENTS.  This wasn't really optional and
we have enough pseudo-options already.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.33 1999/08/28 01:04:49 peter Exp $
d67 1
a67 1
DISTRIBUTION=	krb
@


1.33
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d9 1
a9 1
CFLAGS+=-Wall -DPASSWD_IGNORE_COMMENTS
@


1.32
log
@Allow comments and blank lines as advertised in passwd(5).

PR:	12828
Submitted by:	Yasuhiro Fukuma <yasuf@@big.or.jp>
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.31 1999/02/14 13:56:15 des Exp $
@


1.31
log
@Ignore errors from chflags. This makes it possible to make installworld
with DESTDIR set to an NFS-mounted file system.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.30 1998/09/19 22:42:04 obrien Exp $
d9 1
a9 1
CFLAGS+=-Wall
@


1.30
log
@Remove useless `BINOWN=root' now that it is the default.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.29 1998/08/06 21:37:51 markm Exp $
d73 1
a73 1
		chflags noschg ${DESTDIR}${BINDIR}/$i
d77 1
a77 1
	chflags schg ${DESTDIR}${BINDIR}/passwd
@


1.30.2.1
log
@MFC: Ignore errors from chflags.

Approved by:	jkh
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.30 1998/09/19 22:42:04 obrien Exp $
d73 1
a73 1
		chflags noschg ${DESTDIR}${BINDIR}/$i || true
d77 1
a77 1
	-chflags schg ${DESTDIR}${BINDIR}/passwd
@


1.30.2.2
log
@YACC: Fix handling of comments and blank lines.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.30.2.1 1999/02/14 14:09:44 des Exp $
d9 1
a9 1
CFLAGS+=-Wall -DPASSWD_IGNORE_COMMENTS
@


1.30.2.3
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.30.2.4
log
@MFC: Update PicoBSD so it does not need to patch the passwd Makefile
@
text
@d2 1
a2 24
# $FreeBSD: src/usr.bin/passwd/Makefile,v 1.30.2.3 1999/08/29 15:31:52 peter Exp $

# NOPAM is used by PicoBSD

.if defined(NOPAM)

PROG=	passwd
SRCS=	local_passwd.c passwd.c pw_copy.c pw_util.c 

GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \
	yppasswd_private.h yppasswd_private_clnt.c yppasswd_private_xdr.c
CFLAGS+=-Wall -DPASSWD_IGNORE_COMMENTS

DPADD=	${LIBCRYPT} ${LIBUTIL}
LDADD=	-lcrypt -lutil
.PATH:  ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
	${.CURDIR}/../rlogin 

CFLAGS+= -DLOGIN_CAP -DCRYPT -I. -I${.CURDIR} \
	-I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass \
	-Dyp_error=warnx -DLOGGING

.else
a22 2

.endif
@


1.29
log
@Fix LIBDIR (for aout/ELF).
@
text
@d2 1
a2 1
# $Id$
a51 1
BINOWN=	root
@


1.28
log
@Fixed missing dependencies on headers generated by rpcgen, as usual.
Removed bogus dependencies of generated .c files on generated headers.
Sorted sources lists.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.27 1998/03/06 14:02:04 bde Exp $
d58 1
a58 1
.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS4))
@


1.27
log
@Fixed `make -jN' for large N, as usual.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.26 1997/09/28 08:51:02 markm Exp $
d5 4
a8 2
SRCS=	local_passwd.c yppasswd_private_xdr.c yp_passwd.c \
	passwd.c pw_copy.c pw_util.c pw_yp.c
d24 1
a24 5
SRCS+=	ypxfr_misc.c yp_clnt.c yppasswd_clnt.c yppasswd_private_clnt.c \
	yppasswd_private.h

CLEANFILES= yp.h yp_clnt.c yppasswd.h yppasswd_clnt.c \
	    yppasswd_private.h yppasswd_private_xdr.c yppasswd_private_clnt.c
d40 1
a40 1
yppasswd_clnt.c: ${RPCSRC_PW} yppasswd.h
d46 1
a46 1
yppasswd_private_xdr.c: ${RPCSRC_PRIV} yppasswd_private.h
d49 1
a49 1
yppasswd_private_clnt.c: ${RPCSRC_PRIV} yppasswd_private.h
@


1.26
log
@Changes for KTH KerberosIV.
Also quieten -Wall a bit.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.25 1997/07/29 15:45:04 wpaul Exp $
d22 2
a23 1
SRCS+= ypxfr_misc.c yp_clnt.c yppasswd_clnt.c yppasswd_private_clnt.c
@


1.25
log
@Modify passwd and chpass to use new AF_LOCAL RPC interface instead of
old kludged-up 'yppasswd_comm' support.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.2 1997/07/28 18:31:45 wpaul Exp $
d7 1
d59 2
a60 2
.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_EBONES))
SRCS+=	kpasswd.c
d63 1
a63 1
	${.CURDIR}/../../eBones/usr.bin/passwd
d65 1
a65 3
CFLAGS+=	-DKERBEROS \
		-I${.CURDIR}/../../eBones/include \
		-I${.CURDIR}/../../eBones/lib/libkadm
@


1.24
log
@If an administrator somehow manages to break the hardlinks
on chpass & passwd and turn the links into individual files
with the schg flag set, make install will fail to install all
of the proper links.

Fixed by removing the schg flag on all of the links before installing.

Closes PR# 2040.

Submitted by:	 Ph. Charnier <charnier@@xp11.frmug.org>
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.23 1997/02/22 19:56:34 peter Exp $
d5 1
a5 1
SRCS=	local_passwd.c yppasswd_private_xdr.c yppasswd_comm.c yp_passwd.c \
d21 1
a21 1
SRCS+= ypxfr_misc.c yp_clnt.c yppasswd_clnt.c
d24 1
a24 1
	    yppasswd_private.h yppasswd_private_xdr.c
d48 3
@


1.23
log
@Revert $FreeBSD$ to $Id$
@
text
@d2 1
a2 1
# $Id$
d71 4
a74 2
	[ ! -e ${DESTDIR}${BINDIR}/passwd ] || \
		chflags noschg ${DESTDIR}${BINDIR}/passwd
@


1.22
log
@Adds login class support for local & nis passwords:
    - minpasswordlen=n         override minimum password length for class.
    - passwordperiod=n[smhdwy] auto-set next password change date.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.21
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d8 2
a9 2
DPADD=	${LIBCRYPT} ${LIBRPCSVC}
LDADD=	-lcrypt -lrpcsvc
d14 6
a19 3
CFLAGS+= -DCRYPT -DYP -I. -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass -I${.CURDIR}/../../libexec/ypxfr \
	-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx -DLOGGING
d65 2
a66 2
DPADD=	${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR}
LDADD=	-lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err
@


1.20
log
@I haven't had a single contraversial commit all week, so what the
heck.  Watch through our hidden camera, ladies and gentlemen,
as this one-line addition to the syslog output generates hundreds
of thousands of lines of email in response, all from people
decrying the evils of electronic noise pollution! :-)

What this change does, simply speaking, is syslog it every time
someone changes their local password.  I need this at a local ISP to
tell whether people are reacting to expires in a timely fashion or
not.  To disable it, uncomment -DLOGGING in the Makefile.

If your users change their passwords so often as to fill your logfile,
then you may also have another administrative problem to deal with.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.19 1996/02/23 16:08:23 wpaul Exp $
@


1.19
log
@Merge in changes to support the new rpc.yppasswdd(8) and fix a few bugs.

In passwd(1):

- Gut most of yp_passwd.c and leave only a few things that aren't common
  to pw_yp.c.

- Add support for -d and -h flags to select domains and NIS server hosts
  to use when updating NIS passwords. This allows passwd(1) to be used
  for changing NIS passwords from machines that aren't configured as
  NIS clients. (This is mostly to allow passwd(1) to work on NIS master
  servers that aren't configured as clients -- an NIS server need not
  necessarily be configured as a client itself.)

  NOTE: Realize that having the ability to specify a domain and hostname
  lets you use passwd(1) (and chpass(1) too) to submit update requests
  to yppasswd daemons running on remote servers in remote domains which
  you may not even be bound to. For example, my machine at home is not
  an NIS client of the servers on the network that I manage, yet I can
  easily change my password at work using my FreeBSD box at home by doing:
  'passwd -d work.net.domain -h any.nis.server.on.my.net wpaul'. (Yes,
  I do use securenets at work; temporarily modified my securenets file
  to give my home system access.) Some people may not be too thrilled
  with this idea. Those who don't like this feature can recompile passwd(1)
  and chpass(1) with -DPARANOID to restrict the use of these flags to
  the superuser.

  (Oh, I should be adding proper securenets support to ypserv(8) and
  rpc.yppasswdd(8) over the weekend.)

- Merge in changes to allow root on the NIS master server to bypass
  authentication and change any user's NIS password. (The super-user
  on the NIS master already has privileges to do this, but doing it
  through passwd(1) is much easier than updating the maps by hand.)
  Note that passwd(1) communicates with rpc.yppasswdd(8) via a UNIX
  domain socket instead of via standard RPC/IP in this case.

- Update man page.

In chpass(1):

- Fix pw_yp.c to work properly in environments where NIS client
  services aren't available.

- Use realloc() instead of malloc() in copy_yp_pass() and copy_local_pass().

- Fix silly bug in copy_yp_pass(); some of the members of the passwd
  structure weren't being filled in correctly. (This went unnoticed
  for a while since the old yppasswdd didn't allow changes to the
  fields that were being botched.)

- chpass(1) now also allows the superuser on the NIS master server to
  make unrestricted changes to any user's NIS password information.

- Use UNIX domain comm channel to rpc.yppasswdd(8) when run by the
  superuser on the NIS master. This allows several new things:

   o superuser can update an entire master.passwd.{byname,byuid} entry
   o superuser can update records in arbitrary domains using -d flag to
     select a domain (before you could only change the default domain)
   o superuser can _add_ records to the NIS master.passwd maps, provided
     rpc.yppasswdd(8) has been started with the -a flag (to do this,
     the superuser must force NIS operation by specifying the -y flag
     to chpass(1) along with -a, i.e. 'chpass -y -a 'foo:::::::::')

- Back out the 'chpass -a <new password entry> breaks with NIS' fix
  from the last revision and fix it properly this time. The previous
  revision fixed the immediate problem but broke NIS operation in
  some cases.

- In edit.c, be a little more reasonable about deciding when to
  prevent the shell field from being changed.

  Submitted by Charles Owens <owensc@@enc.edu>, who said:

  "I made a minor (one-line) modification to chpass, with regards
   to whether or not it allows the changing of shells.  In the 2.0.5 code,
   field changing follows the settings specified in the "list" structure
   defined in table.c .  For the shell, though, this is ignored.  A quick
   look in edit.c showed me why, but I don't understand why it was written as
   such.  The logic was

        if shell is standard shell, allow changing

   I changed it to

        if shell changing is allowed (per table.c) and it is a standard shell
             OR if uid=0, then allow changing."

   Makes sense to me.

- Update man page.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.18 1995/09/14 21:02:16 gibbs Exp $
d16 1
a16 1
	-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx
@


1.19.2.1
log
@Merge from -current
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.20 1996/11/03 03:11:54 jkh Exp $
d16 1
a16 1
	-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx -DLOGGING
@


1.19.2.2
log
@MFC: login.conf awareness.
[only difference is now the random number generation in -current]
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.19.2.1 1996/11/05 20:13:30 phk Exp $
d8 2
a9 2
DPADD=	${LIBCRYPT} ${LIBRPCSVC} ${LIBUTIL}
LDADD=	-lcrypt -lrpcsvc -lutil
d14 3
a16 6
CFLAGS+= -DLOGIN_CAP -DCRYPT -DYP -I. -I${.CURDIR} \
	-I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass \
	-I${.CURDIR}/../../libexec/ypxfr \
	-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd \
	-Dyp_error=warnx -DLOGGING
d62 2
a63 2
DPADD=	${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR} ${LIBUTIL}
LDADD=	-lkadm -lkrb -ldes -lcrypt -lrpcsvc -lcom_err -lutil
d68 2
a69 4
.for i in passwd yppasswd
	[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
		chflags noschg ${DESTDIR}${BINDIR}/$i
.endfor
@


1.19.2.3
log
@Replace eBones with kerberosIV (Actually KTH eBones from current)
@
text
@d2 1
a2 1
# $Id$
a6 1
CFLAGS+=-Wall
d55 2
a56 2
.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS4))
SRCS+=	kpasswd_standalone.c
d59 1
a59 1
	${.CURDIR}/../../crypto/kerberosIV/kadmin
d61 3
a63 1
CFLAGS+=	-DKERBEROS
@


1.19.2.4
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.18
log
@Point passwd to the new locations of kpasswd.c and kadm.h.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.17 1995/09/03 11:40:37 markm Exp $
d5 3
a7 1
SRCS=	local_passwd.c yp_passwd.c passwd.c pw_copy.c pw_util.c pw_yp.c
d11 31
a41 1
	${.CURDIR}/../rlogin
d43 2
a44 2
CFLAGS+=-DCRYPT -DYP -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass
@


1.17
log
@Add pw_yp.c to SRCS. This is code that was moved to chpass, but passwd still
needs it to build.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.16 1995/08/17 11:26:42 bde Exp $
d24 1
a24 1
	${.CURDIR}/../../eBones/passwd
d28 1
a28 1
		-I${.CURDIR}/../../eBones/libkadm
@


1.16
log
@Remove bogus ${DESTDIR}s from LINKS.

Keep DPADD up to date with LDADD.

bsd.prog.mk's install rule can't handle schg'ed links, so ugly
beforeinstall and afterinstall rules are required.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.15 1995/08/13 16:07:28 wpaul Exp $
d5 1
a5 1
SRCS=	local_passwd.c yp_passwd.c passwd.c pw_copy.c pw_util.c
@


1.15
log
@Remove the ypchfn/ypchsh stuff from passwd and leave just the
yppasswd support. The rest is moving into chpass.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.14 1995/06/11 19:32:12 rgrimes Exp $
d6 1
d17 1
a17 1
LINKS=${DESTDIR}${BINDIR}/passwd ${DESTDIR}${BINDIR}/yppasswd
d29 2
d38 1
@


1.14
log
@Merge RELENG_2_0_5 into HEAD
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.13.2.1 1995/06/07 05:52:05 jkh Exp $
d15 3
a17 3
INSTALLFLAGS=-fschg
MAN1=passwd.1 yppasswd.1
MLINKS=yppasswd.1 ypchsh.1 yppasswd.1 ypchpass.1 yppasswd.1 ypchfn.1
d32 3
d36 1
a36 4
	ln -sf passwd ${DESTDIR}${BINDIR}/yppasswd
	ln -sf passwd ${DESTDIR}${BINDIR}/ypchsh
	ln -sf passwd ${DESTDIR}${BINDIR}/ypchfn
	ln -sf passwd ${DESTDIR}${BINDIR}/ypchpass
@


1.14.2.1
log
@Brought in changes from main branch: changes for NIS.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.14 1995/06/11 19:32:12 rgrimes Exp $
a5 1
DPADD=	${LIBCRYPT} ${LIBRPCSVC}
d15 3
a17 3
MAN1=passwd.1
LINKS=${BINDIR}/passwd ${BINDIR}/yppasswd
MLINKS=passwd.1 yppasswd.1
a27 2
# XXX not defined: ${LIBKADM}, ${LIBCOM_ERR}
DPADD=	${LIBKADM} ${LIBKRB} ${LIBDES} ${LIBCRYPT} ${LIBRPCSVC} ${LIBCOM_ERR}
a31 4
beforeinstall:
	[ ! -e ${DESTDIR}${BINDIR}/passwd ] || \
		chflags noschg ${DESTDIR}${BINDIR}/passwd

d33 4
a36 1
	chflags schg ${DESTDIR}${BINDIR}/passwd
@


1.14.2.2
log
@Bring in changes from revision 1.18.  Update paths to kpasswd.c and
eBones include files.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.14.2.1 1995/08/26 09:53:02 davidg Exp $
d24 1
a24 1
	${.CURDIR}/../../eBones/usr.bin/passwd
d28 1
a28 1
		-I${.CURDIR}/../../eBones/lib/libkadm
@


1.14.2.3
log
@Sync with main branch: NIS fixes.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.18 1995/09/14 21:02:16 gibbs Exp $
d5 1
a5 1
SRCS=	local_passwd.c yp_passwd.c passwd.c pw_copy.c pw_util.c pw_yp.c
@


1.14.2.4
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.13
log
@Remove references to yppasswd_xdr.c: the stuff in this file already exists
in librpcsvc. Add -lrpcsvc to LDADD instead.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.12 1995/02/14 21:08:45 rgrimes Exp $
d29 1
@


1.13.2.1
log
@A large collection of patches committed from the top to make it easier
on me:

1. Mark Murray's eBones patches.
2. Joerg's German docs + fixes.
3. Various sysinstall bug fixes from me + Mark's eBones menu changes.
4. Steven G. Kargl's doc fixes.
Submitted by:	markm, joerg, jkh, kargl@@troutmask.apl.washington.edu
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.13 1995/04/01 19:19:15 wpaul Exp $
a28 1
DISTRIBUTION=	krb
@


1.12
log
@Remove usage of LINKS and LN_FLAGS=-s, this does not do the correct thing
for symbolic links when $DESTDIR is set.

Add afterinstall: target to handle symbolic link creation.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.11 1995/02/14 15:38:13 wpaul Exp $
d5 2
a6 2
SRCS=	local_passwd.c yp_passwd.c yppasswd_xdr.c passwd.c pw_copy.c pw_util.c
LDADD=	-lcrypt
d8 1
a8 1
	${.CURDIR}/../rlogin ${.CURDIR}/../../gnu/usr.sbin/yppasswdd
d11 1
a11 2
	-I${.CURDIR}/../../usr.bin/chpass \
	-I${.CURDIR}/../../gnu/usr.sbin/yppasswdd
d28 1
a28 1
LDADD=	-lkadm -lkrb -ldes -lcrypt -lcom_err
@


1.11
log
@Changed passwd's Makefile to use the built-in LINKS mechanism to create
the symlinks for yppasswd & friends (we still can't use hard links
because passwd is installed immutable). This would have been simpler
if the LN_FLAGS variable hadn't chosen to wait until now before leaping
out of the /usr/share/mk directory and biting me in the ass. (And thus,
I was enlightened.)
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.10 1995/02/11 18:20:06 ache Exp $
a18 3
LINKS=	${BINDIR}/passwd ${BINDIR}/yppasswd ${BINDIR}/passwd ${BINDIR}/ypchsh \
	${BINDIR}/passwd ${BINDIR}/ypchfn ${BINDIR}/passwd ${BINDIR}/ypchpass
LN_FLAGS= -s
d31 6
@


1.10
log
@Merge with eBones stuff
Submitted by: mark@@grondar.za
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.9 1995/02/01 23:46:20 wpaul Exp $
d19 3
a33 8

afterinstall: symlinks

symlinks: passwd
	ln -sf ${BINDIR}/passwd ${BINDIR}/yppasswd
	ln -sf ${BINDIR}/passwd ${BINDIR}/ypchsh
	ln -sf ${BINDIR}/passwd ${BINDIR}/ypchfn
	ln -sf ${BINDIR}/passwd ${BINDIR}/ypchpass
@


1.9
log
@Cleaned up Makefile a little, added man page links from ypchsh.1 ypchfn.1
and ypchpass.1 to yppasswd.1. Also fixed a typo: ypshfn != ypchfn.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.6 1995/01/19 21:03:48 wollman Exp $
d19 12
@


1.8
log
@Changed passwd/yppasswd's Makefile to create all symbolic links instead
of hard links: since passwd is installed immutable, an attempt to make
a hard link to it during a 'make install' would fail. I didn't notice
this conflict because my /usr directory is an NFS filesystem mounted from a
SunOS server, so the special file mode flags had no effecti when I tested
everything on my machine. Live and learn.
@
text
@a15 1
BINDIR= /usr/bin
d17 2
d25 1
a25 1
	ln -sf ${BINDIR}/passwd ${BINDIR}/ypshfn
@


1.7
log
@Obtained from: The NYS project
This is the first round of changes to incorporate YP server functionality
into FreeBSD. This particular change allows passwd to change either the
local or NIS password, as well as the NIS GECOS and shell information.

Essentially, I've taken passwd(1) and yppasswd from the yppasswd-0.5
distribution (which is part of the NYS project -- a project to provide
a GNU GPL'ed suite of NIS tools) and rammed them into each other
at high speed. I've tried my best to make this co-exist with the
Kerberos stuff, but since I don't run Kerberos I don't have an easy
way to verify that it all works. If you choose any Kerberos flags
then the YP checks should be bypassed, but that may not be enough.
I'll modify it some more if it turns out I broke something. For now,
support for localand NIS passwords is pretty solid:

- If you simply type 'passwd,' the program checks to see if you exist
  in the local pwd.db database. If not, you get bounced to YP.

- If you try to force local functionality with the -l flag and you
  don't exist locally, you get an error.

The -y flag can be used to force YP functionality. -f and -s let you
change your full name and shell (respectively). -f *and* -s let you
change all of your 'account information.'

ypchfn, ypchsh, yppasswd and ypchpass are all links to passwd.
@
text
@a13 5
LINKS= ${BINDIR}/passwd ${BINDIR}/yppasswd
LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchfn
LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchsh
LINKS+= ${BINDIR}/passwd ${BINDIR}/ypchpass

d16 1
d18 8
@


1.6
log
@Kill old Kerberos password-changing support:

1) It was export-controlled.
2) It used some ad-hoc protocol invented by Berkeley in ignorance of the
   standard MIT distribution's way of doing it (which makes it useless
   to most people).

This should be fixed once we have `kadmin'/`kadmind'.
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.5 1994/11/20 23:21:06 wollman Exp $
d5 1
a5 1
SRCS=	local_passwd.c passwd.c pw_copy.c pw_util.c
d8 10
a17 3
	${.CURDIR}/../rlogin
CFLAGS+=-DCRYPT -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass
@


1.5
log
@Add distribution=krb for P-HK
@
text
@d2 1
a2 1
# $Id: Makefile,v 1.4 1994/09/29 13:05:44 csgr Exp $
a10 11


.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \
	|| defined(MAKE_EBONES))
SRCS+=	krb_passwd.c
CFLAGS+=-DKERBEROS
LDADD+=-lkrb -ldes
DPADD=	${LIBKRB} ${LIBDES}
DISTRIBUTION=	krb
.endif

@


1.4
log
@First level of changes for bringing in eBones (kerberos).
- Get rid of inverse logic (NOKERBEROS and NOEBONES) in src/makefile,
and replace with MAKE_KERBEROS and MAKE_EBONES.  (Far fewer contortions,
and both default to off.)  IF YOU WANT KERBEROS, YOU HAVE TO EXPLICITLY
DEFINE ONE OF THESE.
- Make Makefiles kerberos-aware.
@
text
@d2 1
a2 1
# $Id$
d19 1
@


1.3
log
@LDADD= -lcrypt
Submitted by:	Geoff
@
text
@d1 2
a2 1
#	@@(#)Makefile	8.3 (Berkeley) 4/2/94
a6 2
#krb_passwd.c
#DPADD=	${LIBKRB} ${LIBDES}
d11 11
a21 1
#LDADD+=-lkrb -ldes
@


1.2
log
@Don't use Kerberos yet, we aren't ready for it.
@
text
@d5 1
d12 1
a12 1
#LDADD=	-lkrb -ldes
@


1.1
log
@Initial revision
@
text
@d4 3
a6 2
SRCS=	des_rw.c krb_passwd.c local_passwd.c passwd.c pw_copy.c pw_util.c
DPADD=	${LIBKRB} ${LIBDES}
d9 1
a9 1
CFLAGS+=-DKERBEROS -DCRYPT -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
d11 1
a11 1
LDADD=	-lkrb -ldes
@


1.1.1.1
log
@BSD 4.4 Lite Usr.bin Sources
@
text
@@
