head	1.45;
access;
symbols
	netbsd-11-0-RC4:1.45
	netbsd-11-0-RC3:1.45
	netbsd-11-0-RC2:1.45
	netbsd-11-0-RC1:1.45
	perseant-exfatfs-base-20250801:1.45
	netbsd-11:1.45.0.2
	netbsd-11-base:1.45
	netbsd-10-1-RELEASE:1.41
	perseant-exfatfs-base-20240630:1.44
	perseant-exfatfs:1.44.0.2
	perseant-exfatfs-base:1.44
	netbsd-8-3-RELEASE:1.36.16.1
	netbsd-9-4-RELEASE:1.38.4.1
	netbsd-10-0-RELEASE:1.41
	netbsd-10-0-RC6:1.41
	netbsd-10-0-RC5:1.41
	netbsd-10-0-RC4:1.41
	netbsd-10-0-RC3:1.41
	netbsd-10-0-RC2:1.41
	netbsd-10-0-RC1:1.41
	netbsd-10:1.41.0.2
	netbsd-10-base:1.41
	netbsd-9-3-RELEASE:1.38
	cjep_sun2x-base1:1.40
	cjep_sun2x:1.40.0.6
	cjep_sun2x-base:1.40
	cjep_staticlib_x-base1:1.40
	netbsd-9-2-RELEASE:1.38
	cjep_staticlib_x:1.40.0.4
	cjep_staticlib_x-base:1.40
	netbsd-9-1-RELEASE:1.38
	phil-wifi-20200421:1.40
	phil-wifi-20200411:1.40
	is-mlppp:1.40.0.2
	is-mlppp-base:1.40
	phil-wifi-20200406:1.40
	netbsd-8-2-RELEASE:1.36
	netbsd-9-0-RELEASE:1.38
	netbsd-9-0-RC2:1.38
	netbsd-9-0-RC1:1.38
	phil-wifi-20191119:1.39
	netbsd-9:1.38.0.4
	netbsd-9-base:1.38
	phil-wifi-20190609:1.38
	netbsd-8-1-RELEASE:1.36
	netbsd-8-1-RC1:1.36
	pgoyette-compat-merge-20190127:1.36.22.1
	pgoyette-compat-20190127:1.38
	pgoyette-compat-20190118:1.38
	pgoyette-compat-1226:1.38
	pgoyette-compat-1126:1.38
	pgoyette-compat-1020:1.38
	pgoyette-compat-0930:1.38
	pgoyette-compat-0906:1.38
	netbsd-7-2-RELEASE:1.36
	pgoyette-compat-0728:1.38
	netbsd-8-0-RELEASE:1.36
	phil-wifi:1.38.0.2
	phil-wifi-base:1.38
	pgoyette-compat-0625:1.38
	netbsd-8-0-RC2:1.36
	pgoyette-compat-0521:1.36
	pgoyette-compat-0502:1.36
	pgoyette-compat-0422:1.36
	netbsd-8-0-RC1:1.36
	pgoyette-compat-0415:1.36
	pgoyette-compat-0407:1.36
	pgoyette-compat-0330:1.36
	pgoyette-compat-0322:1.36
	pgoyette-compat-0315:1.36
	netbsd-7-1-2-RELEASE:1.36
	pgoyette-compat:1.36.0.22
	pgoyette-compat-base:1.36
	netbsd-7-1-1-RELEASE:1.36
	matt-nb8-mediatek:1.36.0.20
	matt-nb8-mediatek-base:1.36
	perseant-stdc-iso10646:1.36.0.18
	perseant-stdc-iso10646-base:1.36
	netbsd-8:1.36.0.16
	netbsd-8-base:1.36
	prg-localcount2-base3:1.36
	prg-localcount2-base2:1.36
	prg-localcount2-base1:1.36
	prg-localcount2:1.36.0.14
	prg-localcount2-base:1.36
	pgoyette-localcount-20170426:1.36
	bouyer-socketcan-base1:1.36
	pgoyette-localcount-20170320:1.36
	netbsd-7-1:1.36.0.12
	netbsd-7-1-RELEASE:1.36
	netbsd-7-1-RC2:1.36
	netbsd-7-nhusb-base-20170116:1.36
	bouyer-socketcan:1.36.0.10
	bouyer-socketcan-base:1.36
	pgoyette-localcount-20170107:1.36
	netbsd-7-1-RC1:1.36
	pgoyette-localcount-20161104:1.36
	netbsd-7-0-2-RELEASE:1.36
	localcount-20160914:1.36
	netbsd-7-nhusb:1.36.0.8
	netbsd-7-nhusb-base:1.36
	pgoyette-localcount-20160806:1.36
	pgoyette-localcount-20160726:1.36
	pgoyette-localcount:1.36.0.6
	pgoyette-localcount-base:1.36
	netbsd-7-0-1-RELEASE:1.36
	netbsd-7-0:1.36.0.4
	netbsd-7-0-RELEASE:1.36
	netbsd-7-0-RC3:1.36
	netbsd-7-0-RC2:1.36
	netbsd-7-0-RC1:1.36
	netbsd-5-2-3-RELEASE:1.30
	netbsd-5-1-5-RELEASE:1.30
	netbsd-6-0-6-RELEASE:1.35
	netbsd-6-1-5-RELEASE:1.35
	netbsd-7:1.36.0.2
	netbsd-7-base:1.36
	yamt-pagecache-base9:1.35
	yamt-pagecache-tag8:1.35
	netbsd-6-1-4-RELEASE:1.35
	netbsd-6-0-5-RELEASE:1.35
	tls-earlyentropy:1.35.0.18
	tls-earlyentropy-base:1.36
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.35
	riastradh-drm2-base3:1.35
	netbsd-6-1-3-RELEASE:1.35
	netbsd-6-0-4-RELEASE:1.35
	netbsd-5-2-2-RELEASE:1.30
	netbsd-5-1-4-RELEASE:1.30
	netbsd-6-1-2-RELEASE:1.35
	netbsd-6-0-3-RELEASE:1.35
	netbsd-5-2-1-RELEASE:1.30
	netbsd-5-1-3-RELEASE:1.30
	netbsd-6-1-1-RELEASE:1.35
	riastradh-drm2-base2:1.35
	riastradh-drm2-base1:1.35
	riastradh-drm2:1.35.0.12
	riastradh-drm2-base:1.35
	netbsd-6-1:1.35.0.16
	netbsd-6-0-2-RELEASE:1.35
	netbsd-6-1-RELEASE:1.35
	netbsd-6-1-RC4:1.35
	netbsd-6-1-RC3:1.35
	agc-symver:1.35.0.14
	agc-symver-base:1.35
	netbsd-6-1-RC2:1.35
	netbsd-6-1-RC1:1.35
	yamt-pagecache-base8:1.35
	netbsd-5-2:1.30.0.30
	netbsd-6-0-1-RELEASE:1.35
	yamt-pagecache-base7:1.35
	netbsd-5-2-RELEASE:1.30
	netbsd-5-2-RC1:1.30
	matt-nb6-plus-nbase:1.35
	yamt-pagecache-base6:1.35
	netbsd-6-0:1.35.0.10
	netbsd-6-0-RELEASE:1.35
	netbsd-6-0-RC2:1.35
	tls-maxphys:1.35.0.8
	tls-maxphys-base:1.36
	matt-nb6-plus:1.35.0.6
	matt-nb6-plus-base:1.35
	netbsd-6-0-RC1:1.35
	yamt-pagecache-base5:1.35
	yamt-pagecache-base4:1.35
	netbsd-6:1.35.0.4
	netbsd-6-base:1.35
	netbsd-5-1-2-RELEASE:1.30
	netbsd-5-1-1-RELEASE:1.30
	yamt-pagecache-base3:1.35
	yamt-pagecache-base2:1.35
	yamt-pagecache:1.35.0.2
	yamt-pagecache-base:1.35
	cherry-xenmp:1.34.0.4
	cherry-xenmp-base:1.34
	bouyer-quota2-nbase:1.34
	bouyer-quota2:1.34.0.2
	bouyer-quota2-base:1.34
	matt-mips64-premerge-20101231:1.34
	matt-nb5-mips64-premerge-20101231:1.30
	matt-nb5-pq3:1.30.0.28
	matt-nb5-pq3-base:1.30
	netbsd-5-1:1.30.0.26
	netbsd-5-1-RELEASE:1.30
	netbsd-5-1-RC4:1.30
	matt-nb5-mips64-k15:1.30
	netbsd-5-1-RC3:1.30
	netbsd-5-1-RC2:1.30
	netbsd-5-1-RC1:1.30
	netbsd-5-0-2-RELEASE:1.30
	matt-nb5-mips64-premerge-20091211:1.30
	matt-premerge-20091211:1.33
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.30
	matt-nb4-mips64-k7-u2a-k9b:1.30
	matt-nb5-mips64-u1-k1-k5:1.30
	matt-nb5-mips64:1.30.0.24
	netbsd-5-0-1-RELEASE:1.30
	jym-xensuspend-nbase:1.33
	netbsd-5-0:1.30.0.22
	netbsd-5-0-RELEASE:1.30
	netbsd-5-0-RC4:1.30
	netbsd-5-0-RC3:1.30
	netbsd-5-0-RC2:1.30
	jym-xensuspend:1.30.0.20
	jym-xensuspend-base:1.33
	netbsd-5-0-RC1:1.30
	netbsd-5:1.30.0.18
	netbsd-5-base:1.30
	matt-mips64-base2:1.30
	matt-mips64:1.30.0.16
	mjf-devfs2:1.30.0.14
	mjf-devfs2-base:1.30
	netbsd-4-0-1-RELEASE:1.28.2.1
	wrstuden-revivesa-base-3:1.30
	wrstuden-revivesa-base-2:1.30
	wrstuden-fixsa-newbase:1.28.2.1
	wrstuden-revivesa-base-1:1.30
	yamt-pf42-base4:1.30
	yamt-pf42-base3:1.30
	hpcarm-cleanup-nbase:1.30
	yamt-pf42-baseX:1.30
	yamt-pf42-base2:1.30
	wrstuden-revivesa:1.30.0.12
	wrstuden-revivesa-base:1.30
	yamt-pf42:1.30.0.10
	yamt-pf42-base:1.30
	keiichi-mipv6-nbase:1.30
	keiichi-mipv6:1.30.0.8
	keiichi-mipv6-base:1.30
	matt-armv6-nbase:1.30
	matt-armv6-prevmlocking:1.30
	wrstuden-fixsa-base-1:1.28.2.1
	netbsd-4-0:1.28.2.1.0.4
	netbsd-4-0-RELEASE:1.28.2.1
	cube-autoconf:1.30.0.6
	cube-autoconf-base:1.30
	netbsd-4-0-RC5:1.28.2.1
	netbsd-4-0-RC4:1.28.2.1
	netbsd-4-0-RC3:1.28.2.1
	netbsd-4-0-RC2:1.28.2.1
	netbsd-4-0-RC1:1.28.2.1
	matt-armv6:1.30.0.4
	matt-armv6-base:1.30
	matt-mips64-base:1.30
	hpcarm-cleanup:1.30.0.2
	hpcarm-cleanup-base:1.30
	netbsd-3-1-1-RELEASE:1.21
	netbsd-3-0-3-RELEASE:1.21
	wrstuden-fixsa:1.28.2.1.0.2
	wrstuden-fixsa-base:1.28.2.1
	abandoned-netbsd-4-base:1.22
	abandoned-netbsd-4:1.22.0.4
	netbsd-3-1:1.21.0.6
	netbsd-3-1-RELEASE:1.21
	netbsd-3-0-2-RELEASE:1.21
	netbsd-3-1-RC4:1.21
	netbsd-3-1-RC3:1.21
	netbsd-3-1-RC2:1.21
	netbsd-3-1-RC1:1.21
	netbsd-4:1.28.0.2
	netbsd-4-base:1.28
	chap-midi-nbase:1.22
	netbsd-3-0-1-RELEASE:1.21
	chap-midi:1.22.0.2
	chap-midi-base:1.22
	netbsd-3-0:1.21.0.4
	netbsd-3-0-RELEASE:1.21
	netbsd-3-0-RC6:1.21
	netbsd-3-0-RC5:1.21
	netbsd-3-0-RC4:1.21
	netbsd-3-0-RC3:1.21
	netbsd-3-0-RC2:1.21
	netbsd-3-0-RC1:1.21
	netbsd-2-0-3-RELEASE:1.20
	netbsd-2-1:1.20.0.8
	netbsd-2-1-RELEASE:1.20
	netbsd-2-1-RC6:1.20
	netbsd-2-1-RC5:1.20
	netbsd-2-1-RC4:1.20
	netbsd-2-1-RC3:1.20
	netbsd-2-1-RC2:1.20
	netbsd-2-1-RC1:1.20
	netbsd-2-0-2-RELEASE:1.20
	netbsd-3:1.21.0.2
	netbsd-3-base:1.21
	netbsd-2-0-1-RELEASE:1.20
	netbsd-2:1.20.0.6
	netbsd-2-base:1.20
	netbsd-2-0-RELEASE:1.20
	netbsd-2-0-RC5:1.20
	netbsd-2-0-RC4:1.20
	netbsd-2-0-RC3:1.20
	netbsd-2-0-RC2:1.20
	netbsd-2-0-RC1:1.20
	netbsd-2-0:1.20.0.4
	netbsd-2-0-base:1.20
	netbsd-1-6-PATCH002-RELEASE:1.20
	netbsd-1-6-PATCH002:1.20
	netbsd-1-6-PATCH002-RC4:1.20
	netbsd-1-6-PATCH002-RC3:1.20
	netbsd-1-6-PATCH002-RC2:1.20
	netbsd-1-6-PATCH002-RC1:1.20
	netbsd-1-6-PATCH001:1.20
	netbsd-1-6-PATCH001-RELEASE:1.20
	netbsd-1-6-PATCH001-RC3:1.20
	netbsd-1-6-PATCH001-RC2:1.20
	netbsd-1-6-PATCH001-RC1:1.20
	fvdl_fs64_base:1.20
	netbsd-1-6-RELEASE:1.20
	netbsd-1-6-RC3:1.20
	netbsd-1-6-RC2:1.20
	netbsd-1-6-RC1:1.20
	netbsd-1-6:1.20.0.2
	netbsd-1-6-base:1.20
	netbsd-1-5-PATCH003:1.15.10.1
	netbsd-1-5-PATCH002:1.15.10.1
	netbsd-1-5-PATCH001:1.15.10.1
	netbsd-1-5-RELEASE:1.15
	netbsd-1-5-BETA2:1.15
	netbsd-1-5-BETA:1.15
	netbsd-1-4-PATCH003:1.15
	netbsd-1-5-ALPHA2:1.15
	netbsd-1-5:1.15.0.10
	netbsd-1-5-base:1.15
	minoura-xpg4dl-base:1.15
	minoura-xpg4dl:1.15.0.8
	netbsd-1-4-PATCH002:1.15
	wrstuden-devbsize-19991221:1.15
	wrstuden-devbsize:1.15.0.6
	wrstuden-devbsize-base:1.15
	comdex-fall-1999:1.15.0.4
	comdex-fall-1999-base:1.15
	netbsd-1-4-PATCH001:1.15
	netbsd-1-4-RELEASE:1.15
	netbsd-1-4:1.15.0.2
	netbsd-1-4-base:1.15
	netbsd-1-3-PATCH003:1.13
	netbsd-1-3-PATCH003-CANDIDATE2:1.13
	netbsd-1-3-PATCH003-CANDIDATE1:1.13
	netbsd-1-3-PATCH003-CANDIDATE0:1.13
	netbsd-1-3-PATCH002:1.13
	netbsd-1-3-PATCH001:1.13
	netbsd-1-3-RELEASE:1.13
	netbsd-1-3-BETA:1.13
	netbsd-1-3:1.13.0.2
	netbsd-1-3-base:1.13
	netbsd-1-2-PATCH001:1.7
	lite-2:1.1.1.3
	lite-1:1.1.1.2
	CSRG:1.1.1
	netbsd-1-2-RELEASE:1.7
	netbsd-1-2-BETA:1.7
	netbsd-1-2:1.7.0.4
	netbsd-1-2-base:1.7
	netbsd-1-1-PATCH001:1.6
	netbsd-1-1-RELEASE:1.6
	netbsd-1-1:1.6.0.2
	netbsd-1-1-base:1.6
	netbsd-1-0-PATCH06:1.4.2.1
	netbsd-1-0-PATCH05:1.4.2.1
	netbsd-1-0-PATCH04:1.4.2.1
	netbsd-1-0-PATCH03:1.4.2.1
	netbsd-1-0-PATCH02:1.4.2.1
	netbsd-1-0-PATCH1:1.4.2.1
	netbsd-1-0-PATCH0:1.4.2.1
	netbsd-1-0-RELEASE:1.4.2.1
	netbsd-1-0:1.4.0.2
	netbsd-1-0-base:1.4
	netbsd-0-9-RELEASE:1.1.1.1
	netbsd-0-9-BETA:1.1.1.1
	netbsd-0-9-ALPHA2:1.1.1.1
	netbsd-0-9-ALPHA:1.1.1.1
	netbsd-0-9:1.1.1.1.0.2
	netbsd-0-9-base:1.1.1.1
	netbsd-0-8:1.1.1.1
	netbsd-alpha-1:1.1.1.1
	patchkit-0-2-2:1.1.1.1
	WFJ-386bsd-01:1.1.1.1
	WFJ-920714:1.1.1;
