aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/services_mkdb
Commit message (Collapse)AuthorAgeFilesLines
* services: fix typo ucp -> udpDmitry Morozovsky2024-12-211-2/+2
| | | | | | | | Fix two proto name typos MFC after: 2 weeks (cherry picked from commit 7aa7f4b5c324a0f698b3ae1e39856cc087a14e0c)
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit fa9896e082a1)
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-233-3/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-232-4/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit b3e7694832e8)
* spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSDWarner Losh2023-07-253-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 (cherry picked from commit b61a573019428cbdc38ed03be9ecd2482011ea66)
* ctlstat: add prometheus outputAlan Somers2022-05-121-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. Sponsored by: Axcient Relnotes: yes Reviewed by: bapt, bcr Differential Revision: https://reviews.freebsd.org/D29901 (cherry picked from commit 1a7f22d9c211f504f6c48a86401469181a67ec34)
* usr.sbin/services_mkdb: diff reduction against NetBSD.Xin LI2021-04-201-0/+1
| | | | (cherry picked from commit 57b9a062d147563ecda72227f0bb051f60eff608)
* usr.sbin/services_mkdb: plug memory leak when line was blank.Xin LI2021-04-131-2/+8
| | | | | | | | Reviewed by: bapt MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D29370 (cherry picked from commit 18f3c5fe9207fbd19360b8ddb23ba10a5ad3df68)
* 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
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | Similar to cap_mkdb(1), add endianness support to services_mkdb(1)John Baldwin2014-01-223-4/+27
| |_|/ |/| | | | | | | | | | | | | | | | | to support cross-builds once this is invoked during releases. Notes: svn path=/head/; revision=261030
* | | Remove contractions.Joel Dahl2013-04-111-1/+1
| |/ |/| | | | | Notes: svn path=/head/; revision=249373
* | Move uniq() prototype into extern.h.Ed Schouten2012-10-203-3/+2
| | | | | | | | Notes: svn path=/head/; revision=241778
* | More -Wmissing-variable-declarations fixes.Ed Schouten2012-10-204-2/+36
|/ | | | | | | | | | | | | In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h. Notes: svn path=/head/; revision=241777
* Revise markup, mainly.Ruslan Ermilov2010-10-051-8/+10
| | | | Notes: svn path=/head/; revision=213442