History log of /freebsd-current/secure/usr.bin/ssh/Makefile
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 9d63429f 02-Nov-2021 Ed Maste <emaste@FreeBSD.org>

ssh: move common Makefile boilerplate to a new ssh.mk

This moves SSHDIR and ssh_namespace.h handling to a common location,
and will simplify future work such as adding U2F support (D32509).

Reviewed by: kevans
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D32808


# d55bf492 25-Apr-2021 Ed Maste <emaste@FreeBSD.org>

Revert "Add workaround for a QoS-related bug in VMWare Workstation."

This reverts commit 77c2fe20df6a9a7c1a353e1a4ab2ba80fefab881.

The VMware Workstation issue was fixed in 2019[1], and we'd rather not
carry unnecessary local changes in OpenSSH.

[1] https://communities.vmware.com/t5/VMware-Workstation-Pro/Regression-ssh-results-in-broken-pipe-upon-connecting-in-Vmware/m-p/486105/highlight/true#M25470

PR: 234426
Discussed with: yuripv
Approved by: des
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation


# 77c2fe20 27-Mar-2019 Dag-Erling Smørgrav <des@FreeBSD.org>

Add workaround for a QoS-related bug in VMWare Workstation.

Submitted by: yuripv
Differential Revision: https://reviews.freebsd.org/D18636


# f0a51d9d 15-Aug-2018 Brad Davis <brd@FreeBSD.org>

Move ssh config file handling into the ssh Makefiles.

This helps with pkgbase by using CONFS and tagging these as config files.

Approved by: allanjude (mentor), des
Differential Revision: https://reviews.freebsd.org/D16678


# 94ef145e 02-Jan-2017 Enji Cooper <ngie@FreeBSD.org>

Only bake krb5_config.h support in to ssh(3), etc if both MK_GSSAPI and
MK_KERBEROS_SUPPORT != no

This fixes the odd case where someone specified MK_GSSAPI=no and
MK_KERBEROS_SUPPORT=yes (which admittedly, probably doesn't make sense,
but the build system doesn't prevent this case today, and it didn't when
I filed the bug back in 2011 either).

MFC after: 2 weeks
PR: 159745


# e42070a7 07-Dec-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Replace unneeded manual dependency on header by adding it to SRCS.

bsd.lib.mk and bsd.prog.mk already depend all objs on headers in SRCS if
there is not yet a depend file. The headers in SRCS are never built or
installed. After 'make depend' the header was already added as a proper
dependency on the objects where needed.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division


# 1765946b 22-Nov-2015 Dag-Erling Smørgrav <des@FreeBSD.org>

Retire the NONE cipher option.


# 0bd7d22e 05-Mar-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Move ssh into a dedicated package
Flag config files as "to be merged on upgrade"


# ff75e007 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Reduce overlinking
The framework now ensure by itself that pthread is added to the link chain
as the last component if linked to kerberos hence avoid with out any explicit
addition prevent issue like CVE-2014-8475


# ee5a34ec 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Convert to LIBADD
Reduce overlinking


# d052a806 19-Aug-2014 Enji Cooper <ngie@FreeBSD.org>

Fix typo (LIBLDNSADD -> LIBLDNS) to fix "make checkdpadd"

X-MFC with: r269648
Phabric: D634
Approved by: jmmv (mentor)


# d029c3aa 06-Aug-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Rework privatelib/internallib

Make sure everything linking to a privatelib and/or an internallib does it directly
from the OBJDIR rather than DESTDIR.
Add src.libnames.mk so bsd.libnames.mk is not polluted by libraries not existsing
in final installation
Introduce the LD* variable which is what ld(1) is expecting (via LDADD) to link to
internal/privatelib
Directly link to the .so in case of private library to avoid having to complexify
LDFLAGS.

Phabric: https://phabric.freebsd.org/D553
Reviewed by: imp, emaste


# c6063d0d 05-May-2014 Warner Losh <imp@FreeBSD.org>

Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.


# 0085282b 23-Sep-2013 Dag-Erling Smørgrav <des@FreeBSD.org>