locks; strict;
comment	@# @;


1.45
date	2024.11.11.11.44.51;	author martin;	state Exp;
branches;
next	1.44;
commitid	Ukzcuae7yFQ4OdxF;

1.44
date	2023.08.03.14.56.36;	author rin;	state Exp;
branches
	1.44.2.1;
next	1.43;
commitid	fl6rr2AREazmQlzE;

1.43
date	2023.08.03.13.36.09;	author rin;	state Exp;
branches;
next	1.42;
commitid	cA3k7MJ9XZ44olzE;

1.42
date	2023.06.03.09.09.17;	author lukem;	state Exp;
branches;
next	1.41;
commitid	aBaIRnuykonRStrE;

1.41
date	2022.08.30.13.40.37;	author riastradh;	state Exp;
branches;
next	1.40;
commitid	v0ue6BgAaDX4iURD;

1.40
date	2019.12.17.19.12.50;	author christos;	state Exp;
branches;
next	1.39;
commitid	C8Q1cbkAOyq2R5PB;

1.39
date	2019.10.13.07.28.15;	author mrg;	state Exp;
branches;
next	1.38;
commitid	vRNwN94v7NgB2GGB;

1.38
date	2018.06.10.17.55.11;	author christos;	state Exp;
branches
	1.38.2.1
	1.38.4.1;
