head	1.20;
access;
symbols
	netbsd-11-0-RC4:1.19
	netbsd-11-0-RC3:1.19
	netbsd-11-0-RC2:1.19
	netbsd-11-0-RC1:1.19
	perseant-exfatfs-base-20250801:1.19
	netbsd-11:1.19.0.2
	netbsd-11-base:1.19
	netbsd-10-1-RELEASE:1.17
	perseant-exfatfs-base-20240630:1.18
	perseant-exfatfs:1.18.0.2
	perseant-exfatfs-base:1.18
	netbsd-8-3-RELEASE:1.10
	netbsd-9-4-RELEASE:1.11.6.1
	netbsd-10-0-RELEASE:1.17
	netbsd-10-0-RC6:1.17
	netbsd-10-0-RC5:1.17
	netbsd-10-0-RC4:1.17
	netbsd-10-0-RC3:1.17
	netbsd-10-0-RC2:1.17
	netbsd-10-0-RC1:1.17
	netbsd-10:1.17.0.6
	netbsd-10-base:1.17
	netbsd-9-3-RELEASE:1.11.6.1
	cjep_sun2x-base1:1.17
	cjep_sun2x:1.17.0.4
	cjep_sun2x-base:1.17
	cjep_staticlib_x-base1:1.17
	netbsd-9-2-RELEASE:1.11.6.1
	cjep_staticlib_x:1.17.0.2
	cjep_staticlib_x-base:1.17
	netbsd-9-1-RELEASE:1.11.6.1
	phil-wifi-20200421:1.16
	phil-wifi-20200411:1.16
	is-mlppp:1.16.0.2
	is-mlppp-base:1.16
	phil-wifi-20200406:1.16
	netbsd-8-2-RELEASE:1.10
	netbsd-9-0-RELEASE:1.11.6.1
	netbsd-9-0-RC2:1.11.6.1
	netbsd-9-0-RC1:1.11.6.1
	phil-wifi-20191119:1.15
	netbsd-9:1.11.0.6
	netbsd-9-base:1.11
	phil-wifi-20190609:1.11
	netbsd-8-1-RELEASE:1.10
	netbsd-8-1-RC1:1.10
	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.8
	pgoyette-compat-0728:1.11
	netbsd-8-0-RELEASE:1.10
	phil-wifi:1.11.0.4
	phil-wifi-base:1.11
	pgoyette-compat-0625:1.11
	netbsd-8-0-RC2:1.10
	pgoyette-compat-0521:1.11
	pgoyette-compat-0502:1.11
	pgoyette-compat-0422:1.11
	netbsd-8-0-RC1:1.10
	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.8
	pgoyette-compat:1.11.0.2
	pgoyette-compat-base:1.11
	netbsd-7-1-1-RELEASE:1.8
	matt-nb8-mediatek:1.10.0.6
	matt-nb8-mediatek-base:1.10
	perseant-stdc-iso10646:1.10.0.4
	perseant-stdc-iso10646-base:1.10
	netbsd-8:1.10.0.2
	netbsd-8-base:1.10
	prg-localcount2-base3:1.9
	prg-localcount2-base2:1.9
	prg-localcount2-base1:1.9
	prg-localcount2:1.9.0.6
	prg-localcount2-base:1.9
	pgoyette-localcount-20170426:1.9
	bouyer-socketcan-base1:1.9
	pgoyette-localcount-20170320:1.9
	netbsd-7-1:1.8.0.28
	netbsd-7-1-RELEASE:1.8
	netbsd-7-1-RC2:1.8
	netbsd-7-nhusb-base-20170116:1.8
	bouyer-socketcan:1.9.0.4
	bouyer-socketcan-base:1.9
	pgoyette-localcount-20170107:1.9
	netbsd-7-1-RC1:1.8
	pgoyette-localcount-20161104:1.9
	netbsd-7-0-2-RELEASE:1.8
	localcount-20160914:1.9
	netbsd-7-nhusb:1.8.0.26
	netbsd-7-nhusb-base:1.8
	pgoyette-localcount-20160806:1.9
	pgoyette-localcount-20160726:1.9
	pgoyette-localcount:1.9.0.2
	pgoyette-localcount-base:1.9
	netbsd-7-0-1-RELEASE:1.8
	netbsd-7-0:1.8.0.24
	netbsd-7-0-RELEASE:1.8
	netbsd-7-0-RC3:1.8
	netbsd-7-0-RC2:1.8
	netbsd-7-0-RC1:1.8
	netbsd-5-2-3-RELEASE:1.1.6.1
	netbsd-5-1-5-RELEASE:1.1.6.1
	netbsd-6-0-6-RELEASE:1.8
	netbsd-6-1-5-RELEASE:1.8
	netbsd-7:1.8.0.22
	netbsd-7-base:1.8
	yamt-pagecache-base9:1.8
	yamt-pagecache-tag8:1.8
	netbsd-6-1-4-RELEASE:1.8
	netbsd-6-0-5-RELEASE:1.8
	tls-earlyentropy:1.8.0.20
	tls-earlyentropy-base:1.8
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.8
	riastradh-drm2-base3:1.8
	netbsd-6-1-3-RELEASE:1.8
	netbsd-6-0-4-RELEASE:1.8
	netbsd-5-2-2-RELEASE:1.1.6.1
	netbsd-5-1-4-RELEASE:1.1.6.1
	netbsd-6-1-2-RELEASE:1.8
	netbsd-6-0-3-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.1.6.1
	netbsd-5-1-3-RELEASE:1.1.6.1
	netbsd-6-1-1-RELEASE:1.8
	riastradh-drm2-base2:1.8
	riastradh-drm2-base1:1.8
	riastradh-drm2:1.8.0.12
	riastradh-drm2-base:1.8
	netbsd-6-1:1.8.0.18
	netbsd-6-0-2-RELEASE:1.8
	netbsd-6-1-RELEASE:1.8
	khorben-n900:1.8.0.16
	netbsd-6-1-RC4:1.8
	netbsd-6-1-RC3:1.8
	agc-symver:1.8.0.14
	agc-symver-base:1.8
	netbsd-6-1-RC2:1.8
	netbsd-6-1-RC1:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.1.6.1.0.10
	netbsd-6-0-1-RELEASE:1.8
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.1.6.1
	netbsd-5-2-RC1:1.1.6.1
	matt-nb6-plus-nbase:1.8
	yamt-pagecache-base6:1.8
	netbsd-6-0:1.8.0.10
	netbsd-6-0-RELEASE:1.8
	netbsd-6-0-RC2:1.8
	tls-maxphys:1.8.0.8
	tls-maxphys-base:1.8
	matt-nb6-plus:1.8.0.6
	matt-nb6-plus-base:1.8
	netbsd-6-0-RC1:1.8
	yamt-pagecache-base5:1.8
	yamt-pagecache-base4:1.8
	netbsd-6:1.8.0.4
	netbsd-6-base:1.8
	netbsd-5-1-2-RELEASE:1.1.6.1
	netbsd-5-1-1-RELEASE:1.1.6.1
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.2
	yamt-pagecache-base:1.8
	cherry-xenmp:1.5.0.4
	cherry-xenmp-base:1.5
	bouyer-quota2-nbase:1.5
	bouyer-quota2:1.5.0.2
	bouyer-quota2-base:1.5
	matt-mips64-premerge-20101231:1.5
	matt-nb5-mips64-premerge-20101231:1.1.6.1
	matt-nb5-pq3:1.1.6.1.0.8
	matt-nb5-pq3-base:1.1.6.1
	netbsd-5-1:1.1.6.1.0.6
	netbsd-5-1-RELEASE:1.1.6.1
	netbsd-5-1-RC4:1.1.6.1
	matt-nb5-mips64-k15:1.1.6.1
	netbsd-5-1-RC3:1.1.6.1
	netbsd-5-1-RC2:1.1.6.1
	netbsd-5-1-RC1:1.1.6.1
	netbsd-5-0-2-RELEASE:1.1.6.1
	matt-nb5-mips64-premerge-20091211:1.1.6.1
	matt-premerge-20091211:1.5
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1.6.1
	matt-nb4-mips64-k7-u2a-k9b:1.1.6.1
	matt-nb5-mips64-u1-k1-k5:1.1.6.1
	matt-nb5-mips64:1.1.6.1.0.4
	netbsd-5-0-1-RELEASE:1.1.6.1
	netbsd-4:1.3.0.4
	netbsd-4-0:1.3.0.2
	jym-xensuspend-nbase:1.2
	netbsd-5-0:1.1.6.1.0.2
	netbsd-5-0-RELEASE:1.1.6.1
	netbsd-5-0-RC4:1.1.6.1
	netbsd-5-0-RC3:1.1.6.1
	netbsd-5-0-RC2:1.1.6.1
	jym-xensuspend:1.2.0.2
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.1.6.1
	haad-dm-base:1.2
	haad-dm-base2:1.2
	haad-nbase2:1.2
	netbsd-5:1.1.0.6
	netbsd-5-base:1.1
	matt-mips64-base2:1.1
	haad-dm:1.1.0.4
	haad-dm-base1:1.1;
