head	1.11;
access;
symbols
	netbsd-11-0-RC4:1.11
	netbsd-11-0-RC3:1.11
	netbsd-11-0-RC2:1.11
	netbsd-11-0-RC1:1.11
	perseant-exfatfs-base-20250801:1.11
	netbsd-11:1.11.0.92
	netbsd-11-base:1.11
	netbsd-10-1-RELEASE:1.11
	perseant-exfatfs-base-20240630:1.11
	perseant-exfatfs:1.11.0.90
	perseant-exfatfs-base:1.11
	netbsd-8-3-RELEASE:1.11
	netbsd-9-4-RELEASE:1.11
	netbsd-10-0-RELEASE:1.11
	netbsd-10-0-RC6:1.11
	netbsd-10-0-RC5:1.11
	netbsd-10-0-RC4:1.11
	netbsd-10-0-RC3:1.11
	netbsd-10-0-RC2:1.11
	netbsd-10-0-RC1:1.11
	netbsd-10:1.11.0.88
	netbsd-10-base:1.11
	netbsd-9-3-RELEASE:1.11
	cjep_sun2x-base1:1.11
	cjep_sun2x:1.11.0.86
	cjep_sun2x-base:1.11
	cjep_staticlib_x-base1:1.11
	netbsd-9-2-RELEASE:1.11
	cjep_staticlib_x:1.11.0.84
	cjep_staticlib_x-base:1.11
	netbsd-9-1-RELEASE:1.11
	phil-wifi-20200421:1.11
	phil-wifi-20200411:1.11
	is-mlppp:1.11.0.82
	is-mlppp-base:1.11
	phil-wifi-20200406:1.11
	netbsd-8-2-RELEASE:1.11
	netbsd-9-0-RELEASE:1.11
	netbsd-9-0-RC2:1.11
	netbsd-9-0-RC1:1.11
	phil-wifi-20191119:1.11
	netbsd-9:1.11.0.80
	netbsd-9-base:1.11
	phil-wifi-20190609:1.11
	netbsd-8-1-RELEASE:1.11
	netbsd-8-1-RC1:1.11
	pgoyette-compat-merge-20190127:1.11
	pgoyette-compat-20190127:1.11
	pgoyette-compat-20190118:1.11
	pgoyette-compat-1226:1.11
	pgoyette-compat-1126:1.11
	pgoyette-compat-1020:1.11
	pgoyette-compat-0930:1.11
	pgoyette-compat-0906:1.11
	netbsd-7-2-RELEASE:1.11
	pgoyette-compat-0728:1.11
	netbsd-8-0-RELEASE:1.11
	phil-wifi:1.11.0.78
	phil-wifi-base:1.11
	pgoyette-compat-0625:1.11
	netbsd-8-0-RC2:1.11
	pgoyette-compat-0521:1.11
	pgoyette-compat-0502:1.11
	pgoyette-compat-0422:1.11
	netbsd-8-0-RC1:1.11
	pgoyette-compat-0415:1.11
	pgoyette-compat-0407:1.11
	pgoyette-compat-0330:1.11
	pgoyette-compat-0322:1.11
	pgoyette-compat-0315:1.11
	netbsd-7-1-2-RELEASE:1.11
	pgoyette-compat:1.11.0.76
	pgoyette-compat-base:1.11
	netbsd-7-1-1-RELEASE:1.11
	matt-nb8-mediatek:1.11.0.74
	matt-nb8-mediatek-base:1.11
	perseant-stdc-iso10646:1.11.0.72
	perseant-stdc-iso10646-base:1.11
	netbsd-8:1.11.0.70
	netbsd-8-base:1.11
	prg-localcount2-base3:1.11
	prg-localcount2-base2:1.11
	prg-localcount2-base1:1.11
	prg-localcount2:1.11.0.68
	prg-localcount2-base:1.11
	pgoyette-localcount-20170426:1.11
	bouyer-socketcan-base1:1.11
	pgoyette-localcount-20170320:1.11
	netbsd-7-1:1.11.0.66
	netbsd-7-1-RELEASE:1.11
	netbsd-7-1-RC2:1.11
	netbsd-7-nhusb-base-20170116:1.11
	bouyer-socketcan:1.11.0.64
	bouyer-socketcan-base:1.11
	pgoyette-localcount-20170107:1.11
	netbsd-7-1-RC1:1.11
	pgoyette-localcount-20161104:1.11
	netbsd-7-0-2-RELEASE:1.11
	localcount-20160914:1.11
	netbsd-7-nhusb:1.11.0.62
	netbsd-7-nhusb-base:1.11
	pgoyette-localcount-20160806:1.11
	pgoyette-localcount-20160726:1.11
	pgoyette-localcount:1.11.0.60
	pgoyette-localcount-base:1.11
	netbsd-7-0-1-RELEASE:1.11
	netbsd-7-0:1.11.0.58
	netbsd-7-0-RELEASE:1.11
	netbsd-7-0-RC3:1.11
	netbsd-7-0-RC2:1.11
	netbsd-7-0-RC1:1.11
	netbsd-5-2-3-RELEASE:1.11
	netbsd-5-1-5-RELEASE:1.11
	netbsd-6-0-6-RELEASE:1.11
	netbsd-6-1-5-RELEASE:1.11
	netbsd-7:1.11.0.56
	netbsd-7-base:1.11
	yamt-pagecache-base9:1.11
	yamt-pagecache-tag8:1.11
	netbsd-6-1-4-RELEASE:1.11
	netbsd-6-0-5-RELEASE:1.11
	tls-earlyentropy:1.11.0.54
	tls-earlyentropy-base:1.11
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.11
	riastradh-drm2-base3:1.11
	netbsd-6-1-3-RELEASE:1.11
	netbsd-6-0-4-RELEASE:1.11
	netbsd-5-2-2-RELEASE:1.11
	netbsd-5-1-4-RELEASE:1.11
	netbsd-6-1-2-RELEASE:1.11
	netbsd-6-0-3-RELEASE:1.11
	netbsd-5-2-1-RELEASE:1.11
	netbsd-5-1-3-RELEASE:1.11
	netbsd-6-1-1-RELEASE:1.11
	riastradh-drm2-base2:1.11
	riastradh-drm2-base1:1.11
	riastradh-drm2:1.11.0.46
	riastradh-drm2-base:1.11
	netbsd-6-1:1.11.0.52
	netbsd-6-0-2-RELEASE:1.11
	netbsd-6-1-RELEASE:1.11
	khorben-n900:1.11.0.50
	netbsd-6-1-RC4:1.11
	netbsd-6-1-RC3:1.11
	agc-symver:1.11.0.48
	agc-symver-base:1.11
	netbsd-6-1-RC2:1.11
	netbsd-6-1-RC1:1.11
	yamt-pagecache-base8:1.11
	netbsd-5-2:1.11.0.44
	netbsd-6-0-1-RELEASE:1.11
	yamt-pagecache-base7:1.11
	netbsd-5-2-RELEASE:1.11
	netbsd-5-2-RC1:1.11
	matt-nb6-plus-nbase:1.11
	yamt-pagecache-base6:1.11
	netbsd-6-0:1.11.0.42
	netbsd-6-0-RELEASE:1.11
	netbsd-6-0-RC2:1.11
	tls-maxphys:1.11.0.40
	tls-maxphys-base:1.11
	matt-nb6-plus:1.11.0.38
	matt-nb6-plus-base:1.11
	netbsd-6-0-RC1:1.11
	yamt-pagecache-base5:1.11
	yamt-pagecache-base4:1.11
	netbsd-6:1.11.0.36
	netbsd-6-base:1.11
	netbsd-5-1-2-RELEASE:1.11
	netbsd-5-1-1-RELEASE:1.11
	yamt-pagecache-base3:1.11
	yamt-pagecache-base2:1.11
	yamt-pagecache:1.11.0.34
	yamt-pagecache-base:1.11
	cherry-xenmp:1.11.0.32
	cherry-xenmp-base:1.11
	bouyer-quota2-nbase:1.11
	bouyer-quota2:1.11.0.30
	bouyer-quota2-base:1.11
	matt-mips64-premerge-20101231:1.11
	matt-nb5-mips64-premerge-20101231:1.11
	matt-nb5-pq3:1.11.0.28
	matt-nb5-pq3-base:1.11
	netbsd-5-1:1.11.0.26
	netbsd-5-1-RELEASE:1.11
	netbsd-5-1-RC4:1.11
	matt-nb5-mips64-k15:1.11
	netbsd-5-1-RC3:1.11
	netbsd-5-1-RC2:1.11
	netbsd-5-1-RC1:1.11
	netbsd-5-0-2-RELEASE:1.11
	matt-nb5-mips64-premerge-20091211:1.11
	matt-premerge-20091211:1.11
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.11
	matt-nb4-mips64-k7-u2a-k9b:1.11
	matt-nb5-mips64-u1-k1-k5:1.11
	matt-nb5-mips64:1.11.0.24
	netbsd-5-0-1-RELEASE:1.11
	jym-xensuspend-nbase:1.11
	netbsd-5-0:1.11.0.22
	netbsd-5-0-RELEASE:1.11
	netbsd-5-0-RC4:1.11
	netbsd-5-0-RC3:1.11
	netbsd-5-0-RC2:1.11
	jym-xensuspend:1.11.0.20
	jym-xensuspend-base:1.11
	netbsd-5-0-RC1:1.11
	netbsd-5:1.11.0.18
	netbsd-5-base:1.11
	matt-mips64-base2:1.11
	matt-mips64:1.11.0.16
	mjf-devfs2:1.11.0.14
	mjf-devfs2-base:1.11
	netbsd-4-0-1-RELEASE:1.10
	wrstuden-revivesa-base-3:1.11
	wrstuden-revivesa-base-2:1.11
	wrstuden-fixsa-newbase:1.10
	wrstuden-revivesa-base-1:1.11
	yamt-pf42-base4:1.11
	yamt-pf42-base3:1.11
	hpcarm-cleanup-nbase:1.11
	yamt-pf42-baseX:1.11
	yamt-pf42-base2:1.11
	wrstuden-revivesa:1.11.0.12
	wrstuden-revivesa-base:1.11
	yamt-pf42:1.11.0.10
	yamt-pf42-base:1.11
	keiichi-mipv6:1.11.0.8
	keiichi-mipv6-base:1.11
	matt-armv6-nbase:1.11
	matt-armv6-prevmlocking:1.11
	wrstuden-fixsa-base-1:1.10
	netbsd-4-0:1.10.0.8
	netbsd-4-0-RELEASE:1.10
	cube-autoconf:1.11.0.6
	cube-autoconf-base:1.11
	netbsd-4-0-RC5:1.10
	netbsd-4-0-RC4:1.10
	netbsd-4-0-RC3:1.10
	netbsd-4-0-RC2:1.10
	netbsd-4-0-RC1:1.10
	matt-armv6:1.11.0.4
	matt-armv6-base:1.11
	matt-mips64-base:1.11
	hpcarm-cleanup:1.11.0.2
	hpcarm-cleanup-base:1.11
	netbsd-3-1-1-RELEASE:1.9
	netbsd-3-0-3-RELEASE:1.9
	wrstuden-fixsa:1.10.0.6
	wrstuden-fixsa-base:1.10
	abandoned-netbsd-4-base:1.10
	abandoned-netbsd-4:1.10.0.2
	netbsd-3-1:1.9.0.6
	netbsd-3-1-RELEASE:1.9
	netbsd-3-0-2-RELEASE:1.9
	netbsd-3-1-RC4:1.9
	netbsd-3-1-RC3:1.9
	netbsd-3-1-RC2:1.9
	netbsd-3-1-RC1:1.9
	netbsd-4:1.10.0.4
	netbsd-4-base:1.10
	netbsd-3-0-1-RELEASE:1.9
	netbsd-3-0:1.9.0.4
	netbsd-3-0-RELEASE:1.9
	netbsd-3-0-RC6:1.9
	netbsd-3-0-RC5:1.9
	netbsd-3-0-RC4:1.9
	netbsd-3-0-RC3:1.9
	netbsd-3-0-RC2:1.9
	netbsd-3-0-RC1:1.9
	netbsd-2-0-3-RELEASE:1.6.2.1
	netbsd-2-1:1.6.2.1.0.4
	netbsd-2-1-RELEASE:1.6.2.1
	netbsd-2-1-RC6:1.6.2.1
	netbsd-2-1-RC5:1.6.2.1
	netbsd-2-1-RC4:1.6.2.1
	netbsd-2-1-RC3:1.6.2.1
	netbsd-2-1-RC2:1.6.2.1
	netbsd-2-1-RC1:1.6.2.1
	netbsd-2-0-2-RELEASE:1.6.2.1
	netbsd-3:1.9.0.2
	netbsd-3-base:1.9
	netbsd-2-0-1-RELEASE:1.6.2.1
	netbsd-2:1.6.2.1.0.2
	netbsd-2-base:1.6.2.1
	netbsd-2-0-RELEASE:1.6.2.1
	netbsd-2-0-RC5:1.6.2.1
	netbsd-2-0-RC4:1.6
	netbsd-2-0-RC3:1.6
	netbsd-2-0-RC2:1.6
	netbsd-2-0-RC1:1.6
	netbsd-2-0:1.6.0.2
	netbsd-2-0-base:1.6
	netbsd-1-6-PATCH002-RELEASE:1.5
	netbsd-1-6-PATCH002:1.5
	netbsd-1-6-PATCH002-RC4:1.5
	netbsd-1-6-PATCH002-RC3:1.5
	netbsd-1-6-PATCH002-RC2:1.5
	netbsd-1-6-PATCH002-RC1:1.5
	netbsd-1-6-PATCH001:1.5
	netbsd-1-6-PATCH001-RELEASE:1.5
	netbsd-1-6-PATCH001-RC3:1.5
	netbsd-1-6-PATCH001-RC2:1.5
	netbsd-1-6-PATCH001-RC1:1.5
	fvdl_fs64_base:1.6
	netbsd-1-6-RELEASE:1.5
	netbsd-1-6-RC3:1.5
	netbsd-1-6-RC2:1.5
	netbsd-1-6-RC1:1.5
	netbsd-1-6:1.5.0.14
	netbsd-1-6-base:1.5
	netbsd-1-5-PATCH003:1.5
	netbsd-1-5-PATCH002:1.5
	netbsd-1-5-PATCH001:1.5
	netbsd-1-5-RELEASE:1.5
	netbsd-1-5-BETA2:1.5
	netbsd-1-5-BETA:1.5
	netbsd-1-4-PATCH003:1.5
	netbsd-1-5-ALPHA2:1.5
	netbsd-1-5:1.5.0.12
	netbsd-1-5-base:1.5
	minoura-xpg4dl:1.5.0.10
	minoura-xpg4dl-base:1.5
	netbsd-1-4-PATCH002:1.5
	wrstuden-devbsize-19991221:1.5
	wrstuden-devbsize:1.5.0.8
	wrstuden-devbsize-base:1.5
	comdex-fall-1999:1.5.0.6
	comdex-fall-1999-base:1.5
	netbsd-1-4-PATCH001:1.5
	netbsd-1-4-RELEASE:1.5
	netbsd-1-4:1.5.0.4
	netbsd-1-4-base:1.5
	netbsd-1-3-PATCH003:1.5
	netbsd-1-3-PATCH003-CANDIDATE2:1.5
	netbsd-1-3-PATCH003-CANDIDATE1:1.5
	netbsd-1-3-PATCH003-CANDIDATE0:1.5
	netbsd-1-3-PATCH002:1.5
	netbsd-1-3-PATCH001:1.5
	netbsd-1-3-RELEASE:1.5
	netbsd-1-3-BETA:1.5
	netbsd-1-3:1.5.0.2
	netbsd-1-3-base:1.5
	mrg1:1.1.1.1
	mrg:1.1.1
	mrg-rcmd:1.1.0.2;
