head	1.36;
access;
symbols
	RELENG_8_4:1.36.0.2
	RELENG_9_1_0_RELEASE:1.35.2.1.4.2
	RELENG_9_1:1.35.2.1.0.4
	RELENG_9_1_BP:1.35.2.1
	RELENG_8_3_0_RELEASE:1.32.2.2.2.1
	RELENG_8_3:1.32.2.2.0.2
	RELENG_8_3_BP:1.32.2.2
	RELENG_9_0_0_RELEASE:1.35.2.1.2.1
	RELENG_9_0:1.35.2.1.0.2
	RELENG_9_0_BP:1.35.2.1
	RELENG_9:1.35.0.2
	RELENG_9_BP:1.35
	RELENG_7_4_0_RELEASE:1.31.12.1
	RELENG_8_2_0_RELEASE:1.32.2.1.6.1
	RELENG_7_4:1.31.0.12
	RELENG_7_4_BP:1.31
	RELENG_8_2:1.32.2.1.0.6
	RELENG_8_2_BP:1.32.2.1
	RELENG_8_1_0_RELEASE:1.32.2.1.4.1
	RELENG_8_1:1.32.2.1.0.4
	RELENG_8_1_BP:1.32.2.1
	RELENG_7_3_0_RELEASE:1.31.10.1
	RELENG_7_3:1.31.0.10
	RELENG_7_3_BP:1.31
	RELENG_8_0_0_RELEASE:1.32.2.1.2.1
	RELENG_8_0:1.32.2.1.0.2
	RELENG_8_0_BP:1.32.2.1
	RELENG_8:1.32.0.2
	RELENG_8_BP:1.32
	RELENG_7_2_0_RELEASE:1.31.8.1
	RELENG_7_2:1.31.0.8
	RELENG_7_2_BP:1.31
	RELENG_7_1_0_RELEASE:1.31.6.1
	RELENG_6_4_0_RELEASE:1.30.12.1
	RELENG_7_1:1.31.0.6
	RELENG_7_1_BP:1.31
	RELENG_6_4:1.30.0.12
	RELENG_6_4_BP:1.30
	RELENG_7_0_0_RELEASE:1.31
	RELENG_6_3_0_RELEASE:1.30
	RELENG_7_0:1.31.0.4
	RELENG_7_0_BP:1.31
	RELENG_6_3:1.30.0.10
	RELENG_6_3_BP:1.30
	RELENG_7:1.31.0.2
	RELENG_7_BP:1.31
	RELENG_6_2_0_RELEASE:1.30
	RELENG_6_2:1.30.0.8
	RELENG_6_2_BP:1.30
	RELENG_5_5_0_RELEASE:1.28.6.1
	RELENG_5_5:1.28.6.1.0.4
	RELENG_5_5_BP:1.28.6.1
	RELENG_6_1_0_RELEASE:1.30
	RELENG_6_1:1.30.0.6
	RELENG_6_1_BP:1.30
	RELENG_6_0_0_RELEASE:1.30
	RELENG_6_0:1.30.0.4
	RELENG_6_0_BP:1.30
	RELENG_6:1.30.0.2
	RELENG_6_BP:1.30
	RELENG_5_4_0_RELEASE:1.28.6.1
	RELENG_5_4:1.28.6.1.0.2
	RELENG_5_4_BP:1.28.6.1
	RELENG_4_11_0_RELEASE:1.20.2.3
	RELENG_4_11:1.20.2.3.0.14
	RELENG_4_11_BP:1.20.2.3
	RELENG_5_3_0_RELEASE:1.28
	RELENG_5_3:1.28.0.8
	RELENG_5_3_BP:1.28
	RELENG_5:1.28.0.6
	RELENG_5_BP:1.28
	RELENG_4_10_0_RELEASE:1.20.2.3
	RELENG_4_10:1.20.2.3.0.12
	RELENG_4_10_BP:1.20.2.3
	RELENG_5_2_1_RELEASE:1.28
	RELENG_5_2_0_RELEASE:1.28
	RELENG_5_2:1.28.0.4
	RELENG_5_2_BP:1.28
	RELENG_4_9_0_RELEASE:1.20.2.3
	RELENG_4_9:1.20.2.3.0.10
	RELENG_4_9_BP:1.20.2.3
	RELENG_5_1_0_RELEASE:1.28
	RELENG_5_1:1.28.0.2
	RELENG_5_1_BP:1.28
	RELENG_4_8_0_RELEASE:1.20.2.3
	RELENG_4_8:1.20.2.3.0.8
	RELENG_4_8_BP:1.20.2.3
	RELENG_5_0_0_RELEASE:1.26
	RELENG_5_0:1.26.0.2
	RELENG_5_0_BP:1.26
	RELENG_4_7_0_RELEASE:1.20.2.3
	RELENG_4_7:1.20.2.3.0.6
	RELENG_4_7_BP:1.20.2.3
	RELENG_4_6_2_RELEASE:1.20.2.3
	RELENG_4_6_1_RELEASE:1.20.2.3
	RELENG_4_6_0_RELEASE:1.20.2.3
	RELENG_4_6:1.20.2.3.0.4
	RELENG_4_6_BP:1.20.2.3
	RELENG_4_5_0_RELEASE:1.20.2.3
	RELENG_4_5:1.20.2.3.0.2
	RELENG_4_5_BP:1.20.2.3
	RELENG_4_4_0_RELEASE:1.20.2.2
	RELENG_4_4:1.20.2.2.0.2
	RELENG_4_4_BP:1.20.2.2
	RELENG_4_3_0_RELEASE:1.20.2.1
	RELENG_4_3:1.20.2.1.0.2
	RELENG_4_3_BP:1.20.2.1
	RELENG_4_2_0_RELEASE:1.20.2.1
	RELENG_4_1_1_RELEASE:1.20.2.1
	PRE_SMPNG:1.22
	RELENG_4_1_0_RELEASE:1.20.2.1
	RELENG_3_5_0_RELEASE:1.15.2.2
	RELENG_4_0_0_RELEASE:1.20
	RELENG_4:1.20.0.2
	RELENG_4_BP:1.20
	RELENG_3_4_0_RELEASE:1.15.2.2
	RELENG_3_3_0_RELEASE:1.15.2.2
	RELENG_3_2_PAO:1.15.2.1.0.2
	RELENG_3_2_PAO_BP:1.15.2.1
	RELENG_3_2_0_RELEASE:1.15.2.1
	RELENG_3_1_0_RELEASE:1.15.2.1
	RELENG_3:1.15.0.2
	RELENG_3_BP:1.15
	RELENG_2_2_8_RELEASE:1.9.2.1
	RELENG_3_0_0_RELEASE:1.14
	RELENG_2_2_7_RELEASE:1.9.2.1
	RELENG_2_2_6_RELEASE:1.9.2.1
	RELENG_2_2_5_RELEASE:1.9.2.1
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.9
	RELENG_2_2_1_RELEASE:1.9
	RELENG_2_2_0_RELEASE:1.9
	RELENG_2_1_7_RELEASE:1.5.4.1
	RELENG_2_1_6_1_RELEASE:1.5.4.1
	RELENG_2_1_6_RELEASE:1.5.4.1
	RELENG_2_2:1.9.0.2
	RELENG_2_2_BP:1.9
	RELENG_2_1_5_RELEASE:1.5.4.1
	RELENG_2_1_0_RELEASE:1.5.4.1
	RELENG_2_1_0:1.5.0.4
	RELENG_2_1_0_BP:1.5
	RELENG_2_0_5_RELEASE:1.5
	RELENG_2_0_5:1.5.0.2
	RELENG_2_0_5_BP:1.5
	RELENG_2_0_5_ALPHA:1.5
	RELEASE_2_0:1.4
	BETA_2_0:1.4
	ALPHA_2_0:1.2.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.36