next	1.37;
commitid	BcxRqUGZukqpgLFA;

1.37
date	2018.05.23.01.03.46;	author christos;	state Exp;
branches;
next	1.36;
commitid	uEW5XfA8sxjlfmDA;

1.36
date	2014.07.05.19.22.04;	author dholland;	state Exp;
branches
	1.36.16.1
	1.36.22.1;
next	1.35;
commitid	3a5SlnCocjK3UdHx;

1.35
date	2011.08.16.11.49.17;	author christos;	state Exp;
branches
	1.35.8.1
	1.35.18.1;
next	1.34;

1.34
date	2010.02.03.15.34.45;	author roy;	state Exp;
branches;
next	1.33;

1.33
date	2009.04.14.22.15.23;	author lukem;	state Exp;
branches;
next	1.32;

1.32
date	2009.04.11.14.22.32;	author christos;	state Exp;
branches;
next	1.31;

1.31
date	2009.04.10.13.08.24;	author christos;	state Exp;
branches;
next	1.30;

1.30
date	2007.05.28.12.06.28;	author tls;	state Exp;
branches
	1.30.20.1;
next	1.29;

1.29
date	2007.01.02.03.09.13;	author christos;	state Exp;
branches;
next	1.28;

1.28
date	2006.11.28.18.45.32;	author christos;	state Exp;
branches
	1.28.2.1;
next	1.27;

