History log of /freebsd-current/usr.bin/xinstall/Makefile
Revision Date Author Comments
# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

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


# e64780fb 08-Jul-2023 Martin Matuska <mm@FreeBSD.org>

xinstall: do not use copy_file_range(2) when BOOTSTRAPPING

Reported by: arichardson


# c7a8e8d3 03-Aug-2022 Dag-Erling Smørgrav <des@FreeBSD.org>

xinstall: make md5 and ripemd160 conditional

Sponsored by: Klara, Inc.


# 93c43690 14-Dec-2021 Emmanuel Vadot <manu@FreeBSD.org>

pkgbase: Put more binaries/lib in runtime

Move some needed binaries/libs from FreeBSD-utilities to FreeBSD_runtime.
This is everything needed to boot to multiuser with FreeBSD-rc installed.

MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D33435


# 52918a7b 20-Nov-2019 Alex Richardson <arichardson@FreeBSD.org>

Allow boostrapping xinstall on Linux

Linux does not have st_flags so we have to avoid using it there.

Reviewed By: emaste, imp
Differential Revision: https://reviews.freebsd.org/D22446


# 5f401182 16-Jan-2018 Alex Richardson <arichardson@FreeBSD.org>

Allow xinstall and makefs to be crossbuilt on Linux and Mac

I need these tools in order to install the crossbuilt FreeBSD and create a
disk image. Linux does not have a st_flags in struct stat so unfortunately
I need a bunch of ugly ifdefs. The resulting binaries allow me to
sucessfully install a MIPS64 world and create a disk-image that boots.

Reviewed By: brooks, bdrewery, emaste
Approved By: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D13307


# d511b20a 02-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Add HAS_TESTS to all Makefiles that are currently using the
`SUBDIR.${MK_TESTS}+= tests` idiom.

This is a follow up to r321912.


# 4b330699 02-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Convert traditional ${MK_TESTS} conditional idiom for including test
directories to SUBDIR.${MK_TESTS} idiom

This is being done to pave the way for future work (and homogenity) in
^/projects/make-check-sandbox .

No functional change intended.

MFC after: 1 weeks


# a35f04fb 12-Mar-2017 Warner Losh <imp@FreeBSD.org>

Adopt SRCTOP in usr.bin

Prefer ${SRCTOP}/foo over ${.CURDIR}/../../foo and ${SRCTOP}/usr.bin/foo
over ${.CURDIR}/../foo for paths in Makefiles.

Differential Revision: https://reviews.freebsd.org/D9932
Sponsored by: Netflix
Silence on: arch@ (twice)


# 1f9b8f8e 08-May-2016 Jilles Tjoelker <jilles@FreeBSD.org>

install: Add some tests.


# 20f68058 18-Nov-2015 Bryan Drewery <bdrewery@FreeBSD.org>

Remove unneeded libmd from bootstrap-tools (reverting r246784).

The bootstrap-tools are supposed to be host tools, which in most cases, use
host headers and libraries. As such, directly including the src tree's headers
for libmd here causes the need to link libmd in since it will be built with
the new symbols (which /usr/lib/libmd.so) won't have unless it is new enough.
During the target build in buildworld the target headers are staged into
WORLDTMP and used via --sysroot, allowing the target xinstall to be built with
the new/target libmd.

The .PATH here was also not doing anything since xinstall does not use libmd
source files.

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


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

Convert to usr.bin/ to LIBADD
Reduce overlinking


# 0af99eef 14-Feb-2013 Hiroki Sato <hrs@FreeBSD.org>

- Fix libmd dependency. It is needed in the bootstrap library list because
usr.bin/xinstall depends on it.
- Remove libutil from usr.bin/xinstall/Makefile. No symbol was actually used.

Reviewed by: brooks


# f2b19f9e 18-Jan-2013 Brooks Davis <brooks@FreeBSD.org>