date	2012.11.17.01.54.16;	author svnexp;	state Exp;
branches
	1.36.2.1;
next	1.35;

1.35
date	2010.05.04.11.34.13;	author emaste;	state Exp;
branches
	1.35.2.1;
next	1.34;

1.34
date	2010.03.04.12.35.20;	author scottl;	state Exp;
branches;
next	1.33;

1.33
date	2010.01.02.10.27.05;	author ed;	state Exp;
branches;
next	1.32;

1.32
date	2009.06.15.21.05.00;	author ed;	state Exp;
branches
	1.32.2.1;
next	1.31;

1.31
date	2006.03.17.18.54.38;	author ru;	state Exp;
branches
	1.31.2.1
	1.31.6.1
	1.31.8.1
	1.31.10.1
	1.31.12.1;
next	1.30;

1.30
date	2004.12.29.08.13.20;	author ache;	state Exp;
branches
	1.30.2.1
	1.30.12.1;
next	1.29;

1.29
date	2004.11.13.20.40.30;	author bz;	state Exp;
branches;
next	1.28;

1.28
date	2002.12.30.09.46.58;	author obrien;	state Exp;
branches
	1.28.6.1;
next	1.27;

1.27
date	2002.12.30.09.45.26;	author obrien;	state Exp;
branches;
next	1.26;