1.27
date	2006.10.31.20.07.32;	author christos;	state Exp;
branches;
next	1.26;

1.26
date	2006.10.21.21.51.47;	author christos;	state Exp;
branches;
next	1.25;

1.25
date	2006.10.21.21.37.20;	author christos;	state Exp;
branches;
next	1.24;

1.24
date	2006.09.20.09.29.42;	author he;	state Exp;
branches;
next	1.23;

1.23
date	2006.09.18.19.46.21;	author christos;	state Exp;
branches;
next	1.22;

1.22
date	2005.07.19.01.38.38;	author christos;	state Exp;
branches;
next	1.21;

1.21
date	2004.05.16.09.53.10;	author lukem;	state Exp;
branches;
next	1.20;

1.20
date	2002.03.02.15.29.49;	author wiz;	state Exp;
branches;
next	1.19;

1.19
date	2002.02.09.09.15.10;	author lukem;	state Exp;
branches;
next	1.18;

1.18
date	2001.10.19.02.46.19;	author tv;	state Exp;
branches;
next	1.17;

1.17
date	2000.09.23.13.53.42;	author simonb;	state Exp;
branches;
next	1.16;

1.16
date	2000.07.05.03.30.07;	author enami;	state Exp;
branches;
next	1.15;

1.15
date	99.02.13.02.54.55;	author lukem;	state Exp;
branches
	1.15.10.1;
next	1.14;

1.14
date	98.09.27.17.22.12;	author lukem;	state Exp;
branches;
next	1.13;

1.13
date	97.10.11.09.34.41;	author mycroft;	state Exp;
branches;
next	1.12;

1.12
date	97.03.24.21.59.44;	author christos;	state Exp;
branches;
next	1.11;

1.11
date	97.01.16.23.10.16;	author perry;	state Exp;
branches;
next	1.10;

1.10
date	96.12.28.07.10.57;	author tls;	state Exp;
branches;
next	1.9;

1.9
date	96.10.18.06.17.36;	author thorpej;	state Exp;
branches;
next	1.8;

1.8
date	96.06.08.19.48.09;	author christos;	state Exp;
branches;
next	1.7;

1.7
date	96.02.20.00.14.43;	author jtc;	state Exp;
branches;
next	1.6;

1.6
date	94.12.22.11.21.35;	author cgd;	state Exp;
branches;
next	1.5;

1.5
date	94.08.13.09.55.52;	author mycroft;	state Exp;
branches;
next	1.4;

1.4
date	94.06.29.05.09.04;	author deraadt;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	93.08.27.20.31.07;	author jtc;	state Exp;
branches;
next	1.2;

1.2
date	93.07.31.15.19.49;	author mycroft;	state Exp;
branches;
next	1.1;

1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches
	1.1.1.1;
next	;

1.44.2.1
date	2025.08.02.05.58.28;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.38.2.1
date	2020.04.08.14.09.16;	author martin;	state Exp;
branches;
next	1.38.2.2;
commitid	Qli2aW9E74UFuA3C;

1.38.2.2
date	2020.04.13.08.05.43;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.38.4.1
date	2023.02.22.19.30.50;	author martin;	state Exp;
branches;
next	;
commitid	OQtfkS8AwPEtzyeE;

1.36.16.1
date	2023.02.22.19.32.22;	author martin;	state Exp;
branches;
next	;
commitid	nZeMjBaVGHJ0AyeE;

1.36.22.1
date	2018.06.25.07.26.10;	author pgoyette;	state Exp;
branches;
next	;
commitid	8PtAu9af7VvhiDHA;

1.35.8.1
date	2014.08.20.00.05.00;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.35.18.1
date	2014.08.10.06.58.25;	author tls;	state Exp;
branches;
next	;
commitid	Z8V99l8Gw2FdDMLx;

1.30.20.1
date	2009.05.13.19.19.56;	author jym;	state Exp;
branches;
next	;

1.28.2.1
date	2007.02.19.13.38.47;	author tron;	state Exp;
branches;
next	;

1.15.10.1
date	2001.03.13.21.15.25;	author he;	state Exp;
branches;
next	;

1.4.2.1
date	94.08.13.09.56.51;	author mycroft;	state Exp;
branches;
next	;

1.1.1.1
date	93.03.21.09.45.37;	author cgd;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	96.12.28.05.15.07;	author tls;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	96.12.28.05.17.05;	author tls;	state Exp;
branches;
next	;


desc
@@


1.45
log
@Add support for static linking of libzstd
@
text
@#	$NetBSD: Makefile,v 1.44 2023/08/03 14:56:36 rin Exp $
#	@@(#)Makefile	8.3 (Berkeley) 4/20/95

.include <bsd.own.mk>

.include "${NETBSDSRCDIR}/external/bsd/zstd/Makefile.zstd"

USE_FORT?= yes	# data-driven bugs?

USE_EDITLINE?=yes
MIME_SUPPORT?=yes	# currently requires USE_EDITLINE
CHARSET_SUPPORT?=yes	# requires MIME_SUPPORT
THREAD_SUPPORT?=yes	# EXPERIMENTAL

# Work around some problems in -current.
# See the source code for more info.
#
CPPFLAGS+=	-DBROKEN_EXEC_TTY_RESTORE	# broken since 4.99.10
CPPFLAGS+=	-DBROKEN_CLONE_STAT		# see PRs 37878 and 37550
CPPFLAGS+=	-DBROKEN_MAGIC			# bad MIME type on short files

# Debugging options (most should go away - please leave for now).
#
#CPPFLAGS+=	-DDEBUG_FILE_LEAK

PROG=	mail
SRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmd4.c cmdtab.c collect.c \
	dotlock.c edit.c fio.c format.c getname.c head.c v7.local.c lex.c \
	list.c main.c names.c popen.c quit.c send.c sig.c strings.c temp.c \
	tty.c vars.c
LINKS=	${BINDIR}/mail ${BINDIR}/mailx
MLINKS=	mail.1 mailx.1

LDADD+=		-lutil
DPADD+=		${LIBUTIL}

.if ${USE_EDITLINE:Uno} == "yes"
SRCS+=	complete.c

CPPFLAGS+=	-DUSE_EDITLINE
LDADD+=		-ledit -lterminfo
DPADD+=		${LIBEDIT} ${LIBTERMINFO}

.if ${MIME_SUPPORT:Uno} == "yes"
SRCS+=	mime_attach.c
SRCS+=	mime_child.c
SRCS+=	mime_codecs.c
SRCS+=	mime_decode.c
SRCS+=	mime_detach.c
SRCS+=	mime_header.c

CPPFLAGS+=	-DMIME_SUPPORT
.if ${CHARSET_SUPPORT:Uno} == "yes"
CPPFLAGS+=	-DCHARSET_SUPPORT
.endif