Unbreak the WITHOUT_KERBEROS build and try to reduce the odds of a
repeat performance by introducing a script that runs configure with and
without Kerberos, diffs the result and generates krb5_config.h, which
contains the preprocessor macros that need to be defined in the Kerberos
case and undefined otherwise.

Approved by: re (marius)


# 9cfa8b3f 10-Sep-2013 Dag-Erling Smørgrav <des@FreeBSD.org>

Clean up the OpenSSH build. It is now possible to build most components
as static binaries, if desired. The one exception is sshd, which runs
into trouble due to libpam.a's includion of pam_ssh.

Make OpenSSH use LDNS if available. This allows it to verify signed
SSHFP records.

Approved by: re (blanket)


# 0b2766bd 08-Sep-2013 Dag-Erling Smørgrav <des@FreeBSD.org>

Make libldns and libssh private.

Approved by: re (blanket)


# e6a64a84 16-Jan-2013 Bjoern A. Zeeb <bz@FreeBSD.org>

Add a src.conf(5) option to allow users to compile in the "NONE cipher",
which, only after authentication, disables crypto, and only for sessions
without a terminal.

Submitted by: Jeremy Chadwick (freebsd jdc.parodius.com)
PR: bin/163095
MFC after: 10 days


# 2774871b 24-Mar-2012 Eitan Adler <eadler@FreeBSD.org>

Restore the ability to use a non-standard LOCALBASE to sshd
Add the ability to use a non-standard LOCALBASE to ssh

Submitted by: jhb
Reviewed by: des
Approved by: cperciva
MFC after: 0 days (with r233136)


# 57f8914d 18-Mar-2012 Eitan Adler <eadler@FreeBSD.org>

X11BASE is not used any more and has been killed by the x11 team.

Reviewed by: ???
Approved by: ???
MFC after: 3 days


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 124981e1 21-Apr-2010 Dag-Erling Smørgrav <des@FreeBSD.org>

MFH OpenSSH 5.4p1


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# ac188d74 05-Mar-2008 Kris Kennaway <kris@FreeBSD.org>

For users of FreeBSD <= 6.2 we recommend during the x.org 7.x upgrade
that they add X11BASE=${LOCALBASE} to /etc/make.conf since X11BASE was
hard-wired to the now-wrong location in old releases.

However, both X11BASE and LOCALBASE have moved out of scope of src/
into ports/ now, which causes problems for upgraded users who have old
make.conf files still containing the above setting. X11BASE becomes
null and we instruct ssh and sshd to look for xauth in /bin/xauth
where it is unlikely to be found.

Instead, provide a copy of the default LOCALBASE?=/usr/local setting
here.

We also have to deal with the case where the user only overrides
LOCALBASE and doesn't set an explicit X11BASE (in ports it will be set
implicitly but not here), which will also move the location of xauth.

MFC after: 3 days
Reported by: rwatson


# 9fd9594d 13-May-2006 Dag-Erling Smørgrav <des@FreeBSD.org>

Add a manual dependency on ssh_namespace.h.

Discussed with: ru


# ed22e27d 13-May-2006 Dag-Erling Smørgrav <des@FreeBSD.org>

Introduce a namespace munging hack inspired by NetBSD to avoid polluting
the namespace of applications which inadvertantly link in libssh (usually
through pam_ssh)

Suggested by: lukem@netbsd.org
MFC after: 6 weeks


# e1fe3dba 17-Mar-2006 Ruslan Ermilov <ru@FreeBSD.org>

Reimplementation of world/kernel build options. For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)


# c0b9f4fe 29-Dec-2005 Doug Rabson <dfr@FreeBSD.org>

Add a new extensible GSS-API layer which can support GSS-API plugins,
similar the the Solaris implementation. Repackage the krb5 GSS mechanism
as a plugin library for the new implementation. This also includes a
comprehensive set of manpages for the GSS-API functions with text mostly
taken from the RFC.

Reviewed by: Love Hörnquist Åstrand <lha@it.su.se>, ru (build system), des (openssh parts)


# 40e0db94 07-Jun-2005 Dag-Erling Smørgrav <des@FreeBSD.org>