Introduce six new options from NetBSD:
* -M <metalog> Log metadata in mtree format.
* -D <destdir> Log paths relative to <destdir>.
* -h <hash> Log digest of type <hash>.
* -T <tags> Specify which mtree tags to log.
* -l <linkflag> Create hard or symbolic links (allows logging).
* -U Install without root privileges (owner, group, mode,
and flags can be logged via -M

NOTE: In the interest of compatibility with NetBSD and because it is the
obvious letter, the nearly useless -M option (disable mmap) has been
repurposed.

Sponsored by: DARPA, AFRL
Obtained from: NetBSD
Reviewed by: bz


# a6a1856e 11-Jan-2013 Brooks Davis <brooks@FreeBSD.org>

Implement the -N <dbdir> option which allows an alternate passwd and
group file to be used. This is useful for installing on systems where
a user or group does not currently exist.

Sponsored by: DARPA, AFRL
Obtained from: NetBSD
MFC after: 5 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.


# 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.


# b7946da9 02-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


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

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


# e80dde60 25-Jan-2005 Suleiman Souhlal <ssouhlal@FreeBSD.org>

- Make WARNS?= 6 clean
- Add WARNS?= 6

Approved by: stefanf, grehan (mentor)


# 5d8fdf31 17-Mar-2004 Ruslan Ermilov <ru@FreeBSD.org>

Trust bsd.prog.mk to set SRCS correctly.


# 30aaff11 05-Apr-2003 Warner Losh <imp@FreeBSD.org>

Migrate to a new way of dealing with building from old revisions of
FreeBSD. This method attempts to centralize all the necessary hacks
or work arounds in one of two places in the tree (src/Makefile.inc1
and src/tools/build). We build a small compatibility library
(libbuild.a) as well as selectively installing necessary include
files. We then include this directory when building host binaries.

This removes all the past release compatibilty hacks from various
places in the tree. We still build on tip of stable and current. I
will work with those that want to support more, although I anticipate
it will just work.

Many thanks to ru@, obrien@ and jhb@ for providing valuable input at
various stage of implementation, as well as for working together to
positively effect a change for the better.


# 40c6b893 13-Nov-2002 Ruslan Ermilov <ru@FreeBSD.org>

Take __FreeBSD_version into account when BOOTSTRAPPING.


# e35f9517 08-Feb-2002 Mark Murray <markm@FreeBSD.org>

Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.


# 7f96dac8 12-Dec-2001 Ruslan Ermilov <ru@FreeBSD.org>

More "const" poisoning, and only use NO_WERROR if we're bootstrapping.


# 7423f8b1 11-Dec-2001 Mark Murray <markm@FreeBSD.org>

WARNS=2, use __FBSDID(), set NO_WERROR, as there are "dirty" files used
during the bootstrap phase.


# e08effda 17-Sep-2001 Ruslan Ermilov <ru@FreeBSD.org>

When bootstrapping install(1), libc may not have the strtofflags(3) support.


# a73313a6 02-Apr-2001 Ruslan Ermilov <ru@FreeBSD.org>

Do not override `realinstall' target, use ${PROGNAME}.


# d92a0c0b 27-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

Do not override the ``install'' target.


# dc12be52 27-Mar-2001 Ruslan Ermilov <ru@FreeBSD.org>

MAN[1-9] -> MAN.


# 141d77b8 17-Jun-2000 Josef Karthauser <joe@FreeBSD.org>

Switch over to using the new fflagstostr and strtofflags library calls.


# 418d67b0 05-Feb-2000 Josef Karthauser <joe@FreeBSD.org>

Revert part of the last commit, remove {g|s}etflags from the libc
interface, and statically link them to the programs using them.
These functions, upon reflection and discussion, are too generically
named for a library interface with such specific functionality.
Also the api that they use, whilst ok for private use, isn't good
enough for a libc function.

Additionally there were complications with the build/install-world
process. It depends heavily upon xinstall, which got broken by
the change in api, and caused bootstrap problems and general mayhem.

There is work in progress to address future problems that may be
caused by changes in install-chain tools, and better names for
{g|s}etflags can be derived when some future program requires them.
For now the code has been left in src/lib/libc/gen (it started off
in src/bin/ls).

It's important to provide library functions for manipulating file
flag strings if we ever want this interface to be adopted outside
of the source tree, but now isn't necessarily the right moment
with 4.0-release just around the corner.

Approved: jkh


# 18c0eedd 27-Jan-2000 Josef Karthauser <joe@FreeBSD.org>

Historically file flags (schg, uschg, etc) have been converted from
string to u_long and back using two functions, flags_to_string and
string_to_flags, which co-existed with 'ls'. As time has progressed
more and more other tools have used these private functions to
manipulate the file flags.

Recently I moved these functions from /usr/src/bin/ls to libutil,
but after some discussion with bde it's been decided that they
really ought to go in libc.

There are two already existing libc functions for manipulating file
modes: setmode and getmode. In keeping with these flags_to_string
has been renamed getflags and string_to_flags to setflags.

The manual page could probably be improved upon ;)


# ed92ab90 05-Jan-2000 Bruce Evans <bde@FreeBSD.org>

Actually remove unrequired SRCS.


# cd2a718f 01-Jan-2000 Josef Karthauser <joe@FreeBSD.org>

Added missing DPADD's. Removed unrequired SRCS's.

Obtained from: bde


# edc2844c 30-Dec-1999 Josef Karthauser <joe@FreeBSD.org>

Moved flags_to_string and string_to_flags into libutil. It's used in
many places nowadays.


# 9c0dc173 24-Jul-1995 Bruce Evans <bde@FreeBSD.org>

Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.


# cee42592 04-Sep-1994 Andreas Schulz <ats@FreeBSD.org>

Reviewed by:
Submitted by:
Get the man page installed. Does anyone know the reason for the name
xinstall instead of install for this directory ? Would life more
easy to get this whole thing under install.


# b35bdc40 05-Aug-1994 Garrett Wollman <wollman@FreeBSD.org>

More merry makefile munging for man page compatability.


# 56dcbac9 31-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

Add ${COPY} on install command so that the file in obj does
not get removed when running make install.


# 9f23196c 30-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

Cleanup so that make install can run, many install: maninstall changed
to just install:, sperious targets and CLEANFILES removed.


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources