head	1.45;
access;
symbols
	RELENG_8_4:1.45.0.2
	RELENG_9_1_0_RELEASE:1.42.2.1.4.2
	RELENG_9_1:1.42.2.1.0.4
	RELENG_9_1_BP:1.42.2.1
	RELENG_8_3_0_RELEASE:1.41.10.1.8.1
	RELENG_8_3:1.41.10.1.0.8
	RELENG_8_3_BP:1.41.10.1
	RELENG_9_0_0_RELEASE:1.42.2.1.2.1
	RELENG_9_0:1.42.2.1.0.2
	RELENG_9_0_BP:1.42.2.1
	RELENG_9:1.42.0.2
	RELENG_9_BP:1.42
	RELENG_7_4_0_RELEASE:1.41.14.1
	RELENG_8_2_0_RELEASE:1.41.10.1.6.1
	RELENG_7_4:1.41.0.14
	RELENG_7_4_BP:1.41
	RELENG_8_2:1.41.10.1.0.6
	RELENG_8_2_BP:1.41.10.1
	RELENG_8_1_0_RELEASE:1.41.10.1.4.1
	RELENG_8_1:1.41.10.1.0.4
	RELENG_8_1_BP:1.41.10.1
	RELENG_7_3_0_RELEASE:1.41.12.1
	RELENG_7_3:1.41.0.12
	RELENG_7_3_BP:1.41
	RELENG_8_0_0_RELEASE:1.41.10.1.2.1
	RELENG_8_0:1.41.10.1.0.2
	RELENG_8_0_BP:1.41.10.1
	RELENG_8:1.41.0.10
	RELENG_8_BP:1.41
	RELENG_7_2_0_RELEASE:1.41.8.1
	RELENG_7_2:1.41.0.8
	RELENG_7_2_BP:1.41
	RELENG_7_1_0_RELEASE:1.41.6.1
	RELENG_6_4_0_RELEASE:1.40.2.1.6.1
	RELENG_7_1:1.41.0.6
	RELENG_7_1_BP:1.41
	RELENG_6_4:1.40.2.1.0.6
	RELENG_6_4_BP:1.40.2.1
	RELENG_7_0_0_RELEASE:1.41
	RELENG_6_3_0_RELEASE:1.40.2.1
	RELENG_7_0:1.41.0.4
	RELENG_7_0_BP:1.41
	RELENG_6_3:1.40.2.1.0.4
	RELENG_6_3_BP:1.40.2.1
	RELENG_7:1.41.0.2
	RELENG_7_BP:1.41
	RELENG_6_2_0_RELEASE:1.40.2.1
	RELENG_6_2:1.40.2.1.0.2
	RELENG_6_2_BP:1.40.2.1
	RELENG_5_5_0_RELEASE:1.39
	RELENG_5_5:1.39.0.8
	RELENG_5_5_BP:1.39
	RELENG_6_1_0_RELEASE:1.40
	RELENG_6_1:1.40.0.6
	RELENG_6_1_BP:1.40
	RELENG_6_0_0_RELEASE:1.40
	RELENG_6_0:1.40.0.4
	RELENG_6_0_BP:1.40
	RELENG_6:1.40.0.2
	RELENG_6_BP:1.40
	RELENG_5_4_0_RELEASE:1.39
	RELENG_5_4:1.39.0.6
	RELENG_5_4_BP:1.39
	RELENG_4_11_0_RELEASE:1.29.2.2
	RELENG_4_11:1.29.2.2.0.10
	RELENG_4_11_BP:1.29.2.2
	RELENG_5_3_0_RELEASE:1.39
	RELENG_5_3:1.39.0.4
	RELENG_5_3_BP:1.39
	RELENG_5:1.39.0.2
	RELENG_5_BP:1.39
	RELENG_4_10_0_RELEASE:1.29.2.2
	RELENG_4_10:1.29.2.2.0.8
	RELENG_4_10_BP:1.29.2.2
	RELENG_5_2_1_RELEASE:1.38
	RELENG_5_2_0_RELEASE:1.38
	RELENG_5_2:1.38.0.6
	RELENG_5_2_BP:1.38
	RELENG_4_9_0_RELEASE:1.29.2.2
	RELENG_4_9:1.29.2.2.0.6
	RELENG_4_9_BP:1.29.2.2
	RELENG_5_1_0_RELEASE:1.38
	RELENG_5_1:1.38.0.4
	RELENG_5_1_BP:1.38
	RELENG_4_8_0_RELEASE:1.29.2.2
	RELENG_4_8:1.29.2.2.0.4
	RELENG_4_8_BP:1.29.2.2
	RELENG_5_0_0_RELEASE:1.38
	RELENG_5_0:1.38.0.2
	RELENG_5_0_BP:1.38
	RELENG_4_7_0_RELEASE:1.29.2.2
	RELENG_4_7:1.29.2.2.0.2
	RELENG_4_7_BP:1.29.2.2
	RELENG_4_6_2_RELEASE:1.29
	RELENG_4_6_1_RELEASE:1.29
	RELENG_4_6_0_RELEASE:1.29
	RELENG_4_6:1.29.0.10
	RELENG_4_6_BP:1.29
	RELENG_4_5_0_RELEASE:1.29
	RELENG_4_5:1.29.0.8
	RELENG_4_5_BP:1.29
	RELENG_4_4_0_RELEASE:1.29
	RELENG_4_4:1.29.0.6
	RELENG_4_4_BP:1.29
	RELENG_4_3_0_RELEASE:1.29
	RELENG_4_3:1.29.0.4
	RELENG_4_3_BP:1.29
	RELENG_4_2_0_RELEASE:1.29
	RELENG_4_1_1_RELEASE:1.29
	PRE_SMPNG:1.29
	RELENG_4_1_0_RELEASE:1.29
	RELENG_3_5_0_RELEASE:1.21.2.2
	RELENG_4_0_0_RELEASE:1.29
	RELENG_4:1.29.0.2
	RELENG_4_BP:1.29
	RELENG_3_4_0_RELEASE:1.21.2.2
	RELENG_3_3_0_RELEASE:1.21.2.2
	RELENG_3_2_PAO:1.21.0.4
	RELENG_3_2_PAO_BP:1.21
	RELENG_3_2_0_RELEASE:1.21
	RELENG_3_1_0_RELEASE:1.21
	RELENG_3:1.21.0.2
	RELENG_3_BP:1.21
	RELENG_2_2_8_RELEASE:1.11.2.3
	RELENG_3_0_0_RELEASE:1.21
	RELENG_2_2_7_RELEASE:1.11.2.3
	RELENG_2_2_6_RELEASE:1.11.2.3
	RELENG_2_2_5_RELEASE:1.11.2.2
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.11.2.1
	RELENG_2_2_1_RELEASE:1.11
	RELENG_2_2_0_RELEASE:1.11
	RELENG_2_1_7_RELEASE:1.9.4.1
	RELENG_2_1_6_1_RELEASE:1.9.4.1
	RELENG_2_1_6_RELEASE:1.9.4.1
	RELENG_2_2:1.11.0.2
	RELENG_2_2_BP:1.11
	RELENG_2_1_5_RELEASE:1.9.4.1
	RELENG_2_1_0_RELEASE:1.9
	RELENG_2_1_0:1.9.0.4
	RELENG_2_1_0_BP:1.9
	RELENG_2_0_5_RELEASE:1.9
	RELENG_2_0_5:1.9.0.2
	RELENG_2_0_5_BP:1.9
	RELENG_2_0_5_ALPHA:1.8
	RELEASE_2_0:1.6
	BETA_2_0:1.6
	ALPHA_2_0:1.6.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.45
