head	1.38;
access;
symbols
	RELENG_8_4:1.38.0.2
	RELENG_9_1_0_RELEASE:1.37.2.1.4.2
	RELENG_9_1:1.37.2.1.0.4
	RELENG_9_1_BP:1.37.2.1
	RELENG_8_3_0_RELEASE:1.34.10.1.8.1
	RELENG_8_3:1.34.10.1.0.8
	RELENG_8_3_BP:1.34.10.1
	RELENG_9_0_0_RELEASE:1.37.2.1.2.1
	RELENG_9_0:1.37.2.1.0.2
	RELENG_9_0_BP:1.37.2.1
	RELENG_9:1.37.0.2
	RELENG_9_BP:1.37
	RELENG_7_4_0_RELEASE:1.34.14.1
	RELENG_8_2_0_RELEASE:1.34.10.1.6.1
	RELENG_7_4:1.34.0.14
	RELENG_7_4_BP:1.34
	RELENG_8_2:1.34.10.1.0.6
	RELENG_8_2_BP:1.34.10.1
	RELENG_8_1_0_RELEASE:1.34.10.1.4.1
	RELENG_8_1:1.34.10.1.0.4
	RELENG_8_1_BP:1.34.10.1
	RELENG_7_3_0_RELEASE:1.34.12.1
	RELENG_7_3:1.34.0.12
	RELENG_7_3_BP:1.34
	RELENG_8_0_0_RELEASE:1.34.10.1.2.1
	RELENG_8_0:1.34.10.1.0.2
	RELENG_8_0_BP:1.34.10.1
	RELENG_8:1.34.0.10
	RELENG_8_BP:1.34
	RELENG_7_2_0_RELEASE:1.34.8.1
	RELENG_7_2:1.34.0.8
	RELENG_7_2_BP:1.34
	RELENG_7_1_0_RELEASE:1.34.6.1
	RELENG_6_4_0_RELEASE:1.32.2.1.4.1
	RELENG_7_1:1.34.0.6
	RELENG_7_1_BP:1.34
	RELENG_6_4:1.32.2.1.0.4
	RELENG_6_4_BP:1.32.2.1
	RELENG_7_0_0_RELEASE:1.34
	RELENG_6_3_0_RELEASE:1.32.2.1
	RELENG_7_0:1.34.0.4
	RELENG_7_0_BP:1.34
	RELENG_6_3:1.32.2.1.0.2
	RELENG_6_3_BP:1.32.2.1
	RELENG_7:1.34.0.2
	RELENG_7_BP:1.34
	RELENG_6_2_0_RELEASE:1.32
	RELENG_6_2:1.32.0.8
	RELENG_6_2_BP:1.32
	RELENG_5_5_0_RELEASE:1.29
	RELENG_5_5:1.29.0.8
	RELENG_5_5_BP:1.29
	RELENG_6_1_0_RELEASE:1.32
	RELENG_6_1:1.32.0.6
	RELENG_6_1_BP:1.32
	RELENG_6_0_0_RELEASE:1.32
	RELENG_6_0:1.32.0.4
	RELENG_6_0_BP:1.32
	RELENG_6:1.32.0.2
	RELENG_6_BP:1.32
	RELENG_5_4_0_RELEASE:1.29
	RELENG_5_4:1.29.0.6
	RELENG_5_4_BP:1.29
	RELENG_4_11_0_RELEASE:1.20.2.4
	RELENG_4_11:1.20.2.4.0.16
	RELENG_4_11_BP:1.20.2.4
	RELENG_5_3_0_RELEASE:1.29
	RELENG_5_3:1.29.0.4
	RELENG_5_3_BP:1.29
	RELENG_5:1.29.0.2
	RELENG_5_BP:1.29
	RELENG_4_10_0_RELEASE:1.20.2.4
	RELENG_4_10:1.20.2.4.0.14
	RELENG_4_10_BP:1.20.2.4
	RELENG_5_2_1_RELEASE:1.28
	RELENG_5_2_0_RELEASE:1.28
	RELENG_5_2:1.28.0.2
	RELENG_5_2_BP:1.28
	RELENG_4_9_0_RELEASE:1.20.2.4
	RELENG_4_9:1.20.2.4.0.12
	RELENG_4_9_BP:1.20.2.4
	RELENG_5_1_0_RELEASE:1.27
	RELENG_5_1:1.27.0.4
	RELENG_5_1_BP:1.27
	RELENG_4_8_0_RELEASE:1.20.2.4
	RELENG_4_8:1.20.2.4.0.10
	RELENG_4_8_BP:1.20.2.4
	RELENG_5_0_0_RELEASE:1.27
	RELENG_5_0:1.27.0.2
	RELENG_5_0_BP:1.27
	RELENG_4_7_0_RELEASE:1.20.2.4
	RELENG_4_7:1.20.2.4.0.8
	RELENG_4_7_BP:1.20.2.4
	RELENG_4_6_2_RELEASE:1.20.2.4
	RELENG_4_6_1_RELEASE:1.20.2.4
	RELENG_4_6_0_RELEASE:1.20.2.4
	RELENG_4_6:1.20.2.4.0.6
	RELENG_4_6_BP:1.20.2.4
	RELENG_4_5_0_RELEASE:1.20.2.4
	RELENG_4_5:1.20.2.4.0.4
	RELENG_4_5_BP:1.20.2.4
	RELENG_4_4_0_RELEASE:1.20.2.4
	RELENG_4_4:1.20.2.4.0.2
	RELENG_4_4_BP:1.20.2.4
	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.21
	RELENG_4_1_0_RELEASE:1.20
	RELENG_3_5_0_RELEASE:1.15.2.3
	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.3
	RELENG_3_3_0_RELEASE:1.15.2.3
	RELENG_3_2_PAO:1.15.0.4
	RELENG_3_2_PAO_BP:1.15
	RELENG_3_2_0_RELEASE:1.15
	RELENG_3_1_0_RELEASE:1.15
	RELENG_3:1.15.0.2
	RELENG_3_BP:1.15
	RELENG_2_2_8_RELEASE:1.8.2.2
	RELENG_3_0_0_RELEASE:1.15
	RELENG_2_2_7_RELEASE:1.8.2.2
	RELENG_2_2_6_RELEASE:1.8.2.2
	RELENG_2_2_5_RELEASE:1.8.2.1
	bsd_44_lite_2:1.1.1.1
	RELENG_2_2_2_RELEASE:1.8
	RELENG_2_2_1_RELEASE:1.8
	RELENG_2_2_0_RELEASE:1.8
	RELENG_2_1_7_RELEASE:1.3.6.1
	RELENG_2_1_6_1_RELEASE:1.3.6.1
	RELENG_2_1_6_RELEASE:1.3
	RELENG_2_2:1.8.0.2
	RELENG_2_2_BP:1.8
	RELENG_2_1_5_RELEASE:1.3
	RELENG_2_1_0_RELEASE:1.3
	RELENG_2_1_0:1.3.0.6
	RELENG_2_1_0_BP:1.3
	RELENG_2_0_5_RELEASE:1.3
	RELENG_2_0_5:1.3.0.4
	RELENG_2_0_5_BP:1.3
	RELENG_2_0_5_ALPHA:1.3
	RELEASE_2_0:1.3
	BETA_2_0:1.3
	ALPHA_2_0:1.3.0.2
	bsd_44_lite:1.1.1.1
	CSRG:1.1.1;