locks; strict;
comment	@# @;


1.11
date	2007.05.28.12.06.17;	author tls;	state Exp;
branches
	1.11.78.1;
next	1.10;

1.10
date	2005.06.26.19.10.49;	author christos;	state Exp;
branches;
next	1.9;

1.9
date	2004.10.16.18.07.16;	author christos;	state Exp;
branches;
next	1.8;

1.8
date	2004.10.16.09.58.38;	author dan;	state Exp;
branches;
next	1.7;

1.7
date	2004.09.05.08.38.23;	author manu;	state Exp;
branches;
next	1.6;

1.6
date	2002.08.19.09.56.01;	author lukem;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	97.10.10.19.56.46;	author christos;	state Exp;
branches;
next	1.4;

1.4
date	97.07.20.22.37.44;	author christos;	state Exp;
branches;
next	1.3;

1.3
date	97.07.20.20.43.53;	author christos;	state Exp;
branches;
next	1.2;

1.2
date	97.05.26.14.17.15;	author mrg;	state Exp;
branches;
next	1.1;

1.1
date	97.02.16.12.09.23;	author mrg;	state dead;
branches
	1.1.1.1
	1.1.2.1;
next	;

1.11.78.1
date	2020.04.21.18.41.06;	author martin;	state dead;
branches;
next	1.11.78.2;
commitid	86tA4aEmdr3VCh5C;