LDADD+=		-lmagic -llzma -lbz2 -lz
DPADD+=		${LIBMAGIC} ${LIBLZMA} ${LIBBZ2} ${LIBZ}
PROGDPLIBS+=	${ZSTDDPLIBS}
.endif
.endif

.if ${THREAD_SUPPORT:Uno} == "yes"
SRCS+=	thread.c
CPPFLAGS+=	-DTHREAD_SUPPORT
.endif

CWARNFLAGS+=	-Wextra

.PATH: ${.CURDIR}/misc

.if ${MKSHARE} != "no"
FILESDIR=		/usr/share/misc
FILES=			mail.help mail.tildehelp
.endif

SUBDIR.roff+= USD.doc

CONFIGFILES=		mail.rc
FILESDIR_mail.rc=	/etc
FILESMODE_mail.rc=	644

COPTS.format.c+= -Wno-format-nonliteral
COPTS.fio.c+=	${CC_WNO_FORMAT_TRUNCATION}

.include <bsd.prog.mk>
.include <bsd.subdir.mk>
@


1.44
log
@Revert CC_WNO_USE_AFTER_FREE from Makefile's (thanks uwe@@)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.42 2023/06/03 09:09:17 lukem Exp $
d6 2
d59 1
@


1.44.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.45 2024/11/11 11:44:51 martin Exp $
a5 2
.include "${NETBSDSRCDIR}/external/bsd/zstd/Makefile.zstd"

a56 1
PROGDPLIBS+=	${ZSTDDPLIBS}
@


1.43
log
@Sprinkle CC_WNO_USE_AFTER_FREE for GCC 12

All of them are blamed for idiom equivalent to:
	newbuf = realloc(buf, size);
	p = newbuf + (p - buf);
@
text
@d81 1
a81 1
COPTS.fio.c+=	${CC_WNO_FORMAT_TRUNCATION} ${CC_WNO_USE_AFTER_FREE}
@


1.42
log
@bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
	GCC_NO_warning
to
	CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.41 2022/08/30 13:40:37 riastradh Exp $
d81 1
a81 1
COPTS.fio.c+=	${CC_WNO_FORMAT_TRUNCATION}
@


1.41
log
@etc: Fix permissions of various editable configuration files.

This way they match the mtree and make sense and don't cause editors
to ask to override read-only files when editing them.

Exception: Not sure /etc/bluetooth/protocols makes as much sense to
edit, but the mtree says 644, so if you want to change it, make sure
to change it in both places -- Makefile and mtree.

XXX pullup-8
XXX pullup-9
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.40 2019/12/17 19:12:50 christos Exp $
d81 1
a81 1
COPTS.fio.c+=	${GCC_NO_FORMAT_TRUNCATION}
@


1.40
log
@fix sun2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.39 2019/10/13 07:28:15 mrg Exp $
d78 1
@


1.39
log
@introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION    -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION  -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW    -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE   -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints.  many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2018/06/10 17:55:11 christos Exp $
d55 2
a56 2
LDADD+=		-lmagic -lz
DPADD+=		${LIBMAGIC} ${LIBZ}
@


1.38
log
@use SUBDIR.roff suggested by uwe@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.37 2018/05/23 01:03:46 christos Exp $
d79 2
a80 1
COPTS.format.c += -Wno-format-nonliteral
@