locks; strict;
comment	@# @;


1.20
date	2026.04.16.10.27.26;	author wiz;	state Exp;
branches;
next	1.19;
commitid	WG5Egtm9lUaaDaCG;

1.19
date	2025.07.14.10.25.51;	author kre;	state Exp;
branches;
next	1.18;
commitid	mQfuBzjsAhFHuH2G;

1.18
date	2023.06.03.09.09.03;	author lukem;	state Exp;
branches
	1.18.2.1;
next	1.17;
commitid	aBaIRnuykonRStrE;

1.17
date	2020.06.01.00.55.24;	author kamil;	state Exp;
branches;
next	1.16;
commitid	3myWZG4VH1QEpsaC;

1.16
date	2020.02.08.00.11.18;	author kamil;	state Exp;
branches;
next	1.15;
commitid	bOttm9Mhb01zPNVB;

1.15
date	2019.10.13.07.28.05;	author mrg;	state Exp;
branches;
next	1.14;
commitid	vRNwN94v7NgB2GGB;

1.14
date	2019.10.10.02.30.43;	author kre;	state Exp;
branches;
next	1.13;
commitid	3t2AiciEQNFDugGB;

1.13
date	2019.10.09.21.19.28;	author christos;	state Exp;
branches;
next	1.12;
commitid	66rPnGhILdiXLeGB;