locks; strict;
comment	@# @;


1.38
date	2012.11.17.01.50.22;	author svnexp;	state Exp;
branches
	1.38.2.1;
next	1.37;

1.37
date	2010.01.13.17.58.49;	author ed;	state Exp;
branches
	1.37.2.1;
next	1.36;

1.36
date	2009.12.05.20.26.55;	author ed;	state Exp;
branches;
next	1.35;

1.35
date	2009.10.19.16.00.24;	author ru;	state Exp;
branches;
next	1.34;

1.34
date	2007.06.01.21.48.06;	author remko;	state Exp;
branches
	1.34.2.1
	1.34.6.1
	1.34.8.1
	1.34.10.1
	1.34.12.1
	1.34.14.1;
next	1.33;

1.33
date	2006.02.28.08.02.28;	author luigi;	state Exp;
branches;
next	1.32;

1.32
date	2005.01.11.14.34.29;	author delphij;	state Exp;
branches
	1.32.2.1;
next	1.31;

1.31
date	2004.12.21.09.59.42;	author ru;	state Exp;
branches;
next	1.30;

1.30
date	2004.11.03.18.01.19;	author ru;	state Exp;
branches;
next	1.29;

1.29
date	2004.02.23.20.13.52;	author johan;	state Exp;
branches;
next	1.28;