1.26
date	2002.05.08.00.54.27;	author des;	state Exp;
branches;
next	1.25;

1.25
date	2002.03.24.10.21.22;	author markm;	state Exp;
branches;
next	1.24;

1.24
date	2001.09.13.06.48.16;	author ru;	state Exp;
branches;
next	1.23;

1.23
date	2001.09.05.20.10.59;	author dd;	state Exp;
branches;
next	1.22;

1.22
date	2000.09.06.18.16.46;	author nectar;	state Exp;
branches;
next	1.21;

1.21
date	2000.04.12.08.49.13;	author sheldonh;	state Exp;
branches;
next	1.20;

1.20
date	99.12.18.13.55.13;	author peter;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	99.12.16.10.55.41;	author marcel;	state Exp;
branches;
next	1.18;

1.18
date	99.09.06.17.30.02;	author peter;	state Exp;
branches;
next	1.17;

1.17
date	99.07.29.16.30.33;	author sheldonh;	state Exp;
branches;
next	1.16;

1.16
date	99.02.14.13.56.15;	author des;	state Exp;
branches;
next	1.15;

1.15
date	98.12.06.22.58.14;	author archie;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	98.09.19.22.42.03;	author obrien;	state Exp;
branches;
next	1.13;

1.13
date	98.04.26.16.30.05;	author bde;	state Exp;
branches;
next	1.12;

1.12
date	97.09.13.12.20.11;	author wosch;	state Exp;
branches;
next	1.11;

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

1.10
date	97.02.26.05.31.43;	author mpp;	state Exp;
branches;
next	1.9;

1.9
date	96.08.12.14.45.21;	author peter;	state Exp;
branches
	1.9.2.1;
next	1.8;

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

1.7
date	95.08.17.11.26.26;	author bde;	state Exp;
branches;
next	1.6;

1.6
date	95.08.13.16.12.22;	author wpaul;	state Exp;
branches;
next	1.5;

1.5
date	95.04.17.19.15.38;	author rgrimes;	state Exp;
branches
	1.5.4.1;
next	1.4;

1.4
date	94.11.14.07.13.12;	author bde;	state Exp;
branches;
next	1.3;

1.3
date	94.11.08.14.59.22;	author ache;	state Exp;
branches;
next	1.2;

1.2
date	94.05.30.14.03.53;	author rgrimes;	state Exp;
branches;
next	1.1;

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

1.36.2.1
date	2012.11.17.01.54.16;	author svnexp;	state dead;
branches;
next	1.36.2.2;

1.36.2.2
date	2013.03.28.13.06.01;	author svnexp;	state Exp;
branches;
next	;

1.35.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.35.2.1.2.1
	1.35.2.1.4.1;
next	1.35.2.2;

1.35.2.2
date	2012.11.17.11.37.37;	author svnexp;	state Exp;
branches;
next	;

1.35.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.35.2.1.2.2;

1.35.2.1.2.2
date	2012.11.17.08.37.33;	author svnexp;	state Exp;
branches;
next	;

1.35.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.35.2.1.4.2;

1.35.2.1.4.2
date	2012.11.17.08.48.25;	author svnexp;	state Exp;
branches;
next	;

1.32.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.32.2.1.2.1
	1.32.2.1.4.1
	1.32.2.1.6.1;
next	1.32.2.2;

1.32.2.2
date	2011.01.19.03.59.30;	author imp;	state Exp;
branches
	1.32.2.2.2.1;
next	1.32.2.3;

1.32.2.3
date	2012.11.17.10.37.15;	author svnexp;	state Exp;
branches;
next	1.32.2.4;

1.32.2.4
date	2013.03.01.10.23.07;	author svnexp;	state Exp;
branches;
next	;

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

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

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

1.32.2.2.2.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.32.2.2.2.2;

1.32.2.2.2.2
date	2012.11.17.08.25.49;	author svnexp;	state Exp;
branches;
next	;

1.31.2.1
date	2012.11.17.08.08.22;	author svnexp;	state Exp;
branches;
next	;

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

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

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

1.31.12.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.31.12.2;

1.31.12.2
date	2012.11.17.08.17.41;	author svnexp;	state Exp;
branches;
next	;

1.30.2.1
date	2012.11.17.07.45.36;	author svnexp;	state Exp;
branches;
next	;

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

1.28.6.1
date	2004.11.28.14.10.18;	author bz;	state Exp;
branches;
next	;

1.20.2.1
date	2000.06.28.00.24.45;	author davidn;	state Exp;
branches;
next	1.20.2.2;