date	2012.11.17.01.54.30;	author svnexp;	state Exp;
branches
	1.45.2.1;
next	1.44;

1.44
date	2011.10.16.09.09.33;	author ed;	state Exp;
branches;
next	1.43;

1.43
date	2011.10.16.08.14.12;	author ed;	state Exp;
branches;
next	1.42;

1.42
date	2010.01.02.10.27.05;	author ed;	state Exp;
branches
	1.42.2.1;
next	1.41;

1.41
date	2006.09.01.13.39.02;	author csjp;	state Exp;
branches
	1.41.2.1
	1.41.6.1
	1.41.8.1
	1.41.10.1
	1.41.12.1
	1.41.14.1;
next	1.40;

1.40
date	2004.11.03.18.01.21;	author ru;	state Exp;
branches
	1.40.2.1;
next	1.39;

1.39
date	2004.02.02.18.01.19;	author ru;	state Exp;
branches;
next	1.38;

1.38
date	2001.12.12.23.29.13;	author markm;	state Exp;
branches;
next	1.37;

1.37
date	2001.09.13.06.48.18;	author ru;	state Exp;
branches;
next	1.36;

1.36
date	2001.09.12.19.15.02;	author markm;	state Exp;
branches;
next	1.35;

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

1.34
date	2001.09.04.17.10.57;	author markm;	state Exp;
branches;
next	1.33;

1.33
date	2001.08.11.14.22.32;	author markm;	state Exp;
branches;
next	1.32;

1.32
date	2001.05.26.09.52.36;	author markm;	state Exp;
branches;
next	1.31;

1.31
date	2001.04.28.13.44.14;	author markm;	state Exp;
branches;
next	1.30;

1.30
date	2001.03.27.19.40.51;	author markm;	state Exp;
branches;
next	1.29;

1.29
date	2000.02.24.21.06.21;	author markm;	state Exp;
branches
	1.29.2.1;
next	1.28;

1.28
date	99.12.18.13.55.16;	author peter;	state Exp;
branches;
next	1.27;

1.27
date	99.12.16.10.55.44;	author marcel;	state Exp;
branches;
next	1.26;

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

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

1.24
date	99.08.28.01.05.54;	author peter;	state Exp;
branches;
next	1.23;

1.23
date	99.08.15.13.14.50;	author bde;	state Exp;
branches;
next	1.22;

1.22
date	99.08.13.16.51.40;	author sheldonh;	state Exp;
branches;
next	1.21;

1.21
date	98.09.19.22.42.05;	author obrien;	state Exp;
branches
	1.21.2.1;
next	1.20;

1.20
date	98.09.02.14.46.20;	author bde;	state Exp;
branches;
next	1.19;

1.19
date	98.08.30.17.02.51;	author gpalmer;	state Exp;
branches;
next	1.18;

1.18
date	98.08.30.16.07.18;	author gpalmer;	state Exp;
branches;
next	1.17;

1.17
date	98.08.30.02.49.15;	author jb;	state Exp;
branches;
next	1.16;

1.16
date	98.08.06.21.39.41;	author markm;	state Exp;
branches;
next	1.15;

1.15
date	97.09.28.09.02.15;	author markm;	state Exp;
branches;
next	1.14;

1.14
date	97.09.05.12.04.31;	author peter;	state Exp;
branches;
next	1.13;

1.13
date	97.05.23.21.18.00;	author ache;	state Exp;
branches;
next	1.12;

1.12
date	97.01.13.06.39.19;	author davidn;	state Exp;
branches;
next	1.11;

1.11
date	96.03.09.14.57.41;	author markm;	state Exp;
branches
	1.11.2.1;
next	1.10;

1.10
date	95.10.12.17.25.58;	author wollman;	state Exp;
branches;
next	1.9;

1.9
date	95.05.30.06.34.17;	author rgrimes;	state Exp;
branches
	1.9.4.1;
next	1.8;

1.8
date	95.03.18.17.36.30;	author nate;	state Exp;
branches;
next	1.7;

1.7
date	94.11.20.23.22.48;	author wollman;	state Exp;
branches;
next	1.6;

1.6
date	94.10.19.00.03.43;	author pst;	state Exp;
branches;
next	1.5;

1.5
date	94.09.29.20.54.40;	author pst;	state Exp;
branches;
next	1.4;

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

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

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

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

1.45.2.1
date	2012.11.17.01.54.30;	author svnexp;	state dead;
branches;
next	1.45.2.2;

1.45.2.2
date	2013.03.28.13.06.09;	author svnexp;	state Exp;
branches;
next	;

1.42.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.42.2.1.2.1
	1.42.2.1.4.1;
next	1.42.2.2;

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

1.42.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.42.2.1.2.2;

1.42.2.1.2.2
date	2012.11.17.08.37.37;	author svnexp;	state Exp;
branches;
next	;

1.42.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.42.2.1.4.2;

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