1.28
date	2003.11.19.19.57.20;	author gordon;	state Exp;
branches;
next	1.27;

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

1.26
date	2001.05.28.16.58.35;	author ru;	state Exp;
branches;
next	1.25;

1.25
date	2001.03.26.14.33.05;	author ru;	state Exp;
branches;
next	1.24;

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

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

1.22
date	2001.01.01.19.46.43;	author phk;	state Exp;
branches;
next	1.21;

1.21
date	2000.06.09.09.40.34;	author alex;	state Exp;
branches;
next	1.20;

1.20
date	2000.02.29.11.40.57;	author markm;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	99.08.28.00.13.10;	author peter;	state Exp;
branches;
next	1.18;

1.18
date	99.08.05.09.13.57;	author ru;	state Exp;
branches;
next	1.17;

1.17
date	99.07.01.13.33.56;	author ru;	state Exp;
branches;
next	1.16;

1.16
date	99.06.18.09.08.06;	author ru;	state Exp;
branches;
next	1.15;

1.15
date	98.01.20.10.39.56;	author bde;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	97.08.18.03.32.09;	author davidn;	state Exp;
branches;
next	1.13;

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

1.12
date	97.02.22.14.32.34;	author peter;	state Exp;
branches;
next	1.11;

1.11
date	97.02.10.17.44.34;	author markm;	state Exp;
branches;
next	1.10;

1.10
date	97.01.19.16.49.13;	author davidn;	state Exp;
branches;
next	1.9;

1.9
date	97.01.14.06.24.30;	author jkh;	state Exp;
branches;
next	1.8;

1.8
date	96.09.05.17.14.50;	author bde;	state Exp;
branches
	1.8.2.1;
next	1.7;

1.7
date	96.05.04.08.16.20;	author markm;	state Exp;
branches;
next	1.6;

1.6
date	96.02.13.09.12.10;	author joerg;	state Exp;
branches;
next	1.5;

1.5
date	95.10.03.15.11.11;	author bde;	state Exp;
branches;
next	1.4;

1.4
date	95.10.01.15.12.47;	author markm;	state Exp;
branches;
next	1.3;

1.3
date	94.08.15.02.45.37;	author wollman;	state Exp;
branches
	1.3.6.1;
next	1.2;

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

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

1.38.2.1
date	2012.11.17.01.50.22;	author svnexp;	state dead;
branches;
next	1.38.2.2;

1.38.2.2
date	2013.03.28.13.03.34;	author svnexp;	state Exp;
branches;
next	;

1.37.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.37.2.1.2.1
	1.37.2.1.4.1;
next	1.37.2.2;

1.37.2.2
date	2012.11.17.11.36.32;	author svnexp;	state Exp;
branches;
next	;

1.37.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.37.2.1.2.2;

1.37.2.1.2.2
date	2012.11.17.08.36.31;	author svnexp;	state Exp;
branches;
next	;

1.37.2.1.4.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.37.2.1.4.2;

1.37.2.1.4.2
date	2012.11.17.08.47.21;	author svnexp;	state Exp;
branches;
next	;

1.34.2.1
date	2012.11.17.08.03.37;	author svnexp;	state Exp;
branches;
next	;

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

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

1.34.10.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.34.10.1.2.1
	1.34.10.1.4.1
	1.34.10.1.6.1
	1.34.10.1.8.1;
