aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* usr.sbin: 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
* bsdconfig: always build and installBaptiste Daroussin2023-10-051-1/+1
| | | | it does not depend on dialog(1) anymore
* ofwdump: install dependent on MK_FDTMitchell Horne2023-10-021-0/+1
| | | | | | | | | | | | | The utility depends on the presence of the openfirm(4) pseudo-device, which is gated by the FDT kernel option. The MK_FDT knob is correctly set to "yes" for FDT/OFW-enabled platforms (powerpc* included); use it to install the utility and eliminate the arch-specific Makefile logic. No functional change intended. Reviewed by: emaste, pkubaj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41977
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* fwget: Introduce new utilityEmmanuel Vadot2023-05-011-0/+1
| | | | | | | | | | | This script's goal is to check the system for peripherals that needs firmware and install the needed packages for them. For now it only support pci subsystem and only video classes for AMD and Intel GPUs. Reviewed by: bapt Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D39825
* Add efiwake toolJohannes Totz2023-04-281-1/+1
| | | | | | Reviewed by: kib MFC after: 1 week Differential revision: https://reviews.freebsd.org/D36714
* Remove portsnap(8)Colin Percival2023-04-231-1/+0
| | | | | | | | | | | | | | | Rather than having a tool in the FreeBSD base system for obtaining the FreeBSD ports tree, users are encouraged to `pkg install git` and then `git clone https://git.FreeBSD.org/ports.git /usr/ports`. The portsnap servers will continue operating until FreeBSD 13 reaches its End-of-Life, and portsnap is available from the ports tree as ports-mgmt/portsnap. Requested by: portmgr Relnotes: yes Differential Revision: https://reviews.freebsd.org/D39563 X-MFC: no
* hyperv: Build and install where supportedWarner Losh2023-02-011-0/+1
| | | | | | | | | | Remove the hard-coded dependency on HYPERV being only x86. Instead, 100% rely on MK_HYPERV. It's always right (since it's marked BROKEN (so set to "no") on architectures we don't support). Sponsored by: Netflix Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D38306
* Bring our tzcode up to date.Dag-Erling Smørgrav2023-01-101-0/+1
| | | | | | | | | | * Replay 2010[acflm] which had been merged but not recorded. * Merge 2010n. * Reorganize (unsplit) the code to match the upstream layout. * Merge 2022[cdefg]. MFC after: 1 week Sponsored by: Klara, Inc.
* Retire trpt(8).Gleb Smirnoff2022-12-021-1/+0
| | | | | | | | | trpt(8) was utility to pull TCP debugging data from the kernel originating back from 4.2BSD. It is not used nowadays by TCP developers. We have more powerful debugging facilities, e.g. the Dtrace probing, the TCP black box logging and siftr. Discussed with: rscheff, tuexen, rrs, jtl and others
* boottrace(8): small wrapper utilityMitchell Horne2022-02-221-0/+1
| | | | | | | | | | | | | This is a small program that when invoked will create start and stop boottrace entries via sysctl, and execute the desired command. Having this as an executable -- as opposed to some shell script invoking sysctl(8) -- allows the total resource usage recorded by the trace entries to include the child process. Reviewed by: 0mp, trasz (older version) Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D31929
* usr.sbin: add tcpsso to MakefileMichael Tuexen2022-02-091-0/+1
|
* Fix bsd.subdir.mk-related issues after 0a0f7486413cJessica Clarke2021-07-121-2/+2
| | | | | | | | | | | | | Since bsd.prog.mk includes bsd.obj.mk, and thus bsd.subdir.mk, we must ensure all our bsd.subdir.mk-affecting variables are set before including bsd.prog.mk. Since sbin's various Makefile.arch files add to SUBDIR this results in those not taking effect, and presumably we also end up not having buildworld as parallel as it should be due to the fact that SUBDIR_PARALLEL was not being set before including bsd.prog.mk. MFC with: 0a0f7486413c147d56808b38055c40c64cff61f5 Reviewed by: olivier Differential Revision: https://reviews.freebsd.org/D31125
* Add efitable(8), a userspace tool to fetch and parse EFI tablesPavel Balaev2021-07-031-1/+1
| | | | | | | | Only ESRT and PROP tables are handled at the moment. Submitted by: Pavel Balaev <pavel.balaev@3mdeb.com> MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D30104
* man: Build manpages for all architecturesFernando Apesteguía2021-06-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | Building and installing architecture-specific man pages only raises a number of problems: * The https://www.freebsd.org/cgi/man.cgi is incomplete. As an example, it does not show results for pae(4). The reason for this is that the cgi interface runs on FreeBSD amd64. * In FreeBSD amd64 some manual pages have broken X-refs. See hptrr(4) for an example. * Also, we have broken links in our Release Notes. This is a consequence of the first point. See https://www.freebsd.org/releases/13.0R/hardware/#proc-i386. Make MAN_ARCH default to 'all' so we build all the man pages for all the architectures. The difference in disk space is negligible. Also link architecture-specific man pages to their own section while keeping their own namespace. PR: 212290 Reported by: mj@bsdops.com Approved by: ceri@, wosch@ MFC after: 4 weeks
* pkgbase: Move ctld/ctladm to iscsi packageEmmanuel Vadot2021-06-191-3/+1
| | | | | | | | While here only compile both of them if WITH_ISCSI is set (this is the default). Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D30755 Sponsored by: Diablotin Systems
* ancontrol: Remove an(4) utilityEmmanuel Vadot2021-06-111-1/+0
| | | | | | | | | Last an(4) devices have been End Of Life and End Of Sale in 2007. Time to remove this driver. Differential Revision: https://reviews.freebsd.org/D30680 Reviewed by: imp (earlier version), emaste (earlier version) Sponsored by: Diablotin Systems
* Remove fmtree(8)Kyle Evans2021-03-021-1/+0
| | | | | | | | | | fmtree(8) deprecation was announced on February 12, 2021, and no longer built by default as of that date. The deprecation notice was merged back to stable/12 and stable/13 + releng/13.0. Continue with the plan by finishing the removal. Relnotes: yes
* nfs-over-tls: add user space daemons rpc.tlsclntd and rpc.tlsservdRick Macklem2021-02-181-0/+2
| | | | | | | | | | | | | | | | | | | The kernel changes needed for nfs-over-tls have been committed to main. However, nfs-over-tls requires user space daemons to handle the TLS handshake and other non-application data TLS records. There is one daemon (rpc.tlsclntd) for the client side and one daemon (rpc.tlsservd) for the server side, although they share a fair amount of code found in rpc.tlscommon.c and rpc.tlscommon.h. They use a KTLS enabled OpenSSL to perform the actual work and, as such, are only built when MK_OPENSSL_KTLS is set. Communication with the kernel is done via upcall RPCs done on AF_LOCAL sockets and the custom system call rpctls_syscall. Reviewed by: gbe (man pages only), jhb (usr.sbin/Makefile only) Comments by: jhb MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D28430 Relnotes: yes
* build: remove LIBPTHREAD/LIBTHR build optionsKyle Evans2021-01-221-2/+0
| | | | | | | | | | | | | | | | | | WITHOUT_LIBTHR has been broken for a little over five years now, since the xz 5.2.0 update introduced a hard liblzma dependency on libthr, and building a useful system without threading support is becoming increasingly more difficult. Additionally, in the five plus years that it's been broken more reverse dependencies have cropped up in libzstd, libsqlite3, and libcrypto (among others) that make it more and more difficult to reconcile the effort needed to fix these options. Remove the broken options. PR: 252760 Reviewed by: brooks, emaste, kib Differential Revision: https://reviews.freebsd.org/D28263
* Minor simplification of MK_PMC case in usr.sbin/MakefileAlex Richardson2021-01-201-2/+1
| | | | | | | MK_PMC is already guarded by MK_CXX in src.opts.mk, so we can actually merge it with the following SUBDIR statement after c1a3d7f20696. Suggested By: jrtc27
* Remove remaining uses of ${COMPILER_FEATURES:Mc++11}Alex Richardson2021-01-191-3/+1
| | | | | | | | | | All supported compilers have C++11 support so these checks can be replaced with MK_CXX guards. See also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252759 PR: 252759 Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D28234
* [pmc] whoops, remove spurious #'sAdrian Chadd2020-07-141-3/+3
| | | | | | | pointed out by gonzo@, thanks! Notes: svn path=/head/; revision=363176
* [hwpmc] Compile 'pmc' only if we have C++11.Adrian Chadd2020-07-141-3/+3
| | | | | | | | I noticed when compiling with ye olde gcc-6.3.0 on mips that it tripped over a lack of C++11 bits. This allows it to compile fine. Notes: svn path=/head/; revision=363174
* retire amd(8)Ed Maste2020-03-091-1/+0
| | | | | | | | | | | | | | autofs was introduced with FreeBSD 10.1 and is the supported method for automounting filesystems. As of r296194 the amd man page claimed that it is deprecated. Remove it from base now; the sysutils/am-utils port is still available if necessary. Discussed with: cy Relnotes: Yes Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=358821
* Remove simple_httpdKyle Evans2020-02-041-1/+0
| | | | | | | | | | | | | | simple_httpd was granted a reprieve from the picobsd removal based on having some reported user; it turns out this user isn't actually using the version in base and merging their changes would be difficult at this point, so the version in base will simply continue to rot. Retire it now, it may make a comeback to ports with the improved version. No notice issued because its current visibility has only been for ~3 months, and a notice has been previously issued about picobsd removal. Notes: svn path=/head/; revision=357543
* add valectl to the system commandsVincenzo Maffione2019-10-311-0/+1
| | | | | | | | | | | | | | The valectl(4) program is used to manage vale(4) switches. Add it to the system commands so that it can be used right away. This program was previously called vale-ctl, and stored in tools/tools/netmap Reviewed by: hrs, bcr, lwhsu, kevans MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D22146 Notes: svn path=/head/; revision=354229
* [2/3] Add certctl(8)Kyle Evans2019-10-021-0/+3
| | | | | | | | | | | | | | | This is a simple utility to hash all trusted on the system into /etc/ssl/certs. It also allows the user to blacklist certificates they do not trust. This work was done primarily by allanjude@, with minor contributions by myself. No objection from: secteam Differential Revision: https://reviews.freebsd.org/D16857 Notes: svn path=/head/; revision=352949
* Move httpd to simple_httpd...Kyle Evans2019-10-011-1/+1
| | | | | | | | | This avoids PATH conflicts with a real httpd, as a user will likely almost always prefer the more fully-featured httpd. This also lines up with the historical name of the program. Notes: svn path=/head/; revision=352935
* Move simple_httpd out of picobsd, add HTTPD option (default OFF)Kyle Evans2019-10-011-0/+1
| | | | | | | | | | | | | | | | | | picobsd/tinyware has had this compact HTTPD server for a long time, and some people do use it. Move it out into usr.sbin well in advance of any action being taken on picobsd. This has been gated behind an HTTPD option defaulted to *off*, primarily for two reasons: 1.) This code likely needs a good audit, as it's been living off in picobsd land for a long time, and 2.) We don't currently ship an httpd and this may not be a welcome surprise. Reviewed by: eugen Differential Revision: https://reviews.freebsd.org/D21724 Notes: svn path=/head/; revision=352927
* - Retire pc-sysinstall(8)Kris Moore2019-09-031-1/+0
| | | | | | | | | | https://reviews.freebsd.org/D21094 Submitted by: kmoore@FreeBSD.org Approved by: imp@FreeBSD.org Notes: svn path=/head/; revision=351781
* Remove NAND and NANDFS supportWarner Losh2019-06-251-2/+0
| | | | | | | | | | | | | | | | | | | | | NANDFS has been broken for years. Remove it. The NAND drivers that remain are for ancient parts that are no longer relevant. They are polled, have terrible performance and just for ancient arm hardware. NAND parts have evolved significantly from this early work and little to none of it would be relevant should someone need to update to support raw nand. This code has been off by default for years and has violated the vnode protocol leading to panics since it was committed. Numerous posts to arch@ and other locations have found no actual users for this software. Relnotes: Yes No Objection From: arch@ Differential Revision: https://reviews.freebsd.org/D20745 Notes: svn path=/head/; revision=349352
* Re-add new small tool trim(8) to delete contents for blocksEugene Grosbein2019-01-171-0/+1
| | | | | | | | | | | | on devices using wear-leveling algorithms as a few weeks passed after review and discussion of trim(8) ceased and we still have no utility to perform the job. Reviewed by: hackers@ MFC after: 2 weeks Notes: svn path=/head/; revision=343118
* Remove, the now very outdated, timed.George V. Neville-Neil2018-12-151-1/+0
| | | | | | | | | | Submitted by: Kyle Spiers ksspiers at gmail Reviewed by: bcr,brooks,bz,sbruno Relnotes: yes Differential Revision: https://reviews.freebsd.org/D18505 Notes: svn path=/head/; revision=342139
* Remove CTM from 13-CURRENT after the release of FreeBSD-12.0.Stefan Eßer2018-12-151-1/+0
| | | | | | | | | | | | | | | | | | The removal (and creation of a port) has been pre-announced in UPDATING 1 month ago. Packages are available for all supported FreeBSD vesions. I did not think that another entry in UPDATING is required to note the actual removal. No MFC is planned - CTM shall be kept in base for all releases up to 12.x. Reviewed by: rgrimes Approved by: imp, bcr (manpages) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D17935 Notes: svn path=/head/; revision=342126
* Add a pwm subsystem so we can configure pwm controller from kernel and userland.Emmanuel Vadot2018-12-121-0/+1
| | | | | | | | | | | The pwm subsystem consist of API for PWM controllers, pwmbus to register them and a pwm(8) utility to talk to them from userland. Reviewed by: oshgobo (capsicum), bcr (manpage), 0mp (manpage) Differential Revision: https://reviews.freebsd.org/D17938 Notes: svn path=/head/; revision=342003
* Remove trim(8) by multiple demands.Eugene Grosbein2018-12-011-1/+0
| | | | Notes: svn path=/head/; revision=341356
* Move trim(1) from usr.bin to usr.sbin to become trim(8).Eugene Grosbein2018-11-291-0/+1
| | | | | | | | Requested by: se MFC after: 1 month Notes: svn path=/head/; revision=341243
* Move pmc* bits behind MK_PMC to fix WITHOUT_PMC buildKyle Evans2018-11-051-4/+1
| | | | | | | | No objection from: mmacy MFC after: 3 days Notes: svn path=/head/; revision=340146
* re-enable pmcstat, pmccontrol, and pmcannotate for gcc4 buildsMatt Macy2018-09-141-4/+4
| | | | | | | | | | | | I had disabled building of the aforementioned targets due to warnings breaking tinderbox. This silences the warning and restores them to the build. Reported by: jhibbits Reviewed by: jhibbits Approved by: re (gjb) Notes: svn path=/head/; revision=338676
* Add spi(8), a utility for communicating with a device on a SPI bus fromIan Lepore2018-06-221-0/+1
| | | | | | | | | | userland, conceptually similar to what i2c(8) provides for i2c devices. Submitted by: Bob Frazier Differential Revision: https://reviews.freebsd.org/D15029 Notes: svn path=/head/; revision=335527
* MK_EFI - Add uefisign and friends to this knob and ensure that we don'tSean Bruno2018-06-191-1/+3
| | | | | | | | | | | try to build them if MK_OPENSSL is unset. Reviewed by: emaste imp kevans Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D15211 Notes: svn path=/head/; revision=335386
* Add a command that copies or migrates a data file from one DS to another.Rick Macklem2018-06-151-0/+1
| | | | | | | | | | This command can be used by a sysadmin to either copy or migrate a data file on one DS to another DS. Its main use is to recover data files onto a mirrored DS after the DS has been repaired and brought back online. Notes: svn path=/head/; revision=335236
* Add a command the displays and modifies the pNFS server's extended attribute.Rick Macklem2018-06-151-0/+1
| | | | | | | | | | | This command allows a sysadmin to display or modify the pnfsd.dsfile extended attribute used by the pNFS MDS server in various ways. Its main use is to set a DS's IP address to 0.0.0.0 when that DS has failed, so that it will not be used for the file when brought back online after being repaired. Notes: svn path=/head/; revision=335234
* Add an entry into the Makefile for pnfsdskill.Rick Macklem2018-06-151-0/+1
| | | | | | | | pnfsdskill was added by r335192. This commit adds an entry for it to the Makefile. Notes: svn path=/head/; revision=335193
* pmc: fix logic in skipping riscvMatt Macy2018-06-091-1/+1
| | | | Notes: svn path=/head/; revision=334867
* pmc: don't build on riscv where there's no kmod supportMatt Macy2018-06-091-1/+1
| | | | Notes: svn path=/head/; revision=334865
* pmc: convert native to jsonl and track TSC value of samplesMatt Macy2018-06-071-1/+1
| | | | | | | | | | | | | | | | | | - add '-j' options to filter to enable converting native pmc log format to json lines format to enable the use of scripts and external tooling % pmc filter -j pmc.log pmc.jsonl - Record the tsc value in sampling interrupts as opposed to recording nanotime when the sample is copied to a global log in hardclock - potentially many milliseconds later. - At initialize record the tsc_freq and the time of day to give us an offset for translating the tsc values in callchain records Notes: svn path=/head/; revision=334749
* hwpmc: log name->pid, name->tid mappingsMatt Macy2018-06-051-0/+2
| | | | | | | | | | | | | | By logging all threads and processes 'pmc filter' can now filter on process or thread name, relieving the user of the burden of determining which tid or pid was which when the sample was taken. % pmc filter -T if_io_tqg -P nginx pmc.log pmc-iflib.log % pmc filter -x -T idle pmc.log pmc-noidle.log Notes: svn path=/head/; revision=334647
* pmc: Add new sub-command structured "pmc" utilityMatt Macy2018-05-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will manage pmc functionality with a more manageable structure of subcommands rather than the gradually accreted spaghetti logic of overlapping flags that exists in pmcstat. This is intended to ultimately have all the same functionality as pmcannotate+pmccontrol+pmcstat. Currently it just has "stat" and "system-stat" - counters for the process itself and counters for the system as a whole respectively (i.e. system-stat includes kernel threads). Note that the rusage results (page faults/context switches/ user/sys) for stat-system will not account for the system as a whole - only for the child process specified on the command line. Implementing stat was suggested by mjg@ and the output is based on that from Linux's "perf stat". % pmc stat -- make -j32 buildkernel -DNO_MODULES -ss > /dev/null 9598393 page faults # 0.674 M/sec 387085 voluntary csw # 0.027 M/sec 106989 involuntary csw # 0.008 M/sec 2763965982317 cycles 2542953049760 instructions # 0.920 inst/cycle 511562750157 branches 12917006881 branch-misses # 2.525% 17944429878 cache-references # 0.007 refs/inst 2205119560 cache-misses # 12.289% 43.74 real # 2019.72% cpu 795.09 user # 1817.72% cpu 88.35 sys # 202.00% cpu % make -j32 buildkernel -DNO_MODULES -ss > /dev/null & % sudo pmc stat-system cat ^C 103 page faults # 0.811 M/sec 4 voluntary csw # 0.031 M/sec 0 involuntary csw # 0.000 M/sec 2843639070514 cycles 2606171217438 instructions # 0.916 inst/cycle 522450422783 branches 13092862839 branch-misses # 2.506% 18592101113 cache-references # 0.007 refs/inst 2562878667 cache-misses # 13.785% 44.85 real # 0.00% cpu 0.00 user # 0.00% cpu 0.00 sys # 0.00% cpu Notes: svn path=/head/; revision=334350