1.41.2.1
date	2012.11.17.08.08.42;	author svnexp;	state Exp;
branches;
next	;

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

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

1.41.10.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.41.10.1.2.1
	1.41.10.1.4.1
	1.41.10.1.6.1
	1.41.10.1.8.1;
next	1.41.10.2;

1.41.10.2
date	2012.11.17.10.37.19;	author svnexp;	state Exp;
branches;
next	1.41.10.3;

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

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

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

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

1.41.10.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.41.10.1.8.2;

1.41.10.1.8.2
date	2012.11.17.08.25.52;	author svnexp;	state Exp;
branches;
next	;

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

1.41.14.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.41.14.2;

1.41.14.2
date	2012.11.17.08.17.44;	author svnexp;	state Exp;
branches;
next	;

1.40.2.1
date	2006.09.22.02.29.54;	author csjp;	state Exp;
branches
	1.40.2.1.6.1;
next	1.40.2.2;

1.40.2.2
date	2012.11.17.07.45.55;	author svnexp;	state Exp;
branches;
next	;

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

1.29.2.1
date	2002.06.16.21.04.15;	author nectar;	state Exp;
branches;
next	1.29.2.2;

1.29.2.2
date	2002.07.17.19.08.23;	author ru;	state Exp;
branches;
next	1.29.2.3;

1.29.2.3
date	2012.11.17.07.27.49;	author svnexp;	state Exp;
branches;
next	;

1.21.2.1
date	99.08.29.15.32.57;	author peter;	state Exp;
branches;
next	1.21.2.2;

1.21.2.2
date	99.09.10.15.10.58;	author sheldonh;	state Exp;
branches;
next	;

1.11.2.1
date	97.05.10.22.07.57;	author davidn;	state Exp;
branches;
next	1.11.2.2;

1.11.2.2
date	97.05.24.17.32.16;	author jdp;	state Exp;
branches;
next	1.11.2.3;

1.11.2.3
date	98.02.18.12.15.55;	author markm;	state Exp;
branches;
next	;

1.9.4.1
date	96.06.23.14.07.38;	author markm;	state Exp;
branches;
next	;

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


desc
@@


1.45
log
@Switching exporter and resync
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 7/19/93
# $FreeBSD: head/usr.bin/su/Makefile 226428 2011-10-16 09:09:33Z ed $

.include <bsd.own.mk>

PROG=	su

WARNS?=	5

DPADD=	${LIBUTIL} ${LIBPAM}
LDADD=	-lutil ${MINUSLPAM}

.if ${MK_AUDIT} != "no"
CFLAGS+= -DUSE_BSM_AUDIT
DPADD+=  ${LIBBSM}
LDADD+=  -lbsm
.endif

BINOWN=	root
BINMODE=4555
PRECIOUSPROG=

.include <bsd.prog.mk>
@


1.45.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:06:09 +0000
@
text
@d1 23
@


1.45.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 21
#	@@(#)Makefile	8.1 (Berkeley) 7/19/93
# $FreeBSD: releng/8.4/usr.bin/su/Makefile 247537 2013-03-01 09:39:29Z des $

.include <bsd.own.mk>

PROG=	su

DPADD=	${LIBUTIL} ${LIBPAM}
LDADD=	-lutil ${MINUSLPAM}

.if ${MK_AUDIT} != "no"
CFLAGS+= -DUSE_BSM_AUDIT
DPADD+=  ${LIBBSM}
LDADD+=  -lbsm
.endif

BINOWN=	root
BINMODE=4555
PRECIOUSPROG=

.include <bsd.prog.mk>
@


1.44
log
@SVN rev 226428 on 2011-10-16 09:09:33Z by ed

Undo r226423.

It seems su does build without warnings, but it requires a small fix to
libbsm headers, which I have not committed to SVN yet.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.43
log
@SVN rev 226423 on 2011-10-16 08:14:12Z by ed

Remove WARNS line. This tool builds with WARNS=6 properly.
@
text
@d8 2
@


1.42
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
@a7 2
WARNS?=	5

@


1.42.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.42.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/su/Makefile 201386 2010-01-02 10:27:05Z ed $
@


1.42.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.42.2.1.4.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/usr.bin/su/Makefile 201386 2010-01-02 10:27:05Z ed $
@