next	1.34.10.2;

1.34.10.2
date	2012.11.17.10.36.16;	author svnexp;	state Exp;
branches;
next	;

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

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

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

1.34.10.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.34.10.1.8.2;

1.34.10.1.8.2
date	2012.11.17.08.24.56;	author svnexp;	state Exp;
branches;
next	;

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

1.34.14.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.34.14.2;

1.34.14.2
date	2012.11.17.08.16.54;	author svnexp;	state Exp;
branches;
next	;

1.32.2.1
date	2006.12.03.19.01.42;	author luigi;	state Exp;
branches
	1.32.2.1.4.1;
next	1.32.2.2;

1.32.2.2
date	2012.11.17.07.41.19;	author svnexp;	state Exp;
branches;
next	;

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

1.20.2.1
date	2000.08.08.03.47.21;	author ps;	state Exp;
branches;
next	1.20.2.2;

1.20.2.2
date	2001.04.25.10.58.23;	author ru;	state Exp;
branches;
next	1.20.2.3;

1.20.2.3
date	2001.07.16.03.31.55;	author peter;	state Exp;
branches;
next	1.20.2.4;

1.20.2.4
date	2001.08.01.06.37.01;	author obrien;	state Exp;
branches;
next	1.20.2.5;

1.20.2.5
date	2012.11.17.07.24.30;	author svnexp;	state Exp;
branches;
next	;

1.15.2.1
date	99.06.23.10.24.06;	author ru;	state Exp;
branches;
next	1.15.2.2;

1.15.2.2
date	99.07.01.13.40.53;	author ru;	state Exp;
branches;
next	1.15.2.3;

1.15.2.3
date	99.08.29.15.13.43;	author peter;	state Exp;
branches;
next	;

1.8.2.1
date	97.08.18.03.30.04;	author davidn;	state Exp;
branches;
next	1.8.2.2;

1.8.2.2
date	98.03.06.07.29.45;	author jkh;	state Exp;
branches;
next	1.8.2.3;

1.8.2.3
date	99.09.05.11.24.01;	author peter;	state Exp;
branches;
next	;

1.3.6.1
date	96.11.24.09.31.43;	author joerg;	state Exp;
branches;
next	1.3.6.2;

1.3.6.2
date	99.09.05.11.24.45;	author peter;	state Exp;
branches;
next	;

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


desc
@@


1.38
log
@Switching exporter and resync
@
text
@#	@@(#)Makefile	8.1 (Berkeley) 7/19/93
# $FreeBSD: head/sbin/init/Makefile 202194 2010-01-13 17:58:49Z ed $

PROG=	init
MAN=	init.8
PRECIOUSPROG=
INSTALLFLAGS=-b -B.bak
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT
DPADD=	${LIBUTIL} ${LIBCRYPT}
LDADD=	-lutil -lcrypt

NO_SHARED?=	YES

.include <bsd.prog.mk>
@


1.38.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:03:34 +0000
@
text
@d1 14
@


1.38.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 15
#	@@(#)Makefile	8.1 (Berkeley) 7/19/93
# $FreeBSD: releng/8.4/sbin/init/Makefile 170195 2007-06-01 21:48:07Z remko $

PROG=	init
MAN=	init.8
PRECIOUSPROG=
INSTALLFLAGS=-b -B.bak
WARNS?=	6
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT
DPADD=	${LIBUTIL} ${LIBCRYPT}
LDADD=	-lutil -lcrypt

NO_SHARED?=	YES

.include <bsd.prog.mk>
@


1.37
log
@SVN rev 202194 on 2010-01-13 17:58:49Z by ed

Migrate init(8) towards utmpx.

According to a comment, we cannot safely remove utmpx entries here
anymore. This is because the libc routines may block on file locking. In
an ideal world login(1) should just remove the entries, which is why I'm
disabling this code for now. If it turns out we get lots of stale
entries here, we should figure out a way to deal with that.
@
text
@d2 1
a2 1
# $FreeBSD$
@