1.12
date	2019.08.27.22.48.53;	author kamil;	state Exp;
branches;
next	1.11;
commitid	uUvLMLPlxrqiEIAB;

1.11
date	2018.02.04.03.19.52;	author christos;	state Exp;
branches
	1.11.4.1
	1.11.6.1;
next	1.10;
commitid	VEHjCiwlUMjetupA;

1.10
date	2017.05.21.15.28.39;	author riastradh;	state Exp;
branches;
next	1.9;
commitid	qFvwLLy2KgFGNgSz;

1.9
date	2016.01.05.13.07.46;	author christos;	state Exp;
branches;
next	1.8;
commitid	Vm5Z50yPA0D3bKPy;

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

1.7
date	2011.08.09.13.00.58;	author joerg;	state Exp;
branches;
next	1.6;

1.6
date	2011.06.21.02.32.55;	author mrg;	state Exp;
branches;
next	1.5;

1.5
date	2009.10.20.01.21.28;	author joerg;	state Exp;
branches
	1.5.4.1;
next	1.4;

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

1.3
date	2009.05.28.10.44.29;	author joerg;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;

1.2
date	2008.11.25.05.32.05;	author apb;	state Exp;
branches;
next	1.1;

1.1
date	2008.09.30.19.09.00;	author joerg;	state Exp;
branches
	1.1.4.1
	1.1.6.1;
next	;