1.20.2.2
date	2001.08.02.01.21.20;	author obrien;	state Exp;
branches;
next	1.20.2.3;

1.20.2.3
date	2001.12.19.04.49.11;	author dd;	state Exp;
branches;
next	1.20.2.4;

1.20.2.4
date	2012.11.17.07.27.22;	author svnexp;	state Exp;
branches;
next	;

1.15.2.1
date	99.02.14.14.09.44;	author des;	state Exp;
branches;
next	1.15.2.2;

1.15.2.2
date	99.07.29.16.37.07;	author sheldonh;	state Exp;
branches;
next	1.15.2.3;

1.15.2.3
date	2000.06.28.00.34.17;	author davidn;	state Exp;
branches;
next	;

1.9.2.1
date	97.09.13.12.21.25;	author wosch;	state Exp;
branches;
next	;

1.5.4.1
date	95.08.26.07.15.09;	author davidg;	state Exp;
branches;
next	;

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


desc
@@


1.36
log
@Switching exporter and resync
@
text
@#	@@(#)Makefile	8.2 (Berkeley) 4/2/94
# $FreeBSD: head/usr.bin/chpass/Makefile 207613 2010-05-04 11:34:13Z emaste $

.include <bsd.own.mk>

.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen

PROG=	chpass
SRCS=	chpass.c edit.c field.c pw_scan.c table.c util.c
BINOWN=	root
BINMODE=4555
.if ${MK_NIS} != "no"
CFLAGS+= -DYP
.endif
#Some people need this, uncomment to activate
#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.

DPADD=	${LIBCRYPT} ${LIBUTIL}
LDADD=	-lcrypt -lutil
.if ${MK_NIS} != "no"
DPADD+=	${LIBYPCLNT}
LDADD+=	-lypclnt
.endif 

LINKS=	${BINDIR}/chpass ${BINDIR}/chfn
LINKS+=	${BINDIR}/chpass ${BINDIR}/chsh
.if ${MK_NIS} != "no"
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchpass
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchfn
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchsh
.endif

MLINKS=	chpass.1 chfn.1 chpass.1 chsh.1
.if ${MK_NIS} != "no"
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
.endif

beforeinstall:
.for i in chpass chfn chsh ypchpass ypchfn ypchsh
.if exists(${DESTDIR}${BINDIR}/$i)
	-chflags noschg ${DESTDIR}${BINDIR}/$i
.endif
.endfor

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

.include <bsd.prog.mk>
@


1.36.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:06:01 +0000
@
text
@d1 51
@


1.36.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 50
#	@@(#)Makefile	8.2 (Berkeley) 4/2/94
# $FreeBSD: releng/8.4/usr.bin/chpass/Makefile 247537 2013-03-01 09:39:29Z des $

.include <bsd.own.mk>