1.37.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.37.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/sbin/init/Makefile 202194 2010-01-13 17:58:49Z ed $
@


1.37.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.37.2.1.4.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.1/sbin/init/Makefile 202194 2010-01-13 17:58:49Z ed $
@


1.37.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.37.2.1.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/9.0/sbin/init/Makefile 202194 2010-01-13 17:58:49Z ed $
@


1.36
log
@SVN rev 200161 on 2009-12-05 20:26:55Z by ed

Let init(8) and reboot(8) use utmpx to log wtmp entries.

logwtmp() gets called with the raw strings that are written to disk. For
regular user entries, this isn't too bad, but when booting/shutting
down, the contents get rather cryptic.

Just call the standardized pututxline().
@
text
@d9 2
a10 2
DPADD=	${LIBUTIL} ${LIBULOG} ${LIBCRYPT}
LDADD=	-lutil -lulog -lcrypt
@


1.35
log
@SVN rev 198236 on 2009-10-19 16:00:24Z by ru

Switch the default WARNS level for sbin/ to 6.

Submitted by:	Ulrich Spörlein
@
text
@d9 2
a10 2
DPADD=	${LIBUTIL} ${LIBCRYPT}
LDADD=	-lutil -lcrypt
@


1.34
log
@I understood the MLINK part incorrectly, it should be the other way around
also remove the init mlink to securelevel.

Discussed with and sharing pointyhat with:	brueffer
@
text
@a7 1
WARNS?=	6
@


1.34.2.1
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/7/sbin/init/Makefile 170195 2007-06-01 21:48:07Z remko $
@


1.34.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.34.14.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/7.4/sbin/init/Makefile 170195 2007-06-01 21:48:07Z remko $
@


1.34.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.34.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.34.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/sbin/init/Makefile 170195 2007-06-01 21:48:07Z remko $
@


1.34.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.34.10.1.8.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: releng/8.3/sbin/init/Makefile 170195 2007-06-01 21:48:07Z remko $
@


1.34.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.34.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.34.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.34.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.34.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.33
log
@use standard mode instead of 500 for /sbin/init.

As discussed on -current, there is no sensitive info in /sbin/init
to prevent reading it from non-privileged users, nor any reason to
remove the 'x' bit as the first thing the program does is check the
uid and exit if it is not run by root.

Instead (and this is why i make the change), mode 500 prevents
operation when exporting the partition without -maproot=0 to diskless
clients.

All previuos releases are affected by the same problem, so a merge
to RELENG_6 at least would be appropriate (after proper re@@ approval
of course).
@
text
@a5 1
MLINKS=	init.8 securelevel.8
@


1.32
log
@Make WARNS=6 happy with our init(8):
	- Use more ``const''s where suitable.
	- Define strk() as a static function in global scope.
	  This avoids the "nested extern declaration" warnings.
	- Use static initialization of strings, rather than
	  referring string constants through char *.
	- Bump WARNS from 0 to 6.
@
text
@a6 1
BINMODE=500
@


1.32.2.1
log
@MFC 1.33:
use standard mode instead of 500 for /sbin/init
@
text
@d7 1
@


1.32.2.2
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/6/sbin/init/Makefile 164854 2006-12-03 19:01:42Z luigi $
@


1.32.2.1.4.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.31
log
@NOSHARED -> NO_SHARED
@
text
@d10 1
a11 1
WARNS?=	0
@


1.30
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
@d15 1
a15 1
NOSHARED?=	YES
@


1.29
log
@style.Makefile(5):
	Use WARNS?= instead of WARNS=.
@
text
@d8 2
a9 1
INSTALLFLAGS=-fschg -b -B.bak
@


1.28
log
@Make init statically linked by default. It's not worth the pain of having
a dynamically linked init as recently seen by ia64 woes.

Approved by:	re (jhb)
@
text
@d10 1
a10 1
WARNS=	0
@


1.27
log
@Default to WARNS=2.
Binary builds that cannot handle this must explicitly set WARNS=0.

Reviewed by:	mike
@
text
@d14 2
@