1.18.2.1
date	2025.08.02.05.21.04;	author perseant;	state Exp;
branches;
next	;
commitid	23j6GFaDws3O875G;

1.11.4.1
date	2020.04.13.07.46.00;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.11.6.1
date	2019.09.01.10.44.23;	author martin;	state Exp;
branches;
next	;
commitid	wTuBvYul7JlQtiBB;

1.5.4.1
date	2011.06.23.14.18.29;	author cherry;	state Exp;
branches;
next	;

1.3.2.1
date	2009.05.28.10.44.29;	author snj;	state dead;
branches;
next	1.3.2.2;

1.3.2.2
date	2009.06.05.17.01.46;	author snj;	state Exp;
branches;
next	;

1.3.4.1
date	2009.05.28.10.44.29;	author snj;	state dead;
branches;
next	1.3.4.2;

1.3.4.2
date	2009.06.05.17.19.29;	author snj;	state Exp;
branches;
next	;

1.1.4.1
date	2008.09.30.19.09.00;	author haad;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2008.10.19.22.39.50;	author haad;	state Exp;
branches;
next	;

1.1.6.1
date	2008.12.04.02.12.45;	author snj;	state Exp;
branches;
next	;


desc
@@


1.20
log
@libfetch: remove trailing whitespace, define HAVE_POLL_H
@
text
@# $NetBSD: Makefile,v 1.19 2025/07/14 10:25:51 kre Exp $

LIB=		fetch
SRCS=		fetch.c common.c ftp.c http.c file.c
DPSRCS= 	ftperr.h httperr.h
INCS=		fetch.h
INCSDIR=	/usr/include
MAN=		fetch.3
CLEANFILES=	ftperr.h httperr.h

.include <bsd.init.mk>

CPPFLAGS+=	-I.
CPPFLAGS+=	-DNETBSD
CPPFLAGS+=	-DFTP_COMBINE_CWDS
CPPFLAGS+=	-DHAVE_POLL_H
CPPFLAGS+=	-DINET6

CPPFLAGS+=	-DWITH_SSL

LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl \
		crypto	${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto

CLEANFILES+=	ftperr.h httperr.h

.PATH: ${LIBFETCHDIR}

ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
	${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
	    ${LIBFETCHDIR}/ftp.errors > ${.TARGET}

httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
	${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
	    ${LIBFETCHDIR}/http.errors > ${.TARGET}

COPTS.http.c+=	${CC_WNO_STRINGOP_TRUNCATION}

.include <bsd.lib.mk>
@


1.19
log
@More prep for moving openssl from crypto/bsd to crypto/apache2

Find all the remaining places that used bsd/${EXTERNAL_OPENSSL_SUBDIR}
and (except for one, which shouldn't have been using the variable)
remove the "bsd/" prefix, which is now included in EXTERNAL_OPENSSL_SUBDIR
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2023/06/03 09:09:03 lukem Exp $
d14 1
a14 1
CPPFLAGS+=	-DNETBSD 
d16 1
@


1.18
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.17 2020/06/01 00:55:24 kamil Exp $
d20 2
a21 2
LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl \
		crypto	${NETBSDSRCDIR}/crypto/external/bsd/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
@


1.18.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2025/07/14 10:25:51 kre Exp $
d20 2
a21 2
LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/libssl \
		crypto	${NETBSDSRCDIR}/crypto/external/${EXTERNAL_OPENSSL_SUBDIR}/lib/libcrypto
@


1.17
log
@Avoid redefining _REENTRANT under sanitizers

Switch away from -Wno-macro-redefined which was Clang/LLVM specific.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2020/02/08 00:11:18 kamil Exp $
d35 1
a35 1
COPTS.http.c+=	${GCC_NO_STRINGOP_TRUNCATION}
@


1.16
log
@Expand the -Wno-macro-redefined usage to MKLIBCSANITIZER

_REENTRANT can be redefined and this is considered as an error.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2019/10/13 07:28:05 mrg Exp $
a34 4
.if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
CFLAGS+=	-Wno-macro-redefined # _REENTRANT redefined
.endif

@


1.15
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.14 2019/10/10 02:30:43 kre Exp $
d35 1
a35 1
.if ${MKSANITIZER:Uno} == "yes"
@


1.14
log
@
Only exclude ggc-8 warnings when the gcc we're using is gcc 8 or more.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2019/10/09 21:19:28 christos Exp $
d39 1
a39 3
.if defined(HAVE_GCC) && ${HAVE_GCC} >= 8 && ${ACTIVE_CC} == "gcc"
COPTS.http.c += -Wno-error=stringop-truncation
.endif
@


1.13
log
@No error for stringop truncation.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2019/08/27 22:48:53 kamil Exp $
d39 1
a39 1
.if ${ACTIVE_CC} == "gcc"
@


1.12
log
@Enhance the support of LLVM sanitizers

Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.
Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2018/02/04 03:19:52 christos Exp $
d39 4
@


1.11
log
@switch everyone to openssl.old
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2017/05/21 15:28:39 riastradh Exp $
d35 4
@


1.11.4.1
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d1 1
a1 1
# $NetBSD$
a34 6
.if ${MKSANITIZER:Uno} == "yes" || ${MKLIBCSANITIZER:Uno} == "yes"
CFLAGS+=	-Wno-macro-redefined # _REENTRANT redefined
.endif

COPTS.http.c+=	${GCC_NO_STRINGOP_TRUNCATION}

@


1.11.6.1
log
@Pull up following revision(s) (requested by kamil in ticket #126):

	external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile: revision 1.3
	external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile: revision 1.3
	external/gpl2/lvm2/lvm2tools.mk: revision 1.5
	common/lib/libc/gmon/mcount.c: revision 1.14
	Makefile: revision 1.331
	share/mk/Makefile: revision 1.51
	external/bsd/fetch/lib/Makefile: revision 1.12
	external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile: revision 1.3
	tests/lib/libc/net/Makefile: revision 1.12
	external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile: revision 1.3
	external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile: revision 1.3
	distrib/sets/lists/base/mi: revision 1.1213
	share/mk/bsd.lib.mk: revision 1.380
	external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile: revision 1.3
	external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile: revision 1.3
	share/mk/bsd.sanitizer.mk: revision 1.1
	share/mk/bsd.prog.mk: revision 1.323
	external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile: revision 1.3
	external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile: revision 1.3
	lib/libc/gen/sysctlgetmibinfo.c: revision 1.14

Enhance the support of LLVM sanitizers

Define _REENTRANT for MKSANITIZER build. This is needed for at least stdio
code. This caused new build issued with duplicated symbols in few places
and rump kernel code picking different code paths borrowed from libc.

Handle all this in one go.

Add bsd.sanitizer.mk to share common code used by programs and libraries.

Switch from realall to beforeinstall target in .syms files. This is more
reliable in MKSANITIZER.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2018/02/04 03:19:52 christos Exp $
a34 4
.if ${MKSANITIZER:Uno} == "yes"
CFLAGS+=	-Wno-macro-redefined # _REENTRANT redefined
.endif

@


1.10
log
@Remove MKCRYPTO option.

Originally, MKCRYPTO was introduced because the United States
classified cryptography as a munition and restricted its export.  The
export controls were substantially relaxed fifteen years ago, and are
essentially irrelevant for software with published source code.

In the intervening time, nobody bothered to remove the option after
its motivation -- the US export restriction -- was eliminated.  I'm
not aware of any other operating system that has a similar option; I
expect it is mainly out of apathy for churn that we still have it.
Today, cryptography is an essential part of modern computing -- you
can't use the internet responsibly without cryptography.

The position of the TNF board of directors is that TNF makes no
representation that MKCRYPTO=no satisfies any country's cryptography
regulations.

My personal position is that the availability of cryptography is a
basic human right; that any local laws restricting it to a privileged
few are fundamentally immoral; and that it is wrong for developers to
spend effort crippling cryptography to work around such laws.

As proposed on tech-crypto, tech-security, and tech-userlevel to no
objections:

https://mail-index.netbsd.org/tech-crypto/2017/05/06/msg000719.html
https://mail-index.netbsd.org/tech-security/2017/05/06/msg000928.html
https://mail-index.netbsd.org/tech-userlevel/2017/05/06/msg010547.html

P.S.  Reviewing all the uses of MKCRYPTO in src revealed a lot of
*bad* crypto that was conditional on it, e.g. DES in telnet...  That
should probably be removed too, but on the grounds that it is bad,
not on the grounds that it is (nominally) crypto.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2016/01/05 13:07:46 christos Exp $
d20 2
a21 2
LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libssl \
		crypto	${NETBSDSRCDIR}/crypto/external/bsd/openssl/lib/libcrypto
@


1.9
log
@- Change LDADD/DPADD in library dependencies to LIBDPLIBS
- Fix some LDADD abuse and remove useless dependencies
- include <bsd.init.mk> in the right place where appropriate
From Rin Okuyama
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2011/08/17 09:20:14 christos Exp $
a17 1
.if (${MKCRYPTO} != "no")
a21 1
.endif
@


1.8
log
@remove gcc hacks.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2011/08/09 13:00:58 joerg Exp $
a20 2
LDADD=		-lssl -lcrypto

@


1.7
log
@-Wno-array-bounds is no longer needed for clang here
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2011/06/21 02:32:55 mrg Exp $
a39 5

.if ${HAVE_GCC} == 45
# XXX
COPTS.ftp.c+=	${${ACTIVE_CC} == "gcc":?-Wno-array-bounds:}
.endif
@


1.6
log
@add some XXX'd -Wno-foo if HAVE_GCC >= 45.

XXX: someone should look at these.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2009/10/20 01:21:28 joerg Exp $
d43 1
a43 1
COPTS.ftp.c+=	-Wno-array-bounds
@


1.5
log
@Fix RCS ID
@
text
@d1 1
a1 1
# $NetBSD$
d40 5
@


1.5.4.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2011/06/21 02:32:55 mrg Exp $
a39 5

.if ${HAVE_GCC} == 45
# XXX
COPTS.ftp.c+=	-Wno-array-bounds
.endif
@


1.4
log
@Use the correct libcrypto.
@
text
@d1 1
a1 1
# $NetBSD
@


1.3
log
@Allow building with MKCRYPTO=no.
@
text
@d23 2
a24 2
LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/lib/libssl \
		crypto	${NETBSDSRCDIR}/lib/libcrypto
@


1.3.4.1
log
@file Makefile was added on branch netbsd-4 on 2009-06-05 17:19:29 +0000
@
text
@d1 39
@


1.3.4.2
log
@Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090929 from HEAD.
@
text
@a0 39
# $NetBSD

LIB=		fetch
SRCS=		fetch.c common.c ftp.c http.c file.c
DPSRCS= 	ftperr.h httperr.h
INCS=		fetch.h
INCSDIR=	/usr/include
MAN=		fetch.3
CLEANFILES=	ftperr.h httperr.h

.include <bsd.init.mk>

CPPFLAGS+=	-I.
CPPFLAGS+=	-DNETBSD 
CPPFLAGS+=	-DFTP_COMBINE_CWDS
CPPFLAGS+=	-DINET6

.if (${MKCRYPTO} != "no")
CPPFLAGS+=	-DWITH_SSL

LDADD=		-lssl -lcrypto

LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/lib/libssl \
		crypto	${NETBSDSRCDIR}/lib/libcrypto
.endif

CLEANFILES+=	ftperr.h httperr.h

.PATH: ${LIBFETCHDIR}

ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
	${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
	    ${LIBFETCHDIR}/ftp.errors > ${.TARGET}

httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
	${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
	    ${LIBFETCHDIR}/http.errors > ${.TARGET}

.include <bsd.lib.mk>
@


1.3.2.1
log
@file Makefile was added on branch netbsd-4-0 on 2009-06-05 17:01:46 +0000
@
text
@d1 39
@


1.3.2.2
log
@Apply patch (requested by joerg in ticket #1322):
Pull up pkg_install-20090528, libarchive-2.5.5 and libfetch-2.23
with the associated build infrastructure as of 20090529 from HEAD.
@
text
@a0 39
# $NetBSD

LIB=		fetch
SRCS=		fetch.c common.c ftp.c http.c file.c
DPSRCS= 	ftperr.h httperr.h
INCS=		fetch.h
INCSDIR=	/usr/include
MAN=		fetch.3
CLEANFILES=	ftperr.h httperr.h

.include <bsd.init.mk>

CPPFLAGS+=	-I.
CPPFLAGS+=	-DNETBSD 
CPPFLAGS+=	-DFTP_COMBINE_CWDS
CPPFLAGS+=	-DINET6

.if (${MKCRYPTO} != "no")
CPPFLAGS+=	-DWITH_SSL

LDADD=		-lssl -lcrypto

LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/lib/libssl \
		crypto	${NETBSDSRCDIR}/lib/libcrypto
.endif

CLEANFILES+=	ftperr.h httperr.h

.PATH: ${LIBFETCHDIR}

ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
	${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
	    ${LIBFETCHDIR}/ftp.errors > ${.TARGET}

httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
	${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
	    ${LIBFETCHDIR}/http.errors > ${.TARGET}

.include <bsd.lib.mk>
@


1.2
log
@Use ${HOST_SH}, not ${SH}.  ${SH} is undefined, so acts like an
empty string.  The build would sometimes work despite this error, if
errlist.sh happened to be executable and if the host's /bin/sh was good
enough.
@
text
@d17 2
d25 1
@


1.1
log
@Build glue for libfetch.
@
text
@d29 1
a29 1
	${SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
d33 1
a33 1
	${SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
@


1.1.6.1
log
@Pull up following revision(s) (requested by apb in ticket #158):
	external/bsd/fetch/lib/Makefile: revision 1.2
Use ${HOST_SH}, not ${SH}.  ${SH} is undefined, so acts like an
empty string.  The build would sometimes work despite this error, if
errlist.sh happened to be executable and if the host's /bin/sh was good
enough.
@
text
@d29 1
a29 1
	${HOST_SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
d33 1
a33 1
	${HOST_SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
@


1.1.4.1
log
@file Makefile was added on branch haad-dm on 2008-10-19 22:39:50 +0000
@
text
@d1 36
@


1.1.4.2
log
@Sync with HEAD.
@
text
@a0 36
# $NetBSD

LIB=		fetch
SRCS=		fetch.c common.c ftp.c http.c file.c
DPSRCS= 	ftperr.h httperr.h
INCS=		fetch.h
INCSDIR=	/usr/include
MAN=		fetch.3
CLEANFILES=	ftperr.h httperr.h

.include <bsd.init.mk>

CPPFLAGS+=	-I.
CPPFLAGS+=	-DNETBSD 
CPPFLAGS+=	-DFTP_COMBINE_CWDS
CPPFLAGS+=	-DINET6
CPPFLAGS+=	-DWITH_SSL

LDADD=		-lssl -lcrypto

LIBDPLIBS+=	ssl	${NETBSDSRCDIR}/lib/libssl \
		crypto	${NETBSDSRCDIR}/lib/libcrypto

CLEANFILES+=	ftperr.h httperr.h

.PATH: ${LIBFETCHDIR}

ftperr.h: ${LIBFETCHDIR}/ftp.errors ${LIBFETCHDIR}/errlist.sh
	${SH} ${LIBFETCHDIR}/errlist.sh ftp_errlist FTP \
	    ${LIBFETCHDIR}/ftp.errors > ${.TARGET}

httperr.h: ${LIBFETCHDIR}/http.errors ${LIBFETCHDIR}/errlist.sh
	${SH} ${LIBFETCHDIR}/errlist.sh http_errlist HTTP \
	    ${LIBFETCHDIR}/http.errors > ${.TARGET}

.include <bsd.lib.mk>
@