.PATH: ${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../lib/libc/gen

PROG=	chpass
SRCS=	chpass.c edit.c field.c pw_scan.c table.c util.c
BINOWN=	root
BINMODE=4555
WARNS?=	5
.if ${MK_NIS} != "no"
CFLAGS+= -DYP
.endif
#Some people need this, uncomment to activate
#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen -I.

DPADD=	${LIBCRYPT} ${LIBUTIL}
LDADD=	-lcrypt -lutil
.if ${MK_NIS} != "no"
DPADD+=	${LIBYPCLNT}
LDADD+=	-lypclnt
.endif 

LINKS=	${BINDIR}/chpass ${BINDIR}/chfn
LINKS+=	${BINDIR}/chpass ${BINDIR}/chsh
.if ${MK_NIS} != "no"
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchpass
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchfn
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchsh
.endif

MLINKS=	chpass.1 chfn.1 chpass.1 chsh.1
.if ${MK_NIS} != "no"
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1
.endif

beforeinstall:
.for i in chpass chfn chsh ypchpass ypchfn ypchsh
	-chflags noschg ${DESTDIR}${BINDIR}/$i
.endfor

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

.include <bsd.prog.mk>
@


1.35
log
@SVN rev 207613 on 2010-05-04 11:34:13Z by emaste

Restore historical behaviour of only executing chflags on files that exist.
This eliminates cosmetic errors of the form "chflags: ...: No such file or
directory" during an installworld to an empty destination.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.35.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.35.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/chpass/Makefile 207613 2010-05-04 11:34:13Z emaste $
@


1.35.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.35.2.1.4.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/usr.bin/chpass/Makefile 207613 2010-05-04 11:34:13Z emaste $
@


1.35.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.35.2.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/usr.bin/chpass/Makefile 207613 2010-05-04 11:34:13Z emaste $
@


1.34
log
@SVN rev 204707 on 2010-03-04 12:35:20Z by scottl

Let the afterinstall target ignore failures from running chflags.  This
allows it to work over NFS, and puts it back into conformance with other
'schg' utlitilties in the system.

Reviewed by:	ed
@
text
@d41 1
d43 1
@


1.33
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
@d46 1
a46 1
	chflags schg ${DESTDIR}${BINDIR}/chpass
@


1.32
log
@SVN rev 194266 on 2009-06-15 21:05:00Z by ed

Make the chpass Makefile honour NO_FSCHG.

The chpass Makefile tried to set the fschg flag on the binaries, even if
NO_FSCHG was passed to the installworld. This meant that if I installed
FreeBSD into a Jail, I couldn't installworld from within the Jail
anymore.

Now that it listens to NO_FSCHG, we can just make it bail out when it
fails, just like PRECIOUSPROG does.
@
text
@a11 1
WARNS?=	5
@


1.32.2.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.32.2.2
log
@SVN rev 217569 on 2011-01-19 03:59:30Z by imp

MFC r204707 by scottl

Ignore the result of the chflags operation to allow it to continue
when doing an installation over NFS.
@
text
@d47 1
a47 1
	-chflags schg ${DESTDIR}${BINDIR}/chpass
@


1.32.2.3
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/chpass/Makefile 231501 2012-02-11 01:15:02Z tuexen $
@


1.32.2.4
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/247537
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: stable/8/usr.bin/chpass/Makefile 247537 2013-03-01 09:39:29Z des $
@


1.32.2.2.2.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.32.2.2.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/usr.bin/chpass/Makefile 231501 2012-02-11 01:15:02Z tuexen $
@


1.32.2.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.32.2.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.32.2.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.31
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
@d42 1
a42 2
	[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
		chflags noschg ${DESTDIR}${BINDIR}/$i || true
d45 1
d47 2
a48 1
	-chflags schg ${DESTDIR}${BINDIR}/chpass
@


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


1.31.12.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.31.12.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/usr.bin/chpass/Makefile 156813 2006-03-17 18:54:44Z ru $
@


1.31.10.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.31.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.31.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.30
log
@More NO_NIS cleanup: LINKS and MLINKS
@
text
@d4 2
d13 1
a13 1
.if !defined(NO_NIS)
d22 1
a22 1
.if !defined(NO_NIS)
d29 1
a29 1
.if !defined(NO_NIS)
d36 1
a36 1
.if !defined(NO_NIS)
@


1.30.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/usr.bin/chpass/Makefile 139396 2004-12-29 08:13:20Z ache $
@


1.30.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.29
log
@Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on  no NIS support and related programs will be built.

Lost parts rediscovered by:	Danny Braniss <danny at cs.huji.ac.il>
PR:		bin/68303
No objections:	des, gshapiro, nectar
Reviewed by:	ru
Approved by:	rwatson (mentor)
MFC after:	2 weeks
@
text
@d27 1
d31 1
d34 1
d36 1
@


1.28
log
@Style cleanup.
@
text
@d11 3
a13 1
CFLAGS+=-DYP
d18 6
a23 2
DPADD=	${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
LDADD=	-lcrypt -lutil -lypclnt
@


1.28.6.1
log
@MFC knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on  no NIS support and related programs will be built.

Approved by:	rwatson (mentor)
@
text
@d11 1
a11 3
.if !defined(NO_NIS)
CFLAGS+= -DYP
.endif
d16 2
a17 6
DPADD=	${LIBCRYPT} ${LIBUTIL}
LDADD=	-lcrypt -lutil
.if !defined(NO_NIS)
DPADD+=	${LIBYPCLNT}
LDADD+=	-lypclnt
.endif 
@


1.27
log
@Make WARNS=5 clean.

Tested on:	sparc64, Athlon[32]
@
text
@d4 2
a9 3
.PATH:	${.CURDIR}/../../usr.sbin/pwd_mkdb \
	${.CURDIR}/../../lib/libc/gen
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../lib/libc/gen
d11 8
a26 8

CFLAGS+=-DYP -I.

#Some people need this, uncomment to activate
#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE

DPADD=	${LIBCRYPT} ${LIBUTIL} ${LIBYPCLNT}
LDADD+=	-lcrypt -lutil -lypclnt
@


1.26
log
@Use libutil and libypclnt for all passwd manipulation and NIS needs.

Sponsored by:	DARPA, NAI Labs
@
text
@d11 1
a11 2
WARNS?=	4
NO_WERROR=yes
@


1.25
log
@Fix warns, ANSIfy, use __FBSDID(), sort headers.
@
text
@d5 1
a5 4
SRCS=	chpass.c edit.c field.c pw_copy.c pw_scan.c pw_util.c pw_yp.c \
	table.c util.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
d8 1
a8 3
.PATH:	${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw \
	${.CURDIR}/../../libexec/ypxfr \
	${.CURDIR}/../../usr.sbin/rpc.yppasswdd \
d10 3
a12 1
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw -I${.CURDIR}/../../lib/libc/gen
d22 1
a22 2
CFLAGS+=-DYP -I. -I${.CURDIR}/../../libexec/ypxfr \
	-I${.CURDIR}/../../usr.sbin/rpc.yppasswdd -Dyp_error=warnx
d27 2
a28 30
DPADD=	${LIBRPCSVC} ${LIBCRYPT} ${LIBMD}
LDADD+=	-lrpcsvc -lcrypt -lmd

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}
	${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}
@


1.24
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/chpass/Makefile,v 1.23 2001/09/05 20:10:59 dd Exp $
a4 1
CFLAGS+=-Wall
@


1.23
log
@Use CFLAGS, not COPTS, in the Makefile.  bsd.prog.mk conveniently adds
COPTS towards the end of final CFLAGS so that it can be used to
override Makefile and other defaults.  Using it in Makefiles risks
having options set using it clobbered when somebody uses it on the
command line.

Approved by:	bde
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/chpass/Makefile,v 1.22 2000/09/06 18:16:46 nectar Exp $
d10 1
@


1.22
log
@Add nsswitch support.  By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.

= Hesiod has been added to libc (see hesiod(3)).

= A library routine for parsing nsswitch.conf and invoking callback
  functions as specified has been added to libc (see nsdispatch(3)).

= The following C library functions have been modified to use nsdispatch:
    . getgrent, getgrnam, getgrgid
    . getpwent, getpwnam, getpwuid
    . getusershell
    . getaddrinfo
    . gethostbyname, gethostbyname2, gethostbyaddr
    . getnetbyname, getnetbyaddr
    . getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr

= host.conf has been removed from src/etc.  rc.network has been modified
  to warn that host.conf is no longer used at boot time.  In addition, if
  there is a host.conf but no nsswitch.conf, the latter is created at boot
  time from the former.

Obtained from:	NetBSD
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/chpass/Makefile,v 1.21 2000/04/12 08:49:13 sheldonh Exp $
d25 1
a25 1
COPTS+=	-DYP -I. -I${.CURDIR}/../../libexec/ypxfr \
d29 1
a29 1
#COPTS+= -DRESTRICT_FULLNAME_CHANGE
@


1.21
log
@Use an MD5 checksum to test for file changes; the previous method
of using file mtimes could result in chpasss(1) erroneously
detecting that no changes were made for non-interactive edits.

PR:		4238
Reported by:	Jens Schweikhardt <schweikh@@noc.dfn.de>
Submitted by:	Daniel Hagan <dhagan@@cs.vt.edu>
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/chpass/Makefile,v 1.20 1999/12/18 13:55:13 peter Exp $
d13 3
a15 2
	${.CURDIR}/../../usr.sbin/rpc.yppasswdd
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw
@


1.20
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/chpass/Makefile,v 1.19 1999/12/16 10:55:41 marcel Exp $
d30 2
a31 2
DPADD=	${LIBRPCSVC} ${LIBCRYPT}
LDADD+=	-lrpcsvc -lcrypt
@


1.20.2.1
log
@MFC: Detect changes if the edit lasts < 1 second.
PR:		bin/4238
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/chpass/Makefile,v 1.20 1999/12/18 13:55:13 peter Exp $
d30 2
a31 2
DPADD=	${LIBRPCSVC} ${LIBCRYPT} ${LIBMD}
LDADD+=	-lrpcsvc -lcrypt -lmd
@


1.20.2.2
log
@MFC: sync style to -current
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/chpass/Makefile,v 1.20.2.1 2000/06/28 00:24:45 davidn Exp $
d13 2
a14 3
	${.CURDIR}/../../usr.sbin/rpc.yppasswdd \
	${.CURDIR}/../../lib/libc/gen
CFLAGS+=-I${.CURDIR}/../../usr.sbin/pwd_mkdb -I${.CURDIR}/../../usr.sbin/vipw -I${.CURDIR}/../../lib/libc/gen
@


1.20.2.3
log
@MFC: don't use COPTS.
@
text
@d2 1
a2 1
# $FreeBSD$
d25 1
a25 1
CFLAGS+=-DYP -I. -I${.CURDIR}/../../libexec/ypxfr \
d29 1
a29 1
#CFLAGS+=-DRESTRICT_FULLNAME_CHANGE
@


1.20.2.4
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/usr.bin/chpass/Makefile 88167 2001-12-19 04:49:11Z dd $
@


1.19
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$
d30 2
a31 2
DPADD=	${LIBRPCSVC} ${LIBCRYPT} ${LIBMD}
LDADD+=	-lrpcsvc -lcrypt -lmd
@


1.18
log
@Unifdef -DPASSWD_IGNORE_COMMENTS.  This wasn't really optional and
we have enough pseudo-options already.
@
text
@d2 1
d30 2
a31 2
DPADD=	${LIBRPCSVC} ${LIBCRYPT}
LDADD+=	-lrpcsvc -lcrypt
@


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

PR:	12828
Submitted by:	Yasuhiro Fukuma <yasuf@@big.or.jp>
@
text
@d4 1
a4 1
CFLAGS+=-Wall -DPASSWD_IGNORE_COMMENTS
@


1.16
log
@Ignore errors from chflags. This makes it possible to make installworld
with DESTDIR set to an NFS-mounted file system.
@
text
@d4 1
a4 1
CFLAGS+=-Wall
@


1.15
log
@Tweaks to allow compiling -Wall (mostly adding "const" to char rcsid[]).
@
text
@d63 1
a63 1
		chflags noschg ${DESTDIR}${BINDIR}/$i
d67 1
a67 1
	chflags schg ${DESTDIR}${BINDIR}/chpass
@


1.15.2.1
log
@MFC: Ignore errors from chflags.

Approved by:	jkh
@
text
@d63 1
a63 1
		chflags noschg ${DESTDIR}${BINDIR}/$i || true
d67 1
a67 1
	-chflags schg ${DESTDIR}${BINDIR}/chpass
@


1.15.2.2
log
@YACC: Fix handling of comments and blank lines.
@
text
@d4 1
a4 1
CFLAGS+=-Wall -DPASSWD_IGNORE_COMMENTS
@


1.15.2.3
log
@MFC: Fix change detection when editing takes < 1 second.
Add $FreeBSD$

PR:		bin/4238
@
text
@a1 1
# $FreeBSD$
d29 2
a30 2
DPADD=	${LIBRPCSVC} ${LIBCRYPT} ${LIBMD}
LDADD+=	-lrpcsvc -lcrypt -lmd
@


1.14
log
@Remove useless `BINOWN=root' now that it is the default.
@
text
@d4 1
@


1.13
log
@Fixed `make -j9' by putting generated headers in ${SRCS}.  Removed bogus
dependencies of generated .c files on generated headers (these made
`make -JN' work provided `depend' was made first).  Sorted sources lists.
@
text
@a7 1
BINOWN=	root
@


1.12
log
@Add manpage links ypchpass.1, ypchfn.1, ypchsh.1
@
text
@d4 4
a7 1
SRCS=	chpass.c edit.c field.c pw_copy.c pw_scan.c pw_util.c table.c util.c
a28 5
SRCS+=	yppasswd_private_xdr.c yppasswd_private_clnt.c yp_clnt.c \
	yppasswd_clnt.c pw_yp.c ypxfr_misc.c
CLEANFILES= yp_clnt.c yp.h yppasswd_clnt.c yppasswd.h \
	    yppasswd_private_xdr.c yppasswd_private_clnt.c yppasswd_private.h

d32 2
d42 1
a42 1
yp_clnt.c: ${RPCSRC} yp.h
d48 1
a48 1
yppasswd_clnt.c: ${RPCSRC_PW} yppasswd.h
d54 1
a54 1
yppasswd_private_xdr.c: ${RPCSRC_PRIV} yppasswd_private.h
d57 1
a57 1
yppasswd_private_clnt.c: ${RPCSRC_PRIV} yppasswd_private.h
@


1.11
log
@Modify passwd and chpass to use new AF_LOCAL RPC interface instead of
old kludged-up 'yppasswd_comm' support.
@
text
@d16 1
d18 2
@


1.10
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
@d23 1
a23 1
SRCS+=	yppasswd_private_xdr.c yppasswd_comm.c yp_clnt.c \
d26 1
a26 1
	    yppasswd_private_xdr.c yppasswd_private.h
d53 3
@


1.9
log
@Add new option to chpass:  -e "expire" ; change the account expire time
from a script as if it was done in the interactive editor.

When reassembling the gecos string, trim any excess trailing commas, they
look ugly in the passwd file. :-)

Have a simple Makefile tweak to prevent mortal users from changing their
fullname.  As ISP's we have seem some real bizzare stuff here..

When decoding the change/expire string, allow the month number as a
synonym for the name of the month.. (ie: 1 as well as Jan or January)
Note that using numbers means there's a chance that you can get bitten
if you're not used to the American DD-MM-YY order.
@
text
@d55 4
a58 2
	[ ! -e ${DESTDIR}${BINDIR}/chpass ] || \
		chflags noschg ${DESTDIR}${BINDIR}/chpass
@


1.9.2.1
log
@Add manpage links ypchpass.1, ypchfn.1, ypchsh.1
@
text
@a15 1

a16 2
MLINKS+= chpass.1 ypchpass.1 chpass.1 ypchfn.1 chpass.1 ypchsh.1

@


1.8
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
@d20 3
@


1.7
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
@d7 3
a9 1
.PATH:	${.CURDIR}/../../usr.sbin/pwd_mkdb ${.CURDIR}/../../usr.sbin/vipw
d17 8
a24 2
COPTS+=	-DYP
SRCS+=	pw_yp.c
d27 23
@


1.6
log
@Take the ypchfn/ypchsh stuff that was removed from passwd
and graft it into chpass.

Chpass can now tell when it's being asked to operate on an NIS
user and it displayes the appropriate message in the editor
template ("Changing NIS information for foo"). After the changes
have been made, chpass will promte the user for his NIS password.
If the password is correct, the changes are committed to yppasswdd.

Hopefully, this should make NIS more transparent to the end user.

Note that even the superuser needs to know a user's password before
he can change any NIS information (such is the nature of yppasswdd).
Also, changes to the password field are not permitted -- that's what
yppasswd is for. (The superuser may specify a new password, but
again, he needs to know the user's original password before he can
change it.)
@
text
@d9 5
a13 5
LINKS=	${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/chfn
LINKS+=	${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/chsh
LINKS+= ${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchpass
LINKS+=	${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchfn
LINKS+=	${DESTDIR}${BINDIR}/chpass ${DESTDIR}${BINDIR}/ypchsh
d15 5
a19 3
COPTS+=-DYP
SRCS+= pw_yp.c
LDADD+=-lrpcsvc -lcrypt
@


1.5
log
@Missing ${DESTDIR} on chflags commands added.
@
text
@d9 5
a13 1
LINKS=	${BINDIR}/chpass ${BINDIR}/chfn ${BINDIR}/chpass ${BINDIR}/chsh
d15 3
a17 1

d19 2
a20 2
	[ ! -e ${DESTDIR}/usr/bin/chpass ] || \
		chflags noschg ${DESTDIR}/usr/bin/chpass
d23 1
a23 1
	chflags schg ${DESTDIR}/usr/bin/chpass
@


1.5.4.1
log
@Brought in changes from main branch: NIS additions and other fixes.
@
text
@d9 1
a9 5
LINKS=	${BINDIR}/chpass ${BINDIR}/chfn
LINKS+=	${BINDIR}/chpass ${BINDIR}/chsh
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchpass
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchfn
LINKS+=	${BINDIR}/chpass ${BINDIR}/ypchsh
a10 4
COPTS+=	-DYP
SRCS+=	pw_yp.c
DPADD=	${LIBRPCSVC} ${LIBCRYPT}
LDADD+=	-lrpcsvc -lcrypt
d13 2
a14 2
	[ ! -e ${DESTDIR}${BINDIR}/chpass ] || \
		chflags noschg ${DESTDIR}${BINDIR}/chpass
d17 1
a17 1
	chflags schg ${DESTDIR}${BINDIR}/chpass
@


1.4
log
@Fix logic in previous commit.
@
text
@d13 2
a14 1
	[ ! -e /usr/bin/chpass ] || chflags noschg /usr/bin/chpass
d17 1
a17 1
	chflags schg /usr/bin/chpass
@


1.3
log
@Fix beforeinstall target:
use chflags /usr/bin/chpass ONLY if chpass present
@
text
@d13 1
a13 1
	[ -r /usr/bin/chpass ] && chflags noschg /usr/bin/chpass
@


1.2
log
@Add a beforeinstall rule to turn off the immutable flag on chpass so you
can install a new copy of it.
@
text
@d13 1
a13 1
	chflags noschg /usr/bin/chpass
@


1.1
log
@Initial revision
@
text
@d12 3
@


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