aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* MFV: less v710.Xin LI14 hours1-1/+0
| | | | MFC after: 1 week
* Retire dialogDag-Erling Smørgrav2026-07-071-1/+0
| | | | | | | | | | This is the last remaining piece of GPL software in the base system. The installer transitioned to bsddialog four years ago, and the last remaining dialog consumer, dpv, was turned off more than two years ago. Retire dpv, libdpv, libfigpar (used only by dpv), and dialog itself. Reviewed by: dteske Differential Revision: https://reviews.freebsd.org/D55424
* pkgconf: match the update to version 2.9.93Pierre Pronchery2026-07-011-0/+1
| | | | | | | | | | This update brings spdxtool(1), with the ability to generate software bill of material files (SBOM) in the SPDX 3.0.1 format (JSON-LD). Reviewed by: markj Approved by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57953
* Revert "Retire dialog"Dag-Erling Smørgrav2026-06-291-0/+1
| | | | This reverts commit 5b2bdadeb6c25c10dac9722fd66a668e14d3b384.
* Retire dialogDag-Erling Smørgrav2026-06-291-1/+0
| | | | | | | | | This is the last remaining piece of GPL software in the base system. The installer transitioned to bsddialog four years ago, and the last remaining dialog consumer, dpv, was turned off more than two years ago. Retire dpv, libdpv, libfigpar (used only by dpv), and dialog itself. (cherry picked from commit 73bb4a92985d747462d866248c1e7623f7ff1a7f)
* pkgconf: import into the base systemPierre Pronchery2026-04-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | This introduces the following option: * MK_PKGCONF: determines if pkgconf and bomtool should be built The objective is to allow the creation of SBOM information while building FreeBSD's src tree. The build system cannot rely on the presence of bomtool (and eventually also spdxtool) in the build environment, except for having it as part of the src tree directly. The framework implementing the generation of SBOM files is under review in D56474. This will also help simplifying the build, with the introduction of another framework relying on the availability of pkgconf. Sponsored by: Alpha-Omega, The FreeBSD Foundation Reviewed by: bapt, philip Approved by: philip (mentor) Differential Revision: https://reviews.freebsd.org/D56404
* Complete removal of GNU diffDag-Erling Smørgrav2026-03-101-1/+1
| | | | | | Fixes: 9a44e42a2b8f ("Retire GNU diff3") Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D55423
* usr.bin: Exclude ELF Tool Chain cxxfilt buildEd Maste2026-03-061-1/+1
| | | | | | | | when LLVM_BINUTILS is enabled (which is the default). PR: 293610 Fixes: 5d757312ad59 ("build: Retire LLVM_CXXFILT option") Sponsored by: The FreeBSD Foundation
* build: Retire LLVM_CXXFILT optionEd Maste2026-03-051-2/+0
| | | | | | | | | | | | | | | | The LLVM_CXXFILT option was added when we used ELF Tool Chain tools by default. ELF Tool Chain's c++filt failed to demangle some symbols, so we added a special case to install LLVM's version and enabled it by default. The rest of the LLVM tools are now used by default, as of commit 9fa94e1c099d ("Turn on WITH_LLVM_CXXFILT by default"). Simplify the build logic by removing a special case and just include llvm-cxxfilt with the rest of the LLVM utilities. Reviewed by: dim Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55654
* src.opts.mk: Retire BSD_CPIO optionEd Maste2026-03-031-1/+1
| | | | | | | | | | | | | | Prior to commit 6973701a00e3 ("1. Make the BSD version of cpio the default [1]") GNU cpio was installed unconditionally. The BSD_CPIO option was added when we introduced the BSD licensed, libarchive-based cpio, to support installation of GNU cpio, libarchive cpio, or both. GNU cpio was removed long ago and there is no longer a need for this option. We can just install BSD cpio unconditionally. Reviewed by: des Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55467
* Retire GNU diff3Ed Maste2026-02-221-2/+0
| | | | | | | | | | | | We added the option to build BSD diff3 in commit 2201f7c49f11 ("Build BSD diff3 if GNU diff3 is disabled.") and made it the default in 4d5c434ed16e ("diff3: use bsd diff3 by default") after resolving deficiencies relative to GNU diff3. Thus, we can now remove the GNU diff3 build infrastructure and source. Reviewed by: bapt, ziaee Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46878
* build: Remove duplicate SUBDIR entriesMark Johnston2026-01-121-2/+0
| | | | Fixes: f74f891581bc ("src.opts: Introduce MK_SOUND")
* src.opts: Introduce MK_SOUNDChristos Margiolis2026-01-121-0/+2
| | | | | | | | PR: 291853 Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: zarychtam_plan-b.pwste.edu.pl, markj Differential Revision: https://reviews.freebsd.org/D54456
* Resurrect standalone commandDag-Erling Smørgrav2025-12-231-0/+1
| | | | | | | | | | | While command(1) is now classified by POSIX as an intrinsic utility and no longer required to exist as a standalone program, it turns out that we still have a use for it (cf. env(1)), so resurrect it. PR: 291879 Fixes: 4100bd6caa66 ("usr.bin: Remove intrinsic utilities") Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D54341
* usr.bin: Remove intrinsic utilitiesDag-Erling Smørgrav2025-12-191-2/+1
| | | | | | | | | | | | | | | | | These utilities can only function correctly if implemented as shell builtins and exist only because POSIX previously required them. As of POSIX 2024, they have all been reclassified as intrinsic utilities and are no longer required to exist in PATH. We can therefore retire them. Cf. XBD 1.7, XRAT C.1.8, Austin Group bug 854. Note that kill(1) is also considered an intrinsic utility (because only the shell can interpret job IDs correctly), but we have a working standalone implementation, which we will keep. PR: 291686 Relnotes: yes Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D54239
* Remove MK_GSSAPILexi Winter2025-08-201-1/+1
| | | | | | | | | | | | | | | For MIT Kerberos, MK_GSSAPI has no meaning: GSSAPI is a required part of Kerberos and is always built if MK_KERBEROS is enabled. Backport this behaviour to Heimdal so it works the same way. While here, change Heimdal's libcom_err and compile_et to be selected by MK_KERBEROS, not MK_KERBEROS_SUPPORT, since these are part of Kerberos and third-party users might need it even if Kerberos support is disabled in the base system. This means MK_KERBEROS_SUPPORT installs the same files with both MIT and Heimdal. Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D51859
* shar: remove from the tree well in advance of the 15.0 releaseKyle Evans2025-07-101-1/+0
| | | | | | | | | | | We have had deprecation notice in the manpage for nearly six months, and it is also present both in 13.5 and 14.3. tar(1) can supply this functionality for those that truly need it, and cy@ has also created a sysutils/freebsd-shar port for this version of a frontend to live on in ports -- this port has been available since December 18, 2024. Reviewed by: allanjude, cy, emaste, jrm Differential Revision: https://reviews.freebsd.org/D50925
* compile_et: The Heimdal compile_et is not needed with MIT KRB5Cy Schubert2025-06-161-0/+2
| | | | | | MIT KRB5 provides its own compile_et, built by krb5/util/compile_et. Sponsored by: The FreeBSD Foundation
* Add ts(1) commandJuraj Lutter2025-05-271-0/+1
| | | | | | | | | | | | Add /usr/bin/ts, a command that timestamps each line of its stdin before it is being printed to stdout. A typical use case is to profile shell scripts. Obtained from: OpenBSD 7.2 Relnotes: yes Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D35694
* runat: Add a runat(1) utility similar to the Solaris oneRick Macklem2025-05-061-0/+1
| | | | | | | | | Solaris has a utility called runat(1) that runs a shell command on a named attribute directory. This utility is modelled after that one. Reviewed by: kib (earlier version) Differential Revision: https://reviews.freebsd.org/D49850
* strings: Unconditionally install ELF Tool Chain's stringsEd Maste2025-05-051-7/+1
| | | | | | | | | | | | | | | | | | | llvm-strings may consume a large amount of memory while reading the input file before producing any output. ELF Tool Chain's strings is small and lightweight, and we always install strings regardless of WITH_/WITHOUT_TOOLCHAIN settings (as it is useful in many contexts). Return to always installing ELF Tool Chain's version of strings. This reverts commit 81fa5c4a828bec9f1ead280c59c31bd423e6eeea. This reverts commit 7ca3db1999cd967f9d6d7b259aa7af54aae14a5f. PR: 286605 Reported by: olivier Reviewed by: olivier, brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50084
* elfcopy: Restore upstream nameEd Maste2025-04-111-2/+2
| | | | | | | | | | ELF Tool Chain's objcopy-equivalent is called elfcopy. Restore the upstream name in our build infrastructure to make it more clear where different binary utility components come from. Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49784
* boot: Always use ELF Tool Chain elfcopy for EFI buildsEd Maste2025-03-231-1/+2
| | | | | | | | | | | | | | | | We now use llvm-objcopy by default (as of commit 1cae7121c667), but it does not support efi-app-x86_64 and similar ouptut formats (for more detail see LLVM issue 108609[1]). Go back to installing ELF Tool Chain's version of objcopy as elfcopy (the standard upstream name) and use it for EFI builds. [1] https://github.com/llvm/llvm-project/issues/108609). PR: 280771 Reviewed by: andrew Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49362
* usr.bin/Makefile: always build ELF Tool Chain strings(1)Ed Maste2025-03-201-0/+6
| | | | | | | | | | | | | | | | | | | strings(1) is not conditional on WITH_/WITHOUT_TOOLCHAIN, as it is a small utility that is also useful outside of the toolchain context. As of commit 1cae7121c667 we switched to WITH_LLVM_BINUTILS by default. After this change building world with default options but installing WITHOUT_TOOLCHAIN failed, because we would build LLVM's strings but attempt to install ELF Tool Chain's version, which did not exist. Address this by always including ELF Tool Chain strings in non-install make targets, so that it will be available if options are changed at install time. PR: 285556 Reported by: Michael Butler Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D49425
* Remove publickey(5) stuffEmmanuel Vadot2025-01-221-4/+0
| | | | | | | | This uses DES and it's likely that nobody uses that in 2025. If somebody uses this we help them by deprecating and removing this. Reviewed by: bapt, emaste Differential Revision: https://reviews.freebsd.org/D30683
* usr.bin/bc: remove OpenBSD derived bc and dc commandsStefan Eßer2024-11-241-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | In 2020, an improved implementation of the bc and dc commands developed by Gavin D. Howard has been imported into FreeBSD. It has replaced the OpenBSD-derived versions of these commands in all currently supported FreeBSD releases. The OpenBSD versions could still be built using the WITHOUT_GH_BC option. There have been no reports of problems or unexpected deviations from the OpenBSD version for some time, therefore keeping the OpenBSD version is no longer required in FreeBSD. This commit removes the option to build the OpenBSD version and corresponding source files from -CURRENT. No MFC is planned, all currently released FreeBSD versions should retain the build option. The WITHOUT_GH_BC option is no longer accepted and will cause make buildworld to fail. Reviewed by: des, emaste Approved by: des Relnotes: yes Differential Revision: https://reviews.freebsd.org/D46876
* mididump(1): Initial revisionChristos Margiolis2024-10-181-0/+1
| | | | | | | | | A new utility which dumps MIDI 1.0 events in real-time. Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: dev_submerge.ch Differential Revision: https://reviews.freebsd.org/D46418
* Build BSD diff3 if GNU diff3 is disabled.Dag-Erling Smørgrav2024-10-021-0/+3
| | | | | | | MFC after: 3 weeks Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D46799
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* mac_do: add a new MAC/do policy and mdo(1) utilityBaptiste Daroussin2024-05-221-0/+1
| | | | | | | | | | | | | | | | | | | This policy enables a user to become another user without having to be root (hence no setuid binary). it is configured via rules using sysctl security.mac.do.rules For example: security.mac.do.rules=uid=1001:80,gid=0:any The above rule means the user identifier by the uid 1001 is able to become user 80 Any user of the group 0 are allowed to become any user on the system. The mdo(1) utility expects the MAC/do policy to be installed and its rules defined. Reviewed by: des Differential Revision: https://reviews.freebsd.org/D45145
* usr.bin: Make lorder conditional on MK_TOOLCHAIN.Dag-Erling Smørgrav2024-04-011-1/+1
| | | | | | MFC after: 1 week Reviewed by: allanjude, markj Differential Revision: https://reviews.freebsd.org/D44558
* posixmqcontrol(1): manage posix message queuesRick Parrish2024-02-231-0/+1
| | | | | | Reviewed by: kib, paumma MFC after: 1 week Differential revision: https://reviews.freebsd.org/D43845
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-271-1/+0
| | | | | | | | 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
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* cpuset(8): move to /bin/Enji Cooper2023-08-111-1/+0
| | | | | | | | | | | | | | | | | | | | | | Summary: This change moves /usr/bin/cpuset to /bin/cpuset so it is more readily available on hosts where the /usr partition might not be mounted at the time / has been mounted. Remove some complexity from rc.subr(8) since /bin is assumed to always be present if/when / is mounted. MFC after: 2 weeks MFC with: 0661f93892a2, 271d552379af Test Plan: - Test out rc.subr change. - Confirm that the installation logic does what's needed. Relnotes: yes (moving cpuset may impact strict file permissions/mode checking) Reviewers: kevans Subscribers: imp Differential Revision: https://reviews.freebsd.org/D40057
* genl: add new command to list genetlink(4)Baptiste Daroussin2023-05-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | This commands list genetlink protocols and its operations and capabilities Name: nlctrl ID: 0x10, Version: 00, header size: 2, max attributes: 10 supported operations: - ID: 0x3, Capabilities: 0xe (can modify; can get/dump; has policy) multicast groups: - ID: 0x30, Name: notify Name: carp ID: 0x11, Version: 00, header size: 2, max attributes: 2 supported operations: - ID: 0x1, Capabilities: 0xe (can modify; can get/dump; has policy) - ID: 0x2, Capabilities: 0xb (requires admin permission; can modify; has policy) Reviewed by: melifaro Differential Revision: https://reviews.freebsd.org/D40330
* llvm-strings: Install as strings when WITH_LLVM_BINUTILS=YESCameron Katri2023-04-211-1/+1
| | | | | Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D32065
* NgATM: Remove netgraph ATM supportBrooks Davis2023-03-091-1/+0
| | | | | | | | | | Most ATM support was removed prior to FreeBSD 12. The netgraph support was kept as it was less intrusive, but it is presumed to be unused. Reviewed by: manu Relnotes: yes Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D38879
* timeout: Move from /usr/bin to /binMateusz Piotrowski2023-02-021-1/+0
| | | | | | | | | | | | | | | | | | | | | timeout(1) is used by /etc/rc.d/zfskeys. Unfortunately, having timeout(1) installed in /usr/bin causes problems when /usr is an encrypted ZFS partition. Implementing timeout(1) in sh(1) is not trivial. A more elegant solution is to move timeout(1) to /bin so that it is available to early services in the boot process. PR: 265221 Reviewed by: allanjude, des, imp Approved by: allanjude, des, imp Reported by: Ivan <r4@sovserv.ru> Fixes: 33ff39796ffe Add zfskeys rc.d script for auto-loading encryption keys MFC after: 1 week Relnotes: yes Sponsored by: Modirum MDPay Sponsored by: Klara Inc. Differential Revision: https://reviews.freebsd.org/D38344
* Retire WITHOUT_CXX optionEd Maste2023-01-271-5/+3
| | | | | | | | | | | | Several important base system components are written in C++, and the WITHOUT_CXX option produced a system that was not fully functional. Just accept this, and remove the option to build without C++ support. This reverts commit adc3c128c6603054586a993d117e5dd808deac17. Reviewed by: brooks, kevans, jhb (earlier) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D33108
* rs: Convert to C++ to convert elem to a std::vector<char *>.John Baldwin2022-11-161-1/+1
| | | | | | | | This also updates various indices and counters from int to size_t to pacify resulting -Wsign-compare warnings. Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D36833
* usr.bin: hook wg(8) up to the buildKyle Evans2022-10-291-0/+1
| | | | | wg(8) is used to manage WireGuard interfaces; see wg(4) and wg(8) both for more details and usage examples.
* Put OPIE to rest.Dag-Erling Smørgrav2022-10-021-3/+0
| | | | Differential Revision: https://reviews.freebsd.org/D36592
* Remove minigzip from the base system.Xin LI2022-08-141-1/+0
| | | | | | | | | | | The minigzip(1) was initially introduced as a minimal replacement of GNU gzip(1). We have replaced the GNU gzip(1) with the zlib based, GPL-free implementation, and minigzip(1) is not being used anywhere in the base system, so just remove it. Relnotes: yes Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D35979
* bintrans: move files to a new directoryPiotr Pawel Stefaniak2022-04-181-1/+1
| | | | And reflect the change in various places.
* Modularize uuencode and uudecode by wrapping them in bintrans.cPiotr Pawel Stefaniak2022-04-181-1/+0
| | | | | | | | | | | | | | | | | | | | | The program will be installed as bintrans, uuencode, uudecode, b64encode, and b64decode and will be responsible for running the coders according to their historical behavior. Additionally, bintrans will be able to take a parameter designating the coder and accept all its options in this form: bintrans <coder> [options] and the behavior should be the same as if <coder> [options] was invoked. This has the advantage that adding coders won't require installing them as binaries. Move uudecode files to uuencode since the latter is the one that provides the manual page. Reviewed by: delphij (previous version) Differential Revision: https://reviews.freebsd.org/D32943
* bsddialog: new utility for TUI dialogs and widgetsAlfonso S. Siciliano2022-03-061-0/+1
| | | | | Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D34101
* beep(1): Initial version of utility to create terminal beep via soundcard.Hans Petter Selasky2021-11-041-0/+1
| | | | | | | Reviewed by: imp@, emaste@ and pstef@ Differential Revision: https://reviews.freebsd.org/D32672 MFC after: 1 week Sponsored by: NVIDIA Networking
* Add WITH_LLVM_BINUTILS to install LLVM binutils instead of ElftoolchainAlex Richardson2021-09-061-5/+11
| | | | | | | | | | | | | | | | | | | When WITH_LLVM_BINUTILS is set, we will install the LLVM binutils as ar/ranlib/nm/objcopy/etc. instead of the elftoolchain ones. Having the LLVM binutils instead of the elftoolchain ones allows us to use features such as LTO that depend on binutils that understand LLVM IR. Another benefit will be an improved user-experience when compiling with AddressSanitizer, since ASAN does not symbolize backtraces correctly if addr2line is elftoolchain addr2line instead of llvm-symbolizer. See https://lists.freebsd.org/archives/freebsd-toolchain/2021-July/000062.html for more details. This is currently off by default but will be turned on by default at some point in the near future. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D31060
* Remove mkcsmapper_static and mkesdb_static from build-toolsAlex Richardson2021-08-021-6/+0
| | | | | | | Build them as part of the bootstrap-tools phase instead. Reviewed by: emaste (no objections) Differential Revision: https://reviews.freebsd.org/D28181