aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/services_mkdb
Commit message (Collapse)AuthorAgeFilesLines
* METALOG: Order keyword entriesJose Luis Duran2026-01-261-1/+1
| | | | | | | | | | | To facilitate comparison with mtree -C generated output, keep the keywords ordered. No functional change intended. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54872
* services_mkdb(8): Fix a typo in a source code commentGordon Bergling2025-08-171-1/+1
| | | | | | - s/priviledged/privileged/ MFC after: 3 days
* services: fix typo ucp -> udpDmitry Morozovsky2024-11-301-2/+2
| | | | | | Fix two proto name typos MFC after: 2 weeks
* 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
* usr.sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* usr.sbin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+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$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-163-3/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-162-4/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh2023-05-123-3/+3
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-NetBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* ctlstat: add prometheus outputAlan Somers2022-04-201-0/+1
| | | | | | | | | | | | | | | When invoked by inetd, ctlstat -P will now produce output suitable for ingestion into Prometheus. It's a drop-in replacement for https://github.com/Gandi/ctld_exporter, except that it doesn't report the number of initiators per target, and it does report time and dma_time. MFC after: 2 weeks Sponsored by: Axcient Relnotes: yes Reviewed by: bapt, bcr Differential Revision: https://reviews.freebsd.org/D29901
* Fix hand-rolled METALOG entries for installconfig during distributeworldJessica Clarke2022-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | During distributeworld we call distribute on subdirectories, which in turn calls installconfig. However, this recursive installconfig call appends the distribution name (in these cases, "base") to DESTDIR. For install(1) this works fine as its -D argument comes from the top-level Makefile.inc1, which passes the original DESTDIR, thereby resulting in the METALOG entry having the distribution name as a prefix representing its true installed path relative to the root, but for the hand-rolled entries they do not use install(1) and thus do not have access to what the original DESTDIR was, resulting in the METALOG missing this prefix. Thus, pass down the name of the distribution via a new variable DISTBASE (chosen as Makefile.inc1 already uses that to convey this exact same information to etc's distrib-dirs during distributeworld) and prepend this to the handful of manually-generated METALOG entries. For the installworld case this variable will be empty and so this behaves as before. Note that we need to be careful to avoid double slashes in the METALOG; distributeworld uses find | awk to split the single METALOG up into multiple dist.meta files, and this relies on the paths in the METALOG having the exact prefix ./dist (or ./dist/usr/lib/debug). Reviewed by: brooks, emaste Differential Revision: https://reviews.freebsd.org/D33997
* usr.sbin/services_mkdb: plug memory leak when line was blank.Xin LI2021-03-301-2/+8
| | | | | | Reviewed by: bapt MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29370
* usr.sbin/services_mkdb: diff reduction against NetBSD.Xin LI2021-03-211-0/+1
| | | | MFC after: 1 month
* services: reinstate CouchDB and bring amqpsPedro F. Giffuni2021-01-011-0/+4
| | | | | | | | | | CouchDB was mistakenly removed in r368712 amqps is used by net/rabbitmp Both are registered in IANA Reported by: dch Differential Revision: https://reviews.freebsd.org/D27691
* services: fiz bug introduced in r361898Pedro F. Giffuni2021-01-011-1/+1
| | | | Reported by: deischen@
* /etc/services: attempt to bring the database to this century 2/2.Pedro F. Giffuni2020-12-171-236/+198
| | | | | | | | | | | | | | | This is the final half of splitting r358153 in two, in order to avoid a build system bugs and being able to merge an earlier change to previous releases. Add a note to UPDATING to avoid people building from very old systems from having issues with mergemaster MFC after: 3 days (only 12-stable) Differential Revision: https://reviews.freebsd.org/D23621 Notes: svn path=/head/; revision=368712
* services: Add SSDP to service databasePedro F. Giffuni2020-06-071-0/+2
| | | | | | | | | | This is used for UPnP and is registered in the IANA database. MFC after: 2 weeks PR: 241573 Notes: svn path=/head/; revision=361898
* Normalize deployment tools usage and definitions by putting into one placeMaxim Sobolev2020-04-071-1/+3
| | | | | | | | | | | | instead of sprinkling them out over many disjoint files. This is a follow-up to achieve the same goal in an incomplete rev.348521. Approved by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D20520 Notes: svn path=/head/; revision=359685
* style(9): Fix space after #define.Pedro F. Giffuni2020-03-121-1/+1
| | | | | | | No functional change. Notes: svn path=/head/; revision=358904
* /etc/services: attempt to bring the database to this century 1/2.Pedro F. Giffuni2020-02-281-585/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the result of splitting r358153 in two, in order to avoid a build system bug and being able to merge the change to previous releases.. Document better this file, updating the URL to the IANA registry and closely match the official services. For system ports (0 to 1023) we now try to follow the registry closely, noting some historical differences where applicable. As a side effect: drop references to unofficial Kerberos IV which was EOL'ed on Oct 2006[1]. While it is conceivable some people may still use it in some very old FreeBSD machines that can't be replaced easily, the use of it is considered a security risk. Also drop the unofficial netatalk, which we supported long ago in the kernel but was dropped long ago. Leave for now smtps, even though it conflicts with IANA's submissions. The change should have very little visibility, if any, but should be a step closer to the current IANA database. [1] https://web.mit.edu/kerberos/krb4-end-of-life.html MFC after: 2 weeks Notes: svn path=/head/; revision=358448
* Revert r358153: it is causing unexpected issues with the build system.Pedro F. Giffuni2020-02-201-358/+818
| | | | Notes: svn path=/head/; revision=358170
* Bump PROTOMAX.Xin LI2020-02-201-1/+1
| | | | | | | | MFC after: 3 weeks X-MFC-with: r358153 Notes: svn path=/head/; revision=358154
* /etc/services: attempt bring the database to this century.Pedro F. Giffuni2020-02-201-818/+358
| | | | | | | | | | | | | | | | | | | | | | | | | Document better this file, updating the URL to the IANA registry and closely match the official services. For system ports (0 to 1023) we now try to follow the registry closely, noting some historical differences where applicable. For the User ports (1024 - 49151) we try to keep some sensible balance only of services that are likely to be found on FreeBSD/UNIX systems. This attempts to strike a balance between complexity and usefulness. As a side effect: drop references to unofficial Kerberos IV which was EOL'ed on Oct 2006[1]. While it is conceivable some people may still use it in some very old FreeBSD machines that can't be replaced easily, the use of it is considered a security risk. Also drop the unofficial netatalk, which we supported long ago in the kernel but was dropped long ago. [1] https://web.mit.edu/kerberos/krb4-end-of-life.html MFC after: 3 weeks (likely to 12-stable only) Differential Revision: https://reviews.freebsd.org/D23621 Notes: svn path=/head/; revision=358153
* Revert r357343:Pedro F. Giffuni2020-02-131-8/+0
| | | | | | | | | | | services: Add PROFInet and EtherCAT. Both are admitedly very niche features and no known users exist currently. I am doing a further review/update of the services file (see D23621) and both of these are not likely to be considered. Notes: svn path=/head/; revision=357860
* services: Add PROFInet and EtherCAT.Pedro F. Giffuni2020-01-311-0/+8
| | | | | | | | | Both are used in industrial networks. MFC after: 1 week Notes: svn path=/head/; revision=357343
* pkgbase: Put a lot of binaries and lib in FreeBSD-runtimeEmmanuel Vadot2019-09-051-0/+2
| | | | | | | | | | | | All of them are needed to be able to boot to single user and be able to repair a existing FreeBSD installation so put them directly into FreeBSD-runtime. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21503 Notes: svn path=/head/; revision=351855
* Fix several places where tool name has been hardcoded:Maxim Sobolev2019-06-021-1/+2
| | | | | | | | | | | | | | | | | install -> ${INSTALL} mtree -> ${MTREE_CMD} services_mkdb -> ${SERVICES_MKDB_CMD} cap_mkdb -> ${CAP_MKDB_CMD} pwd_mkdb -> ${PWD_MKDB_CMD} kldxref -> ${KLDXREF_CMD} If you do custom FreeBSD builds you may want to override those in some cases. Sponsored by: Sippy Software, Inc. Notes: svn path=/head/; revision=348521
* Add MPLS LSP-echo (RFC8029, March 2017) port.David E. O'Brien2018-09-061-0/+2
| | | | | | | | | Reviewed by: stevek Approved by: re(gjb) Obtained from: Juniper Networks Notes: svn path=/head/; revision=338503
* Move services to usr.sbin/services_mkdb/Brad Davis2018-08-222-0/+2511
| | | | | | | | | | | This is pkgbase related as it switches to CONFS to properly tag this as a config file. Approved by: will (mentor) Differential Revision: https://reviews.freebsd.org/D16848 Notes: svn path=/head/; revision=338212
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-273-0/+6
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Remove usage of _WITH_GETLINE from usr.sbinBaptiste Daroussin2016-07-301-1/+0
| | | | Notes: svn path=/head/; revision=303527
* Fix a miss merge in the services_mkdb(8) man pageAllan Jude2016-06-101-1/+1
| | | | | | | | | | Restore the cross reference to getservent(3) to the correct line Approved by: re (gjb) Sponsored by: BSDCan Hacker Lounge Notes: svn path=/head/; revision=301794
* Invoke the dirname() function in a POSIX compliant way.Ed Schouten2016-05-291-2/+3
| | | | | | | | | | | | | | | | POSIX requires that the argument of dirname() is of type "char *". In other words, the input buffer can be modified by the function to store the directory name. Pull a copy of the string before calling dirname(). We don't care about freeing up the memory afterwards, as this is done at the very bottom of main(), right before the program terminates. Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D6628 Notes: svn path=/head/; revision=300952
* Replace fparseln(3) with getline(3) to remove dependency on libutilBaptiste Daroussin2016-05-092-7/+11
| | | | Notes: svn path=/head/; revision=299284
* Remove O_SYNC from the options passed to dbmopen().Stefan Eßer2016-02-101-1/+1
| | | | | | | | | | | | | | The services db is created as a temporary file that is moved over the existing file after completion. Thus there is no need to immediately flush all created db records to the temporary file. This speeds up creation of the services db by a factor of 500 on my ZFS based /var/db filesytem (from 110 seconds to 0.235 seconds). MFC after: 1 week Notes: svn path=/head/; revision=295465
* Make cap_mkdb and services_mkdb file operations syncRenato Botelho2016-01-071-2/+18
| | | | | | | | | | | | | | | Similar fix was done for passwd and group operations in r285050. When a temporary file is created and then renamed to replace official file there are no checks to make sure data was written to disk and if a power cycle happens at this time, system can end up with a 0 length file Approved by: bapt MFC after: 1 week Sponsored by: Netgate Differential Revision: https://reviews.freebsd.org/D2982 Notes: svn path=/head/; revision=293312
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-2/+1
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-283-4/+27
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ sync from headSimon J. Gerraty2013-04-121-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync from headSimon J. Gerraty2012-11-044-5/+38
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545