1.26
log
@Use new backup feature of install(1).
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.25 2001/03/26 14:33:05 ru Exp $
d10 1
@


1.25
log
@- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.24 2001/03/20 18:13:12 ru Exp $
d8 1
a8 1
INSTALLFLAGS=-fschg
a11 6

beforeinstall:
.if exists(${DESTDIR}${BINDIR}/${PROG})
	-chflags noschg ${DESTDIR}${BINDIR}/${PROG}
	mv ${DESTDIR}${BINDIR}/${PROG} ${DESTDIR}${BINDIR}/${PROG}.bak
.endif
@


1.24
log
@Set the default manual section for sbin/ to 8.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.23 2001/01/01 21:39:00 peter Exp $
d5 1
@


1.23
log
@Further tidy up the sbin/init and release builds.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.22 2001/01/01 19:46:43 phk Exp $
a4 1
MAN8=	init.8
@


1.22
log
@This is not necessarily the correct fix, but at least sbin/init compiles
in a sterile environment like "make release"
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.21 2000/06/09 09:40:34 alex Exp $
d10 2
a11 28

#.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
#DISTRIBUTION=crypto
#DPADD=	${LIBUTIL} ${DESCRYPTOBJDIR}/libdescrypt.a
#LDADD=	-lutil -L${DESCRYPTOBJDIR} -ldescrypt
#.else
#DPADD=	${LIBUTIL} ${SCRYPTOBJDIR}/libscrypt.a
#LDADD=	-lutil -L${SCRYPTOBJDIR} -lscrypt
#.endif

DPADD=	${LIBUTIL} ${SCRYPTOBJDIR}/libcrypt.a
LDADD=	-lutil -L${SCRYPTOBJDIR} -lcrypt

.if exists(${.OBJDIR}/../../lib/libcrypt)
SCRYPTOBJDIR=	${.OBJDIR}/../../lib/libcrypt
.else
SCRYPTOBJDIR=	${.CURDIR}/../../lib/libcrypt
.endif

.if exists (${.CURDIR}/../../secure)

.if exists(${.OBJDIR}/../../secure/lib/libcrypt)
DESCRYPTOBJDIR=	${.OBJDIR}/../../secure/lib/libcrypt
.else
DESCRYPTOBJDIR=	${.CURDIR}/../../secure/lib/libcrypt
.endif

.endif
@


1.21
log
@Add MLINK init.8 --> securelevel.8

Requested by:	Brett Glass <brett@@lariat.org>
PR:		13792
Submitted by:	nik
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.20 2000/02/29 11:40:57 markm Exp $
d11 11
a21 8
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
DISTRIBUTION=crypto
DPADD=	${LIBUTIL} ${DESCRYPTOBJDIR}/libdescrypt.a
LDADD=	-lutil -L${DESCRYPTOBJDIR} -ldescrypt
.else
DPADD=	${LIBUTIL} ${SCRYPTOBJDIR}/libscrypt.a
LDADD=	-lutil -L${SCRYPTOBJDIR} -lscrypt
.endif
@


1.20
log
@Change DISTRIBUTION to match new world order.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.19 1999/08/28 00:13:10 peter Exp $
d6 1
@


1.20.2.1
log
@MFC: [rev 1.21] Add MLINK init.8 --> securelevel.8
@
text
@d2 1
a2 1
# $FreeBSD$
a5 1
MLINKS=	init.8 securelevel.8
@


1.20.2.2
log
@MFC: MAN[1-9] -> MAN.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.20.2.1 2000/08/08 03:47:21 ps Exp $
d5 1
a5 1
MAN=	init.8
@


1.20.2.3
log
@MFC: init no longer needs the magic to look into the internals of
the libscrypt/libdescrypt builds since libcrypt is unified now.
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.20.2.2 2001/04/25 10:58:23 ru Exp $
d10 25
a34 2
DPADD=	${LIBUTIL} ${LIBCRYPT}
LDADD=	-lutil -lcrypt
@