Revert the commits that made libssh an INTERNALLIB; they caused too much
trouble, especially on amd64.

Requested by: ru


# 32f80c77 06-Jun-2005 Dag-Erling Smørgrav <des@FreeBSD.org>

Make libssh an INTERNALLIB like it is in {Net,Open}BSD.


# 015bad35 05-Jun-2005 Dag-Erling Smørgrav <des@FreeBSD.org>

Update for OpenSSH 4.1p1.


# 40dd33e8 26-Feb-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Update for 3.8p1, including workaround for a bug in gss-genr.c.


# e1542a40 08-Jan-2004 Ruslan Ermilov <ru@FreeBSD.org>

Fixed static linkage.

Reviewed by: des


# 9f80be8e 08-Jan-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Enable GSSAPI support. [1]
Also remove some duplicates from ssh's SRCS.

Submitted by: [1] Björn Grönvall <bg@sics.se>


# a04e3d6c 07-Jan-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Update Makefiles for OpenSSH 3.7.1p2.


# 55c90a95 02-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Fixed "make checkdpadd".

OK'ed by: markm


# dbf104e6 05-May-2003 Mark Murray <markm@FreeBSD.org>

Turn MAKE_KERBEROS5 into NO_KERBEROS by negating the logic. Some extra
cleanups were necessary in release/Makefile, and the tinderbox code
was syntax checked, not run checked.


# 59199aeb 30-Apr-2003 Mark Murray <markm@FreeBSD.org>

We no longer have a separate kerberos distribution. Its now just
part of the regular security dist.


# d8b043c8 23-Apr-2003 Dag-Erling Smørgrav <des@FreeBSD.org>

Update for 3.6.1p1; also remove Kerberos IV shims.


# 4d56bc23 29-Oct-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Update for OpenSSH 3.5p1.


# 81d85817 05-Jul-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

ssh-keysign(8) belongs in /usr/libexec, not in /usr/bin, and needs to be
setuid so ssh(1) doesn't have to be.

Pointy hat to: des
Submitted by: Katsuyuki TATEISHI <katsu@iec.hiroshima-u.ac.jp>


# f0b56c5c 25-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

No guts, no glory. Switch to OpenSSH-portable.

Sponsored by: DARPA, NAI Labs


# 16c52d15 24-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Previous commit made no sense.


# 8d024c66 23-Jun-2002 Dag-Erling Smørgrav <des@FreeBSD.org>

Install the new man pages.


# 6bde859f 26-Apr-2002 Ruslan Ermilov <ru@FreeBSD.org>

Milestone #1 in cross-arch make releases.

Do not install games and profiled libraries to the ${CHROOTDIR}
with the initial installworld.

Eliminate the need in the second installworld. For that, make sure
_everything_ is built in the "world" environment, using the right
tool chain.

Added SUBDIR_OVERRIDE helper stuff to Makefile.inc1. Split the
buildworld process into stages, and skip some stages when
SUBDIR_OVERRIDE is set (used to build crypto, krb4, and krb5
dists).

Added NO_MAKEDB_RUN knob to Makefile.inc1 to avoid running
makewhatis(1) at the end of installworld (used when making crypto,
krb4, and krb5 dists).

In release/scripts/doFS.sh, ensure that the correct boot blocks are
used.

Moved the creation of the "crypto" dist from release.5 to
release.2.

In release.3 and doMFSKERN, build kernels in the "world"
environment. KERNELS now means "additional" kernels, GENERIC is
always built.

Ensure we build crunched binaries in the "world" environment.
Obfuscate release/Makefile some more (WMAKEENV) to achieve this.

Inline createBOOTMFS target.

Use already built GENERIC kernel modules to augment mfsfd's
/stand/modules. GC doMODULES as such.

Assorted fixes:

Get rid of the "afterdistribute" target by moving the single use
of it from sys/Makefile to etc/Makefile's "distribute".

Makefile.inc1: apparently "etc" no longer needs to be last for
"distribute" to succeed.

gnu/usr.bin/perl/library/Makefile.inc: do not override the
"install" and "distribute" targets, do it the "canonical" way.