1.38.4.1
log
@Pull up following revision(s) (requested by riastradh in ticket #1604):

	etc/ssh/Makefile: revision 1.4
	usr.bin/mail/Makefile: revision 1.41
	external/ibm-public/postfix/etc/Makefile: revision 1.2
	etc/bluetooth/Makefile: revision 1.6
	crypto/external/bsd/openssh/bin/Makefile: revision 1.5
	etc/root/Makefile: revision 1.5
	etc/iscsi/Makefile: revision 1.4

/root: Install .cshrc and .profile links with the same mode.

Previously we would:

1. Install /root/.cshrc and /root/.profile with mode FILESMODE=644 as
   requested in src/etc/root/Makefile and as echoed in
   /etc/mtree/special.
2. Create hard links at /.cshrc and /.profile through CONFIGLINKS.
3. Because LINKSMODE was unset and defaults to NOBINMODE=444, change
   the mode to 444.

This scenario is confusing, and mtree objects to it, which is bad for
warning fatigue in a security-relevant mechanism.  (There are also
several other files mtree objects to out of the box -- we should fix
those too.)

With this change we install the links with the same mode as the
original files, in agreement with the mtree.  The files, .cshrc and
.profile, are intended to be editable configuration files, so 644
makes sense while 444 makes no sense and gets in the way of editors
like vi.

Discussed on tech-userlevel:
https://mail-index.netbsd.org/tech-userlevel/2022/08/29/msg013498.html

etc: Fix permissions of various editable configuration files.

This way they match the mtree and make sense and don't cause editors
to ask to override read-only files when editing them.

Exception: Not sure /etc/bluetooth/protocols makes as much sense to
edit, but the mtree says 644, so if you want to change it, make sure
to change it in both places -- Makefile and mtree.

/etc/ssh: Install ssh_known_hosts with mode 644.
Makes it agree with the mtree and more convenient for admin to edit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2018/06/10 17:55:11 christos Exp $
a77 1
FILESMODE_mail.rc=	644
@


1.38.2.1
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
d55 2
a56 2
LDADD+=		-lmagic -llzma -lbz2 -lz
DPADD+=		${LIBMAGIC} ${LIBLZMA} ${LIBBZ2} ${LIBZ}
@


1.38.2.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d79 1
a79 2
COPTS.format.c+= -Wno-format-nonliteral
COPTS.fio.c+=	${GCC_NO_FORMAT_TRUNCATION}
@


1.37
log
@Remove Mail
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2014/07/05 19:22:04 dholland Exp $
d74 1
a74 1
SUBDIR+= USD.doc
@


1.36
log
@Rework /usr/share/doc.

Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
   - explicit use of soelim
   - refer
   - tbl
   - pic
   - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.35 2011/08/16 11:49:17 christos Exp $
d29 2
a30 2
LINKS=	${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx
MLINKS=	mail.1 Mail.1 mail.1 mailx.1
@


1.36.16.1
log
@Pull up following revision(s) (requested by riastradh in ticket #1800):

	etc/ssh/Makefile: revision 1.4
	usr.bin/mail/Makefile: revision 1.41
	external/ibm-public/postfix/etc/Makefile: revision 1.2
	etc/bluetooth/Makefile: revision 1.6
	crypto/external/bsd/openssh/bin/Makefile: revision 1.5
	etc/root/Makefile: revision 1.5
	etc/iscsi/Makefile: revision 1.4

/root: Install .cshrc and .profile links with the same mode.

Previously we would:

1. Install /root/.cshrc and /root/.profile with mode FILESMODE=644 as
   requested in src/etc/root/Makefile and as echoed in
   /etc/mtree/special.
2. Create hard links at /.cshrc and /.profile through CONFIGLINKS.
3. Because LINKSMODE was unset and defaults to NOBINMODE=444, change
   the mode to 444.

This scenario is confusing, and mtree objects to it, which is bad for
warning fatigue in a security-relevant mechanism.  (There are also
several other files mtree objects to out of the box -- we should fix
those too.)

With this change we install the links with the same mode as the
original files, in agreement with the mtree.  The files, .cshrc and
.profile, are intended to be editable configuration files, so 644
makes sense while 444 makes no sense and gets in the way of editors
like vi.

Discussed on tech-userlevel:
https://mail-index.netbsd.org/tech-userlevel/2022/08/29/msg013498.html

etc: Fix permissions of various editable configuration files.

This way they match the mtree and make sense and don't cause editors
to ask to override read-only files when editing them.

Exception: Not sure /etc/bluetooth/protocols makes as much sense to
edit, but the mtree says 644, so if you want to change it, make sure
to change it in both places -- Makefile and mtree.

/etc/ssh: Install ssh_known_hosts with mode 644.
Makes it agree with the mtree and more convenient for admin to edit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2014/07/05 19:22:04 dholland Exp $
a77 1
FILESMODE_mail.rc=	644
@


1.36.22.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.38 2018/06/10 17:55:11 christos Exp $
d29 2
a30 2
LINKS=	${BINDIR}/mail ${BINDIR}/mailx
MLINKS=	mail.1 mailx.1
d74 1
a74 1
SUBDIR.roff+= USD.doc
@


1.35
log
@document non-literal format string
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.34 2010/02/03 15:34:45 roy Exp $
d72 1
a73 1
.if make(install)
a74 2
.endif
.endif
@


1.35.8.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
a71 1
.endif
d73 1
d75 2
@


1.35.18.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.36 2014/07/05 19:22:04 dholland Exp $
a71 1
.endif
d73 1
d75 2
@


1.34
log
@Userland now builds and uses terminfo instead of termcap.

OK: core@@, jdc@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2009/04/14 22:15:23 lukem Exp $
d81 2
@


1.33
log
@Enable WARNS=4 by default for usr.bin, except for:
	awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.32 2009/04/11 14:22:32 christos Exp $
d39 2
a40 2
LDADD+=		-ledit -ltermcap
DPADD+=		${LIBEDIT} ${LIBTERMCAP}
@


1.32
log
@- magic fix for short files
- knf
from Anon Ymous
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.31 2009/04/10 13:08:24 christos Exp $
a64 1
WARNS=	4
@


1.31
log
@From Anon Ymous:

- Remove all longjmp(3) calls from signal handlers.  Instead, we post
to an internal signal queue and check that periodically.  All signal
related code is now in sig.c, except for the SIGCHLD handler which
remains in popen.c as it is intimately tied to routines there.

- Handle SIGPIPE in type1() regardless of mime support, or else the
handler in execute() will prevent our error code from being returned
resulting in 'sawcom' not being set on the first command as it should.
This only affected the initial behavior of the "next" command without
mime support.

- Add the 'T' flag to many commands in cmdtab.c that should not look
like the first command.  E.g., start mail on a mailbox with multiple
messages, run "set foo", then "next", and watch the second message get
displayed rather than the first as is the case without the first "set"
command.

- Add file descriptor and file handle leak detection.  Enabled by
DEBUG_FILE_LEAK.  This will likely disappear in the future.

- Fix a long standing (since import in 1993) longjmp() bug in
edstop(): the jmpbuf was invalid when quit() is called at the end of
main.

- Fix a long standing bug (since import in 1993) in snarf() where it
didn't strip whitespace correctly if the line consisted only of
whitespace.

- Lint cleanup.

- New Feature: "Header" command.  This allows miscellaneous header
fields to be added to the header, e.g., "X-Organization:" or
"Reply-To:" fields.

- New Feature: "page-also" variable.  This allows the specification of
additional commands to page.  It is more flexible than "crt".

- Document the "pager-off" variable: if set, it disables paging
entirely.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.30 2007/05/28 12:06:28 tls Exp $
d18 1
@


1.30
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
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.29 2007/01/02 03:09:13 christos Exp $
d8 14
a21 4
USE_EDITLINE=yes
MIME_SUPPORT=yes	# currently requires USE_EDITLINE
CHARSET_SUPPORT=yes	# requires MIME_SUPPORT
THREAD_SUPPORT=yes	# EXPERIMENTAL
d26 2
a27 2
	list.c main.c names.c popen.c quit.c send.c strings.c temp.c tty.c \
	vars.c
@


1.30.20.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.33 2009/04/14 22:15:23 lukem Exp $
d8 4
a11 15
USE_EDITLINE?=yes
MIME_SUPPORT?=yes	# currently requires USE_EDITLINE
CHARSET_SUPPORT?=yes	# requires MIME_SUPPORT
THREAD_SUPPORT?=yes	# EXPERIMENTAL

# Work around some problems in -current.
# See the source code for more info.
#
CPPFLAGS+=	-DBROKEN_EXEC_TTY_RESTORE	# broken since 4.99.10
CPPFLAGS+=	-DBROKEN_CLONE_STAT		# see PRs 37878 and 37550
CPPFLAGS+=	-DBROKEN_MAGIC			# bad MIME type on short files

# Debugging options (most should go away - please leave for now).
#
#CPPFLAGS+=	-DDEBUG_FILE_LEAK
d16 2
a17 2
	list.c main.c names.c popen.c quit.c send.c sig.c strings.c temp.c \
	tty.c vars.c
d54 1
@


1.29
log
@From Anon Ymous:
1) Remove a stray "SRCS+=" line from the Makefile.
2) Document the "nospec" option of "regex-search".
3) Fix some typos and formatting in the manpage.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.28 2006/11/28 18:45:32 christos Exp $
d6 2
@


1.28
log
@From Anon Ymous:

1) Statification of modules.

2) Implement the 'detach' and 'Detach' commands for extracting mime
   parts from messages.

3) Teach mail to output "In-Reply-To" and "References" header fields
   when replying so others can thread us.

4) Implement threading, sorting, and tagging, supported by the
   following commands: 'flatten', 'reverse', 'sort', 'thread',
   'unthread', 'down', 'tset', 'up', 'expose', 'hide', 'tag',
   'untag', 'invtags', 'tagbelow', 'hidetags', 'showtags'.
   See the manpage for details (when available - soon).

5) Implement a 'deldups' command to delete duplicate messages based on
   their "Message-Id" field, e.g., in replies to a mailing list that
   are also CCed to a subscriber.  (This can also be accomplished with
   the threading and tagging commands.)

6) Implement 'ifdef' and 'ifndef' commands, and make the conditionals
   nestable (i.e., implement a conditional stack).  The if/else/endif
   commands existed before, but they were primitive and undocumented.
   The 'if' command currently recognizes the "receiving", "sending",
   and "headersonly" mode keywords.