1.20.2.4
log
@MFC: rev 1.26 (use new backup feature of install(1))
@
text
@d2 1
a2 1
# $FreeBSD: src/sbin/init/Makefile,v 1.20.2.3 2001/07/16 03:31:55 peter Exp $
d8 1
a8 1
INSTALLFLAGS=-fschg -b -B.bak
d12 6
@


1.20.2.5
log
@Switch importer
@
text
@d2 1
a2 1
# $FreeBSD: stable/4/sbin/init/Makefile 80850 2001-08-01 06:37:01Z obrien $
@


1.19
log
@$Id$ -> $FreeBSD$
@
text
@d2 1
a2 1
# $FreeBSD$
d11 1
a11 1
DISTRIBUTION=des
@


1.18
log
@Backup existing init(8) as /sbin/init.bak.

PR:		12976
Submitted by:	Peter Jeremy <peter.jeremy@@alcatel.com.au>
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.17 1999/07/01 13:33:56 ru Exp $
@


1.17
log
@Turn System V command line syntax ``on'' by default.

Requested by:		peter
Reviewed by:		des, billf
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.16 1999/06/18 09:08:06 ru Exp $
a18 2
.include <bsd.prog.mk>

d34 8
@


1.16
log
@Bring in System V run-level patches (turned off by default).
While I'm here, fix some typos in the manpage.

Requested by:	des
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.15 1998/01/20 10:39:56 bde Exp $
d8 1
a8 4
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP

# Uncomment the following line to activate System V compatibility mode
#CFLAGS+=-DCOMPAT_SYSV_INIT
@


1.15
log
@Removed definition of _NEW_VFSCONF.  The new vfsconf interface is now
the default.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.14 1997/08/18 03:32:09 davidn Exp $
d9 3
@


1.15.2.1
log
@MFC:

- init(8) will now halt the system if sent USR1 signal,
  or halt and turn the power off (if hardware permits)
  if sent USR2 signal.  System V's command line syntax
  is also available, but turned off by default.

- shutdown(8) will now signal init(8) instead of simply
  executing halt(8) or reboot(8) to halt or reboot the
  system.  This benefits from running /etc/rc.shutdown
  by init(8).  ``-o'' flag is provided for backward
  compatibility.

- various minor cleanups to shutdown(8).

- some reboot(8) details clarified.

PR:		5451
Thanks to:	Leif Neland <leifn@@image.dk>
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.16 1999/06/18 09:08:06 ru Exp $
a8 3

# Uncomment the following line to activate System V compatibility mode
#CFLAGS+=-DCOMPAT_SYSV_INIT
@


1.15.2.2
log
@MFC: Turn System V command line syntax ``on'' by default.

Requested by:		peter
Reviewed by:		des, billf
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.15.2.1 1999/06/23 10:24:06 ru Exp $
d8 4
a11 1
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT
@


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


1.14
log
@".if exists(${CURDIR}/../../secure)" rather than testing relative to the
object directory.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.13 1997/07/05 19:34:51 ache Exp $
d8 1
a8 1
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -D_NEW_VFSCONF
@


1.13
log
@Add -D_NEW_VFSCONF to eliminate compilation warning
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.12 1997/02/22 14:32:34 peter Exp $
d10 1
a10 1
.if exists(../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
@


1.12
log
@Revert $FreeBSD$ to $Id$
@
text
@d2 1
a2 1
#	$Id$
d8 1
a8 1
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP
@


1.11
log
@Part two of a "fix-and-move". There were some macros declared in ../sbin's
Makefile that were a) broken and b) bogusly placed. This brings the
repeared macros in.

Pointed-out-by:	BDE
@
text
@d2 1
a2 1
#	$FreeBSD$
@


1.10
log
@Impose login_cap resource limits on processes started by init.
	/etc/rc started with "daemon" settings.
	"window=" started with "default" settings
	gettys started with "default" settings.
This should open the way to junk kernel options MAX_{OPEN,CHILD}
and the corresponding sysctl vars.
@
text
@d20 16
@


1.9
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 1
a8 1
CFLAGS+=-DDEBUGSHELL -DSECURE
@