1.42.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.42.2.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/usr.bin/su/Makefile 201386 2010-01-02 10:27:05Z ed $
@


1.41
log
@Integrate audit_submit(3) bits into su. This means that records for
successful and failed su attempts will be recorded using the AUE_su
event type (login or lo class) if auditing is present in the system.
Currently, the records will have a header, subject, text (with the
actual diagnostics), a return and trailer token.

See audit_submit(3) for more information.

Reviewed by:	rwatson
Obtained from:	TrustedBSD Project
@
text
@d8 2
@


1.41.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/usr.bin/su/Makefile 161815 2006-09-01 13:39:02Z csjp $
@


1.41.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.41.14.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/usr.bin/su/Makefile 161815 2006-09-01 13:39:02Z csjp $
@


1.41.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.41.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.41.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/su/Makefile 231501 2012-02-11 01:15:02Z tuexen $
@


1.41.10.3
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/su/Makefile 247537 2013-03-01 09:39:29Z des $
@


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


1.41.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.41.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.41.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.41.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.41.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.40
log
@Introduce the PRECIOUSPROG knob in bsd.prog.mk, similar
to PRECIOUSLIB from bsd.lib.mk.  The side effect of this
is making installing the world under jail(8) possible by
using another knob, NOFSCHG.

Reviewed by:	oliver
@
text
@d4 2
d11 6
@


1.40.2.1
log
@MFC revision 1.80 su.c
MFC revision 1.41 Makefile

  Log:
  Integrate audit_submit(3) bits into su. This means that records for
  successful and failed su attempts will be recorded using the AUE_su
  event type (login or lo class) if auditing is present in the system.
  Currently, the records will have a header, subject, text (with the
  actual diagnostics), a return and trailer token.

This should conclude the userspace audit bits for 6.2, there will be
a lot more to come in future releases!

Reviewed by:	rwatson, cperciva
Approved by:	re@@ (mux)
@
text
@a3 2
.include <bsd.own.mk>

a8 6
.if !defined(NO_AUDIT)
CFLAGS+= -DUSE_BSM_AUDIT
DPADD+=  ${LIBBSM}
LDADD+=  -lbsm
.endif

@


1.40.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/usr.bin/su/Makefile 162542 2006-09-22 02:29:54Z csjp $
@


1.40.2.1.6.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.39
log
@Fixed style of assignments.
@
text
@d11 1
a11 1
INSTALLFLAGS=-fschg
@


1.38
log
@Remove to-be-default WARNS?=2
@
text
@d6 2
a7 2
DPADD+= ${LIBUTIL} ${LIBPAM}
LDADD+= -lutil ${MINUSLPAM}
@


1.37
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/su/Makefile,v 1.36 2001/09/12 19:15:02 markm Exp $
a7 2

WARNS?=	2
@


1.36
log
@Reinstate complete (and now correctly functioning) WARNS=2.
@
text
@d2 1
a2 1
# $FreeBSD$
d11 1
@


1.35
log
@Back out (with prejudice) the last WARNS=2 fix. I cannot understand
its failure mode, and will revisit it later.
@
text
@d9 1
a9 3
# Cannot be enabled because of a truly nasty warning/problem
# concering execv(2)'s second argument.
#WARNS?=	2
@


1.34
log
@WARNS=2 fixes.

The remaining problem of converting highly incompatible pointer types
is done by "laundering" the value through a union.

This solves the problem (in my own mind) of how a "const char *" _ever_
actually gets a value in a WARNS=2 world.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/su/Makefile,v 1.33 2001/08/11 14:22:32 markm Exp $
d9 3
a11 1
WARNS?=	2
@


1.33
log
@WARNS=2 type cleanup.

WARNS=2 cannot be enable because of an unresolvable conflict in arg 2
of execv(). Document this in the Makefile.

Reviewed by:	bde (su.c only)
@
text
@d2 1
a2 1
# $FreeBSD$
d9 1
a9 3
# Cannot be enabled because of a truly nasty warning/problem
# concering execv(2)'s second argument.
#WARNS?=	2
@


1.32
log
@Deconvolute the authentication mess, and hand total responsiblity
for authentication to PAM. This meens that WHEELSU-type logic can
now be effected in the pam.conf "su" configuration stack. While here,
clean up the mess that the code had assumed over years of hacking by
folks using different styles. ANSIfy.