release/scripts/{man,cat}pages-make.sh: make sure Perl manpages and
catpages appear in the right dists. Note that because Perl does
not respect the MANBUILDCAT (and NOMAN), this results in a loss of
/usr/share/perl/man/cat* empty directories. This will be fixed
soon.

Turn MAKE_KERBEROS4 into a plain boolean variable (if it is set it
means "make KerberosIV"), as documented in the make.conf(5)
manpage. Most of the userland makefiles did not test it for "YES"
anyway.

XXX Should specialized kerberized libpam versions be included into
the krb4 and krb5 dists? (libpam.a would be incorrect anyway if
both krb4 and krb5 dists were choosen.)

Make sure "games" dist is made before "catpages", otherwise games
catpages settle in the wrong dist.

Fast build machine provided by: Igor Kucherenko <kivvy@sunbay.com>


# 0509dca0 23-Jan-2002 Ruslan Ermilov <ru@FreeBSD.org>

Add pam_ssh support to the static PAM library, libpam.a:

- Spam /usr/lib some more by making libssh a standard library.
- Tweak ${LIBPAM} and ${MINUSLPAM}.
- Garbage collect unused libssh_pic.a.
- Add fake -lz dependency to secure/ makefiles needed for
dynamic linkage with -lssh.

Reviewed by: des, markm
Approved by: markm


# d350064e 03-May-2001 Brian Feldman <green@FreeBSD.org>

Follow the OpenSSH 2.9 upgrade with the infrastructure. Two new
programs are now included: sftp(1) and ssh-keyscan(1).


# b8cba406 26-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

secure/ build fixes:

- TELNETOBJDIR is gone. `buildworld' already installs libtelnet.a
in ${WORLDTMP}/usr/lib, and we have LIBRARY_PATH pointing there.

- SSHDIR (formerly SSHSRC) is now shared between all SSH modules.
New LIBSSH is introduced for libssh.a (an internal static lib).
Previously, build without prior `obj' was broken; SSH modules
always looked for libssh.a in ${.OBJDIR}. Also, the dependancies
on the libssh.a were missing.

- libtelnet/ did not install the crypto version of telnet.h into
/usr/include/arpa.

- Removed BINOWN, BINMODE, BINDIR and SRCS with default values.

Reviewed by: markm

- MAN[1-9] -> MAN.


# 087815f8 13-Nov-2000 Brian Feldman <green@FreeBSD.org>

Disable /usr/bin/ssh being setuid root by default. Let the variable
ENABLE_SUID_SSH being defined reenable it for those that want it.

This follows discussion favoring the change from September. It
is not usually necessary to be setuid root, possibly less safe,
and less convenient (cannot use $HOSTALIASES, for example).

Submitted by: jedgar


# 2f538dad 10-Sep-2000 Kris Kennaway <kris@FreeBSD.org>

Update for OpenSSH 2.2.0


# 0305cfce 23-Aug-2000 Andrey A. Chernov <ache@FreeBSD.org>

Add missing quotes around xauth path


# 4d858ef4 23-Aug-2000 Kris Kennaway <kris@FreeBSD.org>

Respect X11BASE to derive the location of xauth(1)

PR: 17818
Submitted by: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>


# 4fc93544 14-May-2000 Kris Kennaway <kris@FreeBSD.org>

Update for OpenSSH 2.1


# 1ef4beca 26-Mar-2000 Kris Kennaway <kris@FreeBSD.org>

Update for latest OpenSSH


# aa77fdaa 03-Mar-2000 John Hay <jhay@FreeBSD.org>

MFI: Make ssh and sshd link in the krb5 part of make release.

Reviewed by: markm


# e1eaf14c 28-Feb-2000 Mark Murray <markm@FreeBSD.org>

New distribution names.


# 8df7a1fa 25-Feb-2000 Peter Wemm <peter@FreeBSD.org>

Don't pull in libRSAglue for the rsaref case. Since this is linked
dynamically by default, we use the dlopen() calls to load librsaref.so
on US code trees.


# c23e256e 24-Feb-2000 Mark Murray <markm@FreeBSD.org>

Add the OpenSSH userland-building Makefiles.