1.11.78.2
date	2020.04.21.19.37.34;	author martin;	state Exp;
branches;
next	;
commitid	x6IB64bYH9UmWh5C;

1.6.2.1
date	2004.11.12.10.37.56;	author he;	state Exp;
branches;
next	;

1.1.1.1
date	97.05.26.14.08.40;	author mrg;	state Exp;
branches;
next	;

1.1.2.1
date	97.02.16.12.09.24;	author mrg;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
@
text
@#	$NetBSD: Makefile,v 1.10 2005/06/26 19:10:49 christos Exp $

.include <bsd.own.mk>

USE_FORT?=yes	# setuid
# XXX Unsupported Kerberos options were removed from man page
# XXX Don't forget to update the man page if you fix Kerberos
PROG=	rcmd
SRCS=	rsh.c getport.c
CPPFLAGS+=-DIN_RCMD
BINOWN=	root
BINMODE=4555
.PATH:	${NETBSDSRCDIR}/usr.bin/rsh

.include <bsd.prog.mk>
@


1.11.78.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2007/05/28 12:06:17 tls Exp $
@


1.11.78.2
log
@Ooops, restore accidently removed files from merge mishap
@
text
@@


1.10
log
@sprinkle a little const, and now everything compiles with WARNS=3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2004/10/16 18:07:16 christos Exp $
d5 1
@