There is more policy in here that can be handed over to PAM. This will
be revisited.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/su/Makefile,v 1.31 2001/04/28 13:44:14 markm Exp $
d8 4
@


1.31
log
@Dike out Kerberos(IV) support on the grounds that better kerberos
support can be gotten via PAM.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/su/Makefile,v 1.30 2001/03/27 19:40:51 markm Exp $
a4 1
SRCS=	su.c
d6 2
a7 17
DPADD+= ${LIBUTIL}
LDADD+= -lutil

.if !defined(NOPAM)
CFLAGS+= -DUSE_PAM
DPADD+= ${LIBPAM}
LDADD+= ${MINUSLPAM}
.else
COPTS+= -DSKEY
DPADD+= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
LDADD+= -lskey -lmd -lcrypt
.endif

.if defined(WHEELSU)
COPTS+=	-DWHEELSU
.endif
CFLAGS+= -Wall
@


1.30
log
@Add full PAM support for account management and sessions.

The PAM_FAIL_CHECK and PAM_END macros in su.c came from the util-linux
package's PAM patches to the BSD login.c

Submitted by:	"David J. MacKenzie" <djm@@web.us.uu.net>
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/su/Makefile,v 1.29 2000/02/24 21:06:21 markm Exp $
a23 7

.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4)
CFLAGS+=-DKERBEROS
DPADD+=	${LIBKRB} ${LIBCRYPTO} ${LIBCOM_ERR}
LDADD+=	-lkrb -lcrypto -lcom_err
DISTRIBUTION=	krb4
.endif
@