7) Teach the message selecting routine to understand regular
   expressions if "regex-search" is defined.  Otherwise only case
   insensitive substring matches are done (as in the past).

8) Teach the message selection routine to understand boolean
   expressions.  Improved "colon-modifier" support.  See the manpage
   for details (when available - soon).

9) Extend paging to all commands (where relevant).

10) Add shell like piping and redirection of (standard) output (if
   "enable-piping" is defined).  Extend completion to these contexts.

11) The manpage should follow soon!!!!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.26 2006/10/21 21:51:47 christos Exp $
a21 2
SRCS+=	

@


1.28.2.1
log
@Pull up following revision(s) (requested by christos in ticket #454):
	usr.bin/mail/list.c: revision 1.20
	usr.bin/mail/Makefile: revision 1.29
	usr.bin/mail/mail.1: revision 1.48
From Anon Ymous:
1) Remove a stray "SRCS+=" line from the Makefile.
2) Document the "nospec" option of "regex-search".
3) Fix some typos and formatting in the manpage.
@
text
@d1 1
a1 1
#	$NetBSD$
d22 2
@


1.27
log
@More fixes from Anon Ymous:


1) Removed the -B flag (it was stupid on my part) and added a short
   description indicating how to accomplish the same thing under the
   "Sending Mail" section of man mail(1).

2) Added a -H flag to dump the headers and exit.  It takes optional
   flags to restrict to old, new, read, unread, and deleted messages
   (the later being kind of useless - it shares code with something
   that already had it).

3) Restored the 'Save' command which somehow got mistakenly removed in
   the last commit and add documentation for it!  (My apologies to
   its author.)

4) Added a 'mkread' command to mark messages as read (the inverse of
   'unread').  Should we also have a 'mknew' command?

5) Added a 'smopts' command to keep a database of addresses and
   sendmail options to be used when sending messages to those
   addresses.  See man mail(1) for a fuller description.

6) Added 'indentpreamble' and 'indentpostscript' variables whose
   values are inserted before and after a quoted message (~m or ~M
   escapes).
=20
7) Added string formatting abilities for the 'prompt', 'insertpreamble',
   'insertpostscript', and header display strings.  These strings
   support all the strftime() format parameters as well as many more
   specific to mail (see man mail(1)).

8) Fix the -a flag so that it only takes a single filename, unless
   "mime-attach-list" is defined.  This is more conventional and avoids
   unexpected whitespace issues.
@
text
@d8 2
a9 2
CHARSET_SUPPORT=yes	# only used with MIME_SUPPORT
SMOPTS_CMD=yes		# build the sendas command
d12 4
a15 4
SRCS=	version.c support.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c dotlock.c \
	edit.c fio.c getname.c head.c v7.local.c lex.c list.c main.c names.c \
	popen.c quit.c send.c strings.c temp.c tty.c vars.c
SRCS+=	format.c
d22 1
a22 4
.if ${SMOPTS_CMD:Uno} == "yes"
SRCS+=	cmd4.c
CPPFLAGS+=	-DSMOPTS_CMD
.endif
d36 1
d49 5
@


1.26
log
@Fix yes/no handling.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.25 2006/10/21 21:37:20 christos Exp $
d9 1
d15 1
d22 5
@


1.25
log
@From our anonymous user:
- mime and character set handling
- command line editor and completion
- many code improvements
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.24 2006/09/20 09:29:42 he Exp $
d20 1
a20 1
.if defined(USE_EDITLINE)
d27 1
a27 1
.if defined(MIME_SUPPORT)
d35 1
a35 1
.if defined(CHARSET_SUPPORT)
@


1.24
log
@The recently added -ledit needs -ltermcap added as well.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.23 2006/09/18 19:46:21 christos Exp $
d5 4
a8 1
USE_READLINE=yes
d17 4
a20 1
.if defined(USE_READLINE)
d23 1
a23 1
CPPFLAGS+=	-DUSE_READLINE
d27 15
d45 1
@


1.23
log
@Jumbo mail patch from our anonymous user:

1) Use editline [optional]:
   Most of this code was borrowed from src/usr.bin/ftp.  It does the
   appropriate editing, history, and completion for all mail commands
   (from cmdtab[]) and also does editing on header strings ('~h' inside
   the mail editor).

2) '-B' flag:
   This will suppress the "To:" line passed to sendmail.  In most
   configurations it will lead to sendmail adding "To: undisclosed
   recipients;".  Currently, AFAIK mail requires at least one exposed
   recipient address.

3) Comments in rcfile:
   Currently, comments in .mailrc are only supported if the first
   (non-white) character on a line is '#' followed by white space,
   i.e., '#' is a 'nop' command.  This (trivial) patch allows the more
   normal/expected use of '#' as a comment character.  It does not
   respect quoting, so that might be an objection which I should fix.

4) Sendmail option editing:
   This adds the sendmail option string to the strings editable by the
   '~h' command within the mail editor.  Currently, you can only set
   this string from the command-line, which is particularly annoying
   when replying to mail.

5) Reply from:
   When replying to a message, grab the "To:" address from the message
   and, if there is only one such address and it does not match a list of
   allowed addresses (set in the "ReplyFrom" variable), pass it to
   sendmail as the "From:" address for the reply (with the '-f' option).
   I often make aliases for myself so that my primary address is not
   given out; if the alias gets out, I know who to blame.  Unfortunately,
   a reply to such a message would normally use the primary address
   without this patch.  A warning is displayed when this is going to
   happen so that it can be modified with '~h'.

6) CC and BCC lists:
   Allow '-c' and '-b' to accept white-space or ',' delimited lists.
   Currently, a white-space delimited list of addresses work, but a
   list of aliases will not get expanded.  For example, currently:

	mail -c "foo bar" christos

   will fail to send mail to 'foo' and 'bar' if these are mail aliases
   (in ~/.mailrc); sendmail aliases (in /etc/aliases) do work.

7) pipe command:
   This pipes the current message into a shell command.  I use this for
   quick decoding of uuencoded mail, but I can imagine it might be
   useful for decrypting encrypted mail, too.

8) show command:
   This command takes a list of variables and shows their values.  It
   is probably stupid as the 'set' command without any argument
   displays all variable values.  Of course, if there are a lot of
   variables you have to sift through the list for the one(s) you want.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2005/07/19 01:38:38 christos Exp $
d18 2
a19 2
LDADD+=		-ledit
DPADD+=		${LIBEDIT}
@


1.22
log
@WARNS=3
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2004/05/16 09:53:10 lukem Exp $
d5 1
d14 10
a23 1
WARNS=	3
@


1.21
log
@Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2002/03/02 15:29:49 wiz Exp $
d13 1
a13 1
WARNS=	2
@