1.9
log
@Add WARNS=3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2004/10/16 09:58:38 dan Exp $
a4 1
WARNS=3
@


1.8
log
@teach rcmd about getport move in rsh directory
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2004/09/05 08:38:23 manu Exp $
d5 1
@


1.7
log
@Kerberos support is broken in rcommands, thus making -K -k and -x options
unavailable. Remove theses options from the man pages (it won't be very
hard to bring them back if we fix kerberos one day)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2002/08/19 09:56:01 lukem Exp $
d8 1
a8 1
SRCS=	rsh.c
@


1.6
log
@Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 1997/10/10 19:56:46 christos Exp $
d5 2
@


1.6.2.1
log
@Pull up revision 1.8 (requested by martin to fix ticket #928):
  Build with the new factored-out getport file in the rsh directory.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2002/08/19 09:56:01 lukem Exp $
d6 1
a6 1
SRCS=	rsh.c getport.c
@


1.5
log
@CFLAGS->CPPFLAGS
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.4 1997/07/20 22:37:44 christos Exp $
d10 1
a10 1
.PATH:	${.CURDIR}/../../usr.bin/rsh
@


1.4
log
@Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 1997/07/20 20:43:53 christos Exp $
d5 1
a5 1
CFLAGS+=-DIN_RCMD
@


1.3
log
@Add WARNS=1
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 1997/05/26 14:17:15 mrg Exp $
a2 1
WARNS=	1
@


1.2
log
@merge conflicts.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.1 1997/05/26 14:08:40 mrg Exp $
d3 1
@


1.1
log
@file Makefile was initially added on branch mrg-rcmd.
@
text
@d1 10
@


1.1.1.1
log
@rcmd backend.
@
text
@a0 10
#	$NetBSD: Makefile,v 1.1.2.1 1997/02/16 12:09:24 mrg Exp $

PROG=	rcmd
SRCS=	rsh.c
CFLAGS+=-DIN_RCMD
BINOWN=	root
BINMODE=4555
.PATH:	${.CURDIR}/../../usr.bin/rsh

.include <bsd.prog.mk>
@


1.1.2.1
log
@new rcmd(1) command, mostly cloned from rsh(1).  for use with the
new rcmd(3) suite.
@
text
@a0 10
#	$NetBSD$

PROG=	rcmd
SRCS=	rsh.c
CFLAGS+=-DIN_RCMD
BINOWN=	root
BINMODE=4555
.PATH:	${.CURDIR}/../../usr.bin/rsh

.include <bsd.prog.mk>
@
