aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/xinstall/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* xinstall: fix dounpriv logic, add testsDag-Erling Smørgrav2022-11-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: Klara, Inc. MFC after: 1 week (cherry picked from commit 36d67475f5497664d33c41c2f6745dcb30b0ec42) xinstall: make md5 and ripemd160 conditional Sponsored by: Klara, Inc. (cherry picked from commit c7a8e8d372b212c97dde6ce2731db27aa0b2201c) xinstall: use dynamic bufsize as in cat(1) / cp(1). Sponsored by: Klara, Inc. (cherry picked from commit 54d8d0fe12a4996427923048ab4261819774fbd4) xinstall: alphabetize: upper case precedes lower. Sponsored by: Klara, Inc. (cherry picked from commit f44e2577120c60cd92f685037bbb63127e0091e4)
* pkgbase: Put more binaries/lib in runtimeEmmanuel Vadot2022-01-051-0/+2
| | | | | | | | | | | 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 (cherry picked from commit 93c43690960274dd3bb67b1ee0f1dd3ca4d13def)
* Allow boostrapping xinstall on LinuxAlex Richardson2019-11-201-1/+0
| | | | | | | | | | 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 Notes: svn path=/head/; revision=354901
* Allow xinstall and makefs to be crossbuilt on Linux and MacAlex Richardson2018-01-161-0/+1
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=328064
* Add HAS_TESTS to all Makefiles that are currently using theEnji Cooper2017-08-021-0/+1
| | | | | | | | | `SUBDIR.${MK_TESTS}+= tests` idiom. This is a follow up to r321912. Notes: svn path=/projects/make-check-sandbox/; revision=321914
* Convert traditional ${MK_TESTS} conditional idiom for including testEnji Cooper2017-08-021-3/+1
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=321912
* Adopt SRCTOP in usr.binWarner Losh2017-03-121-3/+3
| | | | | | | | | | | | 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) Notes: svn path=/head/; revision=315170
* install: Add some tests.Jilles Tjoelker2016-05-081-0/+6
| | | | Notes: svn path=/head/; revision=299244
* Remove unneeded libmd from bootstrap-tools (reverting r246784).Bryan Drewery2015-11-181-2/+0
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=291026
* Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-2/+1
| | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* - Fix libmd dependency. It is needed in the bootstrap library list becauseHiroki Sato2013-02-141-2/+4
| | | | | | | | | | usr.bin/xinstall depends on it. - Remove libutil from usr.bin/xinstall/Makefile. No symbol was actually used. Reviewed by: brooks Notes: svn path=/head/; revision=246784
* Introduce six new options from NetBSD:Brooks Davis2013-01-181-2/+2
| | | | | | | | | | | | | | | | | | | | | * -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 Notes: svn path=/head/; revision=245617
* Implement the -N <dbdir> option which allows an alternate passwd andBrooks Davis2013-01-111-0/+8
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=245312
* Build usr.bin/ with WARNS=6 by default.Ed Schouten2010-01-021-1/+0
| | | | | | | Also add some missing $FreeBSD$ to keep svn happy. Notes: svn path=/head/; revision=201386
* - Make WARNS?= 6 cleanSuleiman Souhlal2005-01-251-0/+1
| | | | | | | | | - Add WARNS?= 6 Approved by: stefanf, grehan (mentor) Notes: svn path=/head/; revision=140817
* Trust bsd.prog.mk to set SRCS correctly.Ruslan Ermilov2004-03-171-1/+0
| | | | Notes: svn path=/head/; revision=127111
* Migrate to a new way of dealing with building from old revisions ofWarner Losh2003-04-051-7/+0
| | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=113136
* Take __FreeBSD_version into account when BOOTSTRAPPING.Ruslan Ermilov2002-11-131-1/+3
| | | | Notes: svn path=/head/; revision=106852
* Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.Mark Murray2002-02-081-1/+0
| | | | Notes: svn path=/head/; revision=90416
* More "const" poisoning, and only use NO_WERROR if we're bootstrapping.Ruslan Ermilov2001-12-121-1/+1
| | | | Notes: svn path=/head/; revision=87724
* WARNS=2, use __FBSDID(), set NO_WERROR, as there are "dirty" files usedMark Murray2001-12-111-0/+1
| | | | | | | during the bootstrap phase. Notes: svn path=/head/; revision=87685
* When bootstrapping install(1), libc may not have the strtofflags(3) support.Ruslan Ermilov2001-09-171-0/+6
| | | | Notes: svn path=/head/; revision=83571
* Do not override `realinstall' target, use ${PROGNAME}.Ruslan Ermilov2001-04-021-6/+3
| | | | Notes: svn path=/head/; revision=75084
* Do not override the ``install'' target.Ruslan Ermilov2001-03-271-1/+1
| | | | Notes: svn path=/head/; revision=74862
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-2/+1
| | | | Notes: svn path=/head/; revision=74848
* Switch over to using the new fflagstostr and strtofflags library calls.Josef Karthauser2000-06-171-2/+1
| | | | Notes: svn path=/head/; revision=61749
* Revert part of the last commit, remove {g|s}etflags from the libcJosef Karthauser2000-02-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=57003
* Historically file flags (schg, uschg, etc) have been converted fromJosef Karthauser2000-01-271-2/+0
| | | | | | | | | | | | | | | | | | | | 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 ;) Notes: svn path=/head/; revision=56692
* Actually remove unrequired SRCS.Bruce Evans2000-01-051-1/+0
| | | | Notes: svn path=/head/; revision=55476
* Added missing DPADD's. Removed unrequired SRCS's.Josef Karthauser2000-01-011-0/+1
| | | | | | | Obtained from: bde Notes: svn path=/head/; revision=55302
* Moved flags_to_string and string_to_flags into libutil. It's used inJosef Karthauser1999-12-301-2/+3
| | | | | | | many places nowadays. Notes: svn path=/head/; revision=55270
* Change `install' to `${INSTALL}' so that default install flags can beBruce Evans1995-07-251-1/+1
| | | | | | | specified in the top level Makefiles. Notes: svn path=/head/; revision=9701
* Reviewed by:Andreas Schulz1994-09-041-1/+1
| | | | | | | | | | 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. Notes: svn path=/head/; revision=2496
* More merry makefile munging for man page compatability.Garrett Wollman1994-08-051-1/+1
| | | | Notes: svn path=/head/; revision=1866
* Add ${COPY} on install command so that the file in obj doesRodney W. Grimes1994-05-311-1/+1
| | | | | | | not get removed when running make install. Notes: svn path=/head/; revision=1661
* Cleanup so that make install can run, many install: maninstall changedRodney W. Grimes1994-05-301-1/+1
| | | | | | | to just install:, sperious targets and CLEANFILES removed. Notes: svn path=/head/; revision=1637
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-271-0/+12
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590