head	1.8;
access;
symbols
	netbsd-11-0-RC6:1.5
	netbsd-11-0-RC5:1.5
	netbsd-11-0-RC4:1.5
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.24
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.5
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.22
	perseant-exfatfs-base:1.5
	netbsd-8-3-RELEASE:1.5
	netbsd-9-4-RELEASE:1.5
	netbsd-10-0-RELEASE:1.5
	netbsd-10-0-RC6:1.5
	netbsd-10-0-RC5:1.5
	netbsd-10-0-RC4:1.5
	netbsd-10-0-RC3:1.5
	netbsd-10-0-RC2:1.5
	netbsd-10-0-RC1:1.5
	netbsd-10:1.5.0.20
	netbsd-10-base:1.5
	netbsd-9-3-RELEASE:1.5
	cjep_sun2x-base1:1.5
	cjep_sun2x:1.5.0.18
	cjep_sun2x-base:1.5
	cjep_staticlib_x-base1:1.5
	netbsd-9-2-RELEASE:1.5
	cjep_staticlib_x:1.5.0.16
	cjep_staticlib_x-base:1.5
	netbsd-9-1-RELEASE:1.5
	phil-wifi-20200421:1.5
	phil-wifi-20200411:1.5
	is-mlppp:1.5.0.14
	is-mlppp-base:1.5
	phil-wifi-20200406:1.5
	netbsd-8-2-RELEASE:1.5
	netbsd-9-0-RELEASE:1.5
	netbsd-9-0-RC2:1.5
	netbsd-9-0-RC1:1.5
	phil-wifi-20191119:1.5
	netbsd-9:1.5.0.12
	netbsd-9-base:1.5
	phil-wifi-20190609:1.5
	netbsd-8-1-RELEASE:1.5
	netbsd-8-1-RC1:1.5
	pgoyette-compat-merge-20190127:1.5
	pgoyette-compat-20190127:1.5
	pgoyette-compat-20190118:1.5
	pgoyette-compat-1226:1.5
	pgoyette-compat-1126:1.5
	pgoyette-compat-1020:1.5
	pgoyette-compat-0930:1.5
	pgoyette-compat-0906:1.5
	pgoyette-compat-0728:1.5
	netbsd-8-0-RELEASE:1.5
	phil-wifi:1.5.0.10
	phil-wifi-base:1.5
	pgoyette-compat-0625:1.5
	netbsd-8-0-RC2:1.5
	pgoyette-compat-0521:1.5
	pgoyette-compat-0502:1.5
	pgoyette-compat-0422:1.5
	netbsd-8-0-RC1:1.5
	pgoyette-compat-0415:1.5
	pgoyette-compat-0407:1.5
	pgoyette-compat-0330:1.5
	pgoyette-compat-0322:1.5
	pgoyette-compat-0315:1.5
	pgoyette-compat:1.5.0.8
	pgoyette-compat-base:1.5
	matt-nb8-mediatek:1.5.0.6
	matt-nb8-mediatek-base:1.5
	perseant-stdc-iso10646:1.5.0.4
	perseant-stdc-iso10646-base:1.5
	netbsd-8:1.5.0.2
	netbsd-8-base:1.5
	prg-localcount2-base3:1.4
	prg-localcount2-base2:1.4
	prg-localcount2-base1:1.4
	prg-localcount2:1.4.0.6
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan:1.4.0.4
	bouyer-socketcan-base1:1.4
	pgoyette-localcount:1.4.0.2
	pgoyette-localcount-20170320:1.4
	openbsd-20170206:1.1.1.1
	OPENBSD:1.1.1;
locks; strict;
comment	@# @;


1.8
date	2026.06.13.12.03.49;	author kre;	state Exp;
branches;
next	1.7;
commitid	UyaL1NVoqdtxiDJG;

1.7
date	2026.06.13.11.30.24;	author christos;	state Exp;
branches;
next	1.6;
commitid	pDcJqSmVSmF97DJG;

1.6
date	2026.03.03.03.14.47;	author kre;	state Exp;
branches;
next	1.5;
commitid	O8AWokRAX8LtEtwG;

1.5
date	2017.05.21.15.28.43;	author riastradh;	state Exp;
branches;
next	1.4;
commitid	qFvwLLy2KgFGNgSz;

1.4
date	2017.02.09.21.25.05;	author christos;	state Exp;
branches
	1.4.2.1
	1.4.4.1;
next	1.3;
commitid	rx5jsEEjBGc03kFz;

1.3
date	2017.02.09.20.39.42;	author joerg;	state Exp;
branches;
next	1.2;
commitid	c2mwYFBLYhVoNjFz;