1.8
log
@Fixed DPADD.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.7 1996/05/04 08:16:20 markm Exp $
@


1.8.2.1
log
@Sync with current (almost).
Bring in minor cleanups, rc.shutdown support (this is non-intrusive and
effective a no-op if /etc/rc.shutdown does not exist).
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.8 1996/09/05 17:14:50 bde Exp $
d8 1
a8 1
CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP
d10 1
a10 1
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
@


1.8.2.2
log
@MFC: ... and into here, where it belongs as the only consumer.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.8.2.1 1997/08/18 03:30:04 davidn Exp $
a19 16

.if exists(${.OBJDIR}/../../lib/libcrypt)
SCRYPTOBJDIR=	${.OBJDIR}/../../lib/libcrypt
.else
SCRYPTOBJDIR=	${.CURDIR}/../../lib/libcrypt
.endif

.if exists (${.CURDIR}/../../secure)

.if exists(${.OBJDIR}/../../secure/lib/libcrypt)
DESCRYPTOBJDIR=	${.OBJDIR}/../../secure/lib/libcrypt
.else
DESCRYPTOBJDIR=	${.CURDIR}/../../secure/lib/libcrypt
.endif

.endif
@


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


1.7
log
@Better method of choosing libdescrypt/libscrypt.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.6 1996/02/13 09:12:10 joerg Exp $
d12 2
a13 2
DPADD=	${DESCRYPTOBJDIR}/libdescrypt.a ${LIBUTIL}
LDADD=	-L${DESCRYPTOBJDIR} -lutil -ldescrypt
d15 2
a16 2
DPADD=	${SCRYPTOBJDIR}/libscrypt.a ${LIBUTIL}
LDADD=	-L${SCRYPTOBJDIR} -lutil -lscrypt
@


1.6
log
@The DES-based init(8) belongs to the "des" distribution.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1995/10/03 15:11:11 bde Exp $
a5 2
DPADD=	${LIBUTIL}
LDADD=	-lutil -lcrypt
d12 5
a16 3
DPADD=	${CRYPTOBJDIR}/libdescrypt.a ${LIBUTIL}
LDADD=	-L${CRYPTOBJDIR} -lutil -ldescrypt
BINMODE=500
@


1.5
log
@Fix $Id$.
@
text
@d2 1
a2 1
#	$Id$
d13 1
@


1.4
log
@Make this make work the same way as passwd and xntpd. Here it will allow
secure/sbin/init to be cleaned out, and sbin/Makefile to be tidied up.
@
text
@d2 1
a2 1
#	$id$
@


1.3
log
@`init' needs crypt() for insecure consoles.
@
text
@d2 1
d11 6
@


1.3.6.1
log
@Merge the Makefile changes from -current that allow to build both
versions, the DES-contaminated and the exportable one, during a `make
release'.  This should fix the problems where /sbin/init and /bin/ed
have been missing in the `des' distribution of 2.1.6.

Requested by:	jkh
Reviewed by:	markm
@
text
@a1 1
#	$Id: Makefile,v 1.8 1996/09/05 17:14:50 bde Exp $
d5 2
a9 9

.if exists(../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
DISTRIBUTION=des
DPADD=	${LIBUTIL} ${DESCRYPTOBJDIR}/libdescrypt.a
LDADD=	-lutil -L${DESCRYPTOBJDIR} -ldescrypt
.else
DPADD=	${LIBUTIL} ${SCRYPTOBJDIR}/libscrypt.a
LDADD=	-lutil -L${SCRYPTOBJDIR} -lscrypt
.endif
@


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


1.2
log
@Convert to our man installation style.  Also fixed long-standing bug
in `fastboot'/`fasthalt' in which the interpreter would hang around
after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
@
text
@d6 1
a6 1
LDADD=	-lutil
@


1.1
log
@Initial revision
@
text
@d4 1
a4 1
MAN8=	init.0
@


1.1.1.1
log
@BSD 4.4 Lite sbin Sources

Note:  XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
@
text
@@