1.29
log
@Use libcrypto in place of libdes.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/su/Makefile,v 1.28 1999/12/18 13:55:16 peter Exp $
d7 12
a18 3
COPTS+=	-DLOGIN_CAP -DSKEY
DPADD=	${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
LDADD=	-lutil -lskey -lmd -lcrypt
@


1.29.2.1
log
@Add Kerberos 5 support to su.

Reviewed by:	freebsd-audit, security-officer
@
text
@d2 1
a2 1
# $FreeBSD$
d17 1
a17 1
CFLAGS+=-DKERBEROS4
a20 9
.endif

.if exists(${DESTDIR}${LIBDIR}/libkrb5.a) && defined(MAKE_KERBEROS5)
CFLAGS+=-DKERBEROS5
DPADD+=	${LIBKRB5} ${LIBASN1} ${LIBCRYPTO} ${LIBCRYPT} ${LIBCOM_ERR} \
	${LIBROKEN}
LDADD+=	-lkrb5 -lasn1 -lcrypto -lcrypt -lcom_err \
	-L${.OBJDIR}/../../../../kerberos5/lib/libroken -lroken
DISTRIBUTION=	krb5
@


1.29.2.2
log
@MFC: bsd.init.mk, don't include bsd.own.mk from sys.mk, assorted fixes.
@
text
@d16 1
a16 1
.if defined(MAKE_KERBEROS4) && !defined(NO_OPENSSL) && !defined(NOCRYPT)
d23 1
a23 1
.if defined(MAKE_KERBEROS5) && !defined(NOCRYPT) && !defined(NO_OPENSSL)
@


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


1.28
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/su/Makefile,v 1.27 1999/12/16 10:55:44 marcel Exp $
d18 2
a19 2
DPADD+=	${LIBKRB} ${LIBDES} ${LIBCOM_ERR}
LDADD+=	-lkrb -ldes -lcom_err
@


1.27
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/su/Makefile,v 1.26 1999/09/19 22:26:02 markm Exp $
d8 2
a9 2
DPADD=	${LIBUTIL} ${LIBSKEY} ${LIBCRYPT} ${LIBMD}
LDADD=	-lutil -lskey -lcrypt -lmd
@


1.26
log
@Change edistribution to krb4 in preaparation for K5
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/su/Makefile,v 1.25 1999/09/06 20:22:47 markm Exp $
d8 2
a9 2
DPADD=	${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
LDADD=	-lutil -lskey -lmd -lcrypt
@


1.25
log
@Fix Common Error brokenness.
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/su/Makefile,v 1.24 1999/08/28 01:05:54 peter Exp $
d20 1
a20 1
DISTRIBUTION=	krb
@


1.24
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d18 2
a19 2
DPADD+=	${LIBKRB} ${LIBDES}
LDADD+=	-lkrb -ldes
@


1.23
log
@Fixed editing error in previous commit.  `-lmd' (link libmd) became `-md'
(emulate the 'd' linker (?)).  This was most harmful for the NOSHARED=yes
case since libskey.o isn't linked to libmd.a.

Fixed the usual disorder of DPADD and LDADD, and some tab lossage.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.22 1999/08/13 16:51:40 sheldonh Exp $
@


1.22
log
@Axe LOGIN_CAP_AUTH.

PR:	10115
Reported by:	Gene Skonicki <gene@@cif.rochester.edu>
Requested by:	jdp
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.21 1998/09/19 22:42:05 obrien Exp $
d7 3
a9 3
COPTS+= -DLOGIN_CAP -DSKEY
LDADD+= -lutil -lskey -md -lcrypt
DPADD+= ${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
@


1.21
log
@Remove useless `BINOWN=root' now that it is the default.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.20 1998/09/02 14:46:20 bde Exp $
d7 3
a9 10
#LC_AUTH=-DLOGIN_CAP_AUTH
COPTS+= -DLOGIN_CAP $(LC_AUTH)
LDADD+= -lutil
DPADD+= ${LIBUTIL}

.if !defined(LC_AUTH)
COPTS+=	-DSKEY
LDADD+= -lskey -lmd -lcrypt
DPADD+= ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
.endif
d16 1
a16 2
.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4) \
	&& !defined(LC_AUTH)
@


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


1.21.2.2
log
@MFC: Apply the Danish Axe to LOGIN_CAP_AUTH.

Approved by:	jkh
@
text
@d2 1
a2 1
# $FreeBSD: src/usr.bin/su/Makefile,v 1.21.2.1 1999/08/29 15:32:57 peter Exp $
d7 10
a16 3
COPTS+=	-DLOGIN_CAP -DSKEY
DPADD=	${LIBUTIL} ${LIBSKEY} ${LIBMD} ${LIBCRYPT}
LDADD=	-lutil -lskey -lmd -lcrypt
d23 2
a24 1
.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4)
@


1.20
log
@Removed a buggy ifdef for not linking libmd explicitly.  Explicit
linkage is needed for the NOSHARED=YES case, so it is simplest to
never depend on the automagic linkage for elf shared libraries.

Reviewed by:	jdp
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.19 1998/08/30 17:02:51 gpalmer Exp $
a30 1
BINOWN=	root
@


1.19
log
@Add $Id$
@
text
@d2 1
a2 1
#	$Id$
d14 2
a15 2
LDADD+= -lskey -lcrypt
DPADD+= ${LIBSKEY} ${LIBCRYPT}
a28 6
.endif

# Do we have to provide an implementation for libskey.so?
.if ${OBJFORMAT} != elf || ${MACHINE_ARCH} == "alpha"
LDADD+= -lmd
DPADD+= ${LIBMD}
@


1.18
log
@Still need -lmd on the alpha as it doesn't have shlibs yet
@
text
@d2 1
@


1.17
log
@BINFORMAT -> OBJFORMAT ready for E-day.
@
text
@d31 1
a31 1
.if ${OBJFORMAT} != elf
@


1.16
log
@Fix LIBDIR (for aout/ELF).
@
text
@d31 1
a31 1
.if ${BINFORMAT} != elf
@


1.15
log
@Changes for KTH KerberosIV.
Quieten -Wall a bit.

From Joe Traister:
 The previous patch did not propogate the KRBTKFILE environment variable
 into the new environment when -l is given to su, making it impossible
 for kdestroy to find the ticket file.  This patch corrects that problem
 as well as the original segfault problem.
(Fixes PR 3903)
@
text
@d22 1
a22 1
.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) \
@


1.14
log
@If elf, don't add libmd.a just because we link against libskey.so.
A
@
text
@d22 2
a23 2
.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \
	|| defined(MAKE_EBONES)) && !defined(LC_AUTH)
@


1.13
log
@Move libmd after all libraries to keep natural libraries order
@
text
@d30 2
d34 1
@


1.12
log
@Make su login_cap savvy.
As with login(1), LOGIN_CAP_AUTH is not yet enabled since we don't
yet have authorisation modules.
@
text
@a5 3
LDADD=	-lmd
DPADD=	${LIBMD} 

d29 3
@


1.11
log
@Better integrate kerberos into su so that if an incorrect Kerberos
password is entered, the user is not prompted for a password a second
time.

This closes pr-bin/1006.
@
text
@d6 9
d16 4
a24 3
LDADD=	-lskey -lmd -lcrypt
DPADD=	${LIBSKEY} ${LIBMD} ${LIBCRYPT}

d26 1
a26 1
	|| defined(MAKE_EBONES))
@


1.11.2.1
log
@MFC: Make su login.conf aware.
@
text
@a5 9
LDADD=	-lmd
DPADD=	${LIBMD} 

#LC_AUTH=-DLOGIN_CAP_AUTH
COPTS+= -DLOGIN_CAP $(LC_AUTH)
LDADD+= -lutil
DPADD+= ${LIBUTIL}

.if !defined(LC_AUTH)
a6 4
LDADD+= -lskey -lcrypt
DPADD+= ${LIBSKEY} ${LIBCRYPT}
.endif

d12 3
d16 1
a16 1
	|| defined(MAKE_EBONES)) && !defined(LC_AUTH)
@


1.11.2.2
log
@Merge from main branch 1.12 -> 1.13: Move "-lmd" to the end of the
linker line.

This solves the ``Undefined symbol "_MD4Init"'' messages from the
dynamic linker when s/key is used.
@
text
@d6 3
a31 3

LDADD+= -lmd
DPADD+= ${LIBMD}
@


1.11.2.3
log
@Replace eBones with kerberosIV (Actually KTH eBones from current)
@
text
@d22 2
a23 2
.if exists(${DESTDIR}/usr/lib/libkrb.a) && defined(MAKE_KERBEROS4) \
	&& !defined(LC_AUTH)
@


1.10
log
@Make it possible to enable WHEELSU from /etc/make.conf.
@
text
@d10 1
@


1.9
log
@Remove trailing whitespace.
@
text
@d6 4
a9 1
CFLAGS+=-DSKEY
@


1.9.4.1
log
@Merge with HEAD.
@
text
@d6 1
a6 5
COPTS+=	-DSKEY
.if defined(WHEELSU)
COPTS+=	-DWHEELSU
.endif
CFLAGS+= -Wall
@


1.8
log
@Change the library order so libcrypt is the last library in the list.
libskey contains references to _crypt and can't resolve it unless
-lcrypt occurs after it in the link command.  This only occurs when
linking statically.
@
text
@d9 1
a9 1
DPADD=	${LIBSKEY} ${LIBMD} ${LIBCRYPT} 
@


1.7
log
@Add distribution=krb for P-HK
@
text
@d8 2
a9 2
LDADD=	-lcrypt -lskey -lmd
DPADD=	${LIBCRYPT} ${LIBSKEY} ${LIBMD}
@


1.6
log
@Include most of the logdaemon v4.4 S/key changes
@
text
@d16 1
@


1.5
log
@Add support for s/keys
@
text
@d4 2
a5 3
LDADD=	-lcrypt -lskey
DPADD=	${LIBCRYPT} ${LIBSKEY}
SRCS=	su.c login_skey.c
d8 2
a9 1
.PATH:	${.CURDIR}/../login
@


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
@d4 6
a9 2
LDADD=	-lcrypt
DPADD=	${LIBCRYPT}
@


1.3
log
@LDADD= -lcrypt
Submitted by:	Geoff
@
text
@d5 9
a13 3
#CFLAGS+=-DKERBEROS
#DPADD=	${LIBKRB} ${LIBDES}
#LDADD+=-lkrb -ldes
@


1.2
log
@Don't use kerberos yet, we aren't ready.
@
text
@d4 1
d7 1
a7 1
#LDADD=	-lkrb -ldes
@


1.1
log
@Initial revision
@
text
@d4 3
a6 3
CFLAGS+=-DKERBEROS
DPADD=	${LIBKRB} ${LIBDES}
LDADD=	-lkrb -ldes
@


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