1.2
date	2017.02.06.16.03.40;	author christos;	state Exp;
branches;
next	1.1;
commitid	zJcOOfzMqQtwmUEz;

1.1
date	2017.02.06.16.00.51;	author christos;	state Exp;
branches
	1.1.1.1;
next	;
commitid	hsMxnVGmtdBHlUEz;

1.4.2.1
date	2017.02.09.21.25.05;	author pgoyette;	state dead;
branches;
next	1.4.2.2;
commitid	jjw7cAwgyKq7RfKz;

1.4.2.2
date	2017.03.20.06.58.05;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.4.4.1
date	2017.02.09.21.25.05;	author christos;	state dead;
branches;
next	1.4.4.2;

1.4.4.2
date	2017.02.09.21.25.06;	author christos;	state Exp;
branches;
next	;

1.1.1.1
date	2017.02.06.16.00.51;	author christos;	state Exp;
branches;
next	;
commitid	hsMxnVGmtdBHlUEz;


desc
@@


1.8
log
@Add $NetBSD$ identifier (comment)
@
text
@#	$NetBSD$
#	$OpenBSD: Makefile,v 1.7 2015/09/11 21:07:01 beck Exp $

.include <bsd.own.mk>

PROG=	nc
SRCS=	netcat.c atomicio.c socks.c

# If this is ever made to work, change ".nr C 0" to ".nr C 1"
# early in nc.1 to return all the crypto options to the man page.
#CPPFLAGS+=-DCRYPTO
#LDADD+= -ltls -lssl -lcrypto
#DPADD+=  ${LIBTLS} ${LIBSSL} ${LIBCRYPTO}

.include <bsd.prog.mk>
@


1.7
log
@PR/60327: Jay Patel: fix typo
@
text
@d1 1
@


1.6
log
@Remove CRYPTO options from man page

Since we do not build the code with CRYPTO defined, documenting
the CRYPTO options (pretending that they might work) in the man
page is misleading at best.

Rather than removing the text for the options completely, include
it conditioned on the C *roff number register being > 0 (and define
it to be 0 so the formatters don't format the CRYPTO sections of
the man page).

Add a comment to the Makefile indicating that if the commented
out section of it which would enable building with CRYPTO is
ever re-enabled, to also change the init of the C number register
in nc.1 from 0 to 1, so the options will return to the manual.
@
text
@d9 1
a9 1
# early in nc.1 to return all the cryto options to the man page.
@


1.5
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
@d8 2
@


1.4
log
@no more warnings for ld.
@
text
@a7 1
#.if ${MKCRYPTO} == "yes"
a10 1
#.endif
@


1.4.4.1
log
@file Makefile was added on branch bouyer-socketcan on 2017-02-09 21:25:06 +0000
@
text
@d1 14
@


1.4.4.2
log
@727211
@
text
@a0 14
#	$OpenBSD: Makefile,v 1.7 2015/09/11 21:07:01 beck Exp $

.include <bsd.own.mk>

PROG=	nc
SRCS=	netcat.c atomicio.c socks.c

#.if ${MKCRYPTO} == "yes"
#CPPFLAGS+=-DCRYPTO
#LDADD+= -ltls -lssl -lcrypto
#DPADD+=  ${LIBTLS} ${LIBSSL} ${LIBCRYPTO}
#.endif

.include <bsd.prog.mk>
@


1.4.2.1
log
@file Makefile was added on branch pgoyette-localcount on 2017-03-20 06:58:05 +0000
@
text
@d1 14
@


1.4.2.2
log
@Sync with HEAD
@
text
@a0 14
#	$OpenBSD: Makefile,v 1.7 2015/09/11 21:07:01 beck Exp $

.include <bsd.own.mk>

PROG=	nc
SRCS=	netcat.c atomicio.c socks.c

#.if ${MKCRYPTO} == "yes"
#CPPFLAGS+=-DCRYPTO
#LDADD+= -ltls -lssl -lcrypto
#DPADD+=  ${LIBTLS} ${LIBSSL} ${LIBCRYPTO}
#.endif

.include <bsd.prog.mk>
@


1.3
log
@Turn off fatal linker warnings for now due to mktemp.
@
text
@a14 2

LDFLAGS+=	-Wl,--no-fatal-warnings
@


1.2
log
@- Disable crypto for now, and functionality that we don't provide.
- Fix warnings
@
text
@d15 2
@


1.1
log
@Initial revision
@
text
@d3 2
d7 6
a12 2
LDADD+= -ltls -lssl -lcrypto
DPADD+=  ${LIBTLS} ${LIBSSL} ${LIBCRYPTO}
@


1.1.1.1
log
@Import OpenBSD's netcat.
@
text
@@