1.20
log
@WARNS=2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2002/02/09 09:15:10 lukem Exp $
a9 1
EFILES=	mail.rc
d15 2
d18 2
a19 2
FILESDIR=/usr/share/misc
FILES=	${.CURDIR}/misc/mail.help ${.CURDIR}/misc/mail.tildehelp
d26 2
a27 3
distribution:
	cd ${.CURDIR}/misc; ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
		${EFILES} ${DESTDIR}/etc
@


1.19
log
@use ${INSTALL_FILE} as appropriate
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2001/10/19 02:46:19 tv Exp $
d13 2
@


1.18
log
@Rename "aux.c" to "support.c" to avoid clash with invalid "aux" basename
on some Microsoft host OS's.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2000/09/23 13:53:42 simonb Exp $
d24 2
a25 2
	cd ${.CURDIR}/misc; ${INSTALL} ${INSTPRIV} ${COPY} -o root -g wheel \
	    -m 644 ${EFILES} ${DESTDIR}/etc
@


1.17
log
@Use ${COPY} instead of -c for ${INSTALL} commands.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2000/07/05 03:30:07 enami Exp $
d7 1
a7 1
SRCS=	version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c dotlock.c \
@


1.16
log
@Pass ${INSTPRIV} to ${INSTALL}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1999/02/13 02:54:55 lukem Exp $
d24 1
a24 1
	cd ${.CURDIR}/misc; ${INSTALL} ${INSTPRIV} -c -o root -g wheel \
@


1.15
log
@convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 1998/09/27 17:22:12 lukem Exp $
d24 1
a24 1
	cd ${.CURDIR}/misc; ${INSTALL} -c -o root -g wheel \
@


1.15.10.1
log
@Pull up revisions 1.16-1.17 (requested by simonb):
  Use ${COPY} instead of -c and pass ${INSTPRIV} to the ${INSTALL}
  command.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 1999/02/13 02:54:55 lukem Exp $
d24 1
a24 1
	cd ${.CURDIR}/misc; ${INSTALL} ${INSTPRIV} ${COPY} -o root -g wheel \
@


1.14
log
@don't install in /usr/share if NOSHARE is defined
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 1997/10/11 09:34:41 mycroft Exp $
d4 2
d14 1
a14 1
.if !defined(NOSHARE)
@


1.13
log
@Use bsd.subdir.mk as appropriate.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 1997/03/24 21:59:44 christos Exp $
d12 1
d18 1
@


1.12
log
@- Makefile cleanups
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 1997/01/16 23:10:16 perry Exp $
d24 1
@


1.11
log
@mail.rc now installed by 'make distribution' -- fixes pr-3015
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 1996/12/28 07:10:57 tls Exp $
a7 1
SFILES=	mail.help mail.tildehelp
d12 2
a13 3
beforeinstall:
	cd ${.CURDIR}/misc; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} \
	    -m 444 ${SFILES} ${DESTDIR}/usr/share/misc
@


1.10
log
@Sync with 4.4BSD-Lite2
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 1996/10/18 06:17:36 thorpej Exp $
a15 2
	cd ${.CURDIR}/misc; ${INSTALL} -c -o root -g wheel \
	    -m 644 ${EFILES} ${DESTDIR}/etc
d20 4
@


1.9
log
@Use ${INSTALL}.
@
text
@d1 2
a2 2
#	$NetBSD: Makefile,v 1.8 1996/06/08 19:48:09 christos Exp $
#	@@(#)Makefile	8.2 (Berkeley) 1/25/94
@


1.8
log
@- Fix PR/105: Implement dot locking protocol and check return value of flock.
- Fix PR/2247: Don't call unknown users "ubluit". Issue an error message.
- Fix/add prototypes.
- Fix warnings.
- Use POSIX signal mask calls.
- RCSid police.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 1996/02/20 00:14:43 jtc Exp $
d14 1
a14 1
	cd ${.CURDIR}/misc; install -c -o ${BINOWN} -g ${BINGRP} \
d16 1
a16 1
	cd ${.CURDIR}/misc; install -c -o root -g wheel \
@


1.7
log
@USE_OLD_TTY no longer needed
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	8.2 (Berkeley) 1/25/94
#	$Id: Makefile,v 1.6 1994/12/22 11:21:35 cgd Exp $
d5 3
a7 3
SRCS=	version.c aux.c cmd1.c cmd2.c cmd3.c cmdtab.c collect.c edit.c fio.c \
	getname.c head.c v7.local.c lex.c list.c main.c names.c popen.c \
	quit.c send.c strings.c temp.c tty.c vars.c
@


1.6
log
@kill -R in CFLAGS
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1994/08/13 09:55:52 mycroft Exp $
a4 1
CFLAGS+=-DUSE_OLD_TTY
@


1.5
log
@Install doc files.
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.4 1994/06/29 05:09:04 deraadt Exp $
d5 1
a5 1
CFLAGS+=-R -DUSE_OLD_TTY
@


1.4
log
@4.4-lite, plus our mods
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.3 1993/08/27 20:31:07 jtc Exp $
d19 4
@


1.4.2.1
log
@update from trunk
@
text
@d2 1
a2 1
#	$Id: Makefile,v 1.5 1994/08/13 09:55:52 mycroft Exp $
a18 4

.if make(install)
SUBDIR+= USD.doc
.endif
@


1.3
log
@Install mail as mailx too.
It's not quite POSIX compliant, but it only needs a few tweaks here and there.
@
text
@d1 2
a2 2
#	from: @@(#)Makefile	5.16 (Berkeley) 6/19/91
#	$Id: Makefile,v 1.2 1993/07/31 15:19:49 mycroft Exp $
a13 1

d17 2
a18 2
	cd ${.CURDIR}/misc; install -c -o ${BINOWN} -g ${BINGRP} \
	    -m 444 ${EFILES} ${DESTDIR}/etc
@


1.2
log
@Add RCS indentifiers.
@
text
@d2 1
a2 1
#	$Id: $
d11 3
a13 2
LINKS=	${BINDIR}/mail ${BINDIR}/Mail
MLINKS=	mail.1 Mail.1
@


1.1
log
@Initial revision
@
text
@d1 2
a2 1
#	@@(#)Makefile	5.16 (Berkeley) 6/19/91
@


1.1.1.1
log
@initial import of 386bsd-0.1 sources
@
text
@@


1.1.1.2
log
@Import of 4.4BSD-Lite (already merged at head)
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.2 (Berkeley) 1/25/94
d16 2
a17 2
	cd ${.CURDIR}/misc; install -c -o root -g wheel \
	    -m 644 ${EFILES} ${DESTDIR}/etc
@


1.1.1.3
log
@Import of 4.4BSD-Lite2 source
@
text
@d1 1
a1 1
#	@@(#)Makefile	8.3 (Berkeley) 4/20/95
d4 1
a4 1
CFLAGS+=-R
@
