aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Use calloc instead of malloc + memsetEnji Cooper2017-05-271-2/+1
| | | | | | | | MFC after: 3 days Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=319015
* Try to keep up with the ports system Makefiles.Poul-Henning Kamp2017-05-251-21/+24
| | | | Notes: svn path=/head/; revision=318903
* In preparation for the removal of the roff toolchain, disconnect theBaptiste Daroussin2017-05-251-69/+0
| | | | | | | | | | | | | | | | | roff documentation from the build. Those documents will be added to the doc tree and distributed as PDF from the documentation website. As they are valuable has history, but do not match current FreeBSD Further more, the ascii format we were using to distribute them is not really accurate for such documents. more details: https://lists.freebsd.org/pipermail/freebsd-arch/2017-May/018211.html Notes: svn path=/head/; revision=318881
* Honor WITHOUT_TFTP for check-old* and delete-old* targets.Glen Barber2017-05-231-0/+7
| | | | | | | | | | Submitted by: philippe dot michel7 at sfr dot fr PR: 217949 MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=318748
* Add libc++experimental.a for std::experimental supportDimitry Andric2017-05-211-0/+1
| | | | | | | | | | | | | | | | This adds a separate library for supporting std::experimental features. It is purposefully static, and must be explicitly linked into programs using -lc++experimental. PLEASE NOTE: there is NO WARRANTY as to any stability or continuing existence of the features in the std::experimental parts of the C++ library! Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D10840 Notes: svn path=/head/; revision=318594
* makeman: reword description, based on feedback from wblockEd Maste2017-05-151-7/+7
| | | | Notes: svn path=/head/; revision=318305
* Handle the logfiles in newsyslog and syslogd conditionally, based onEnji Cooper2017-05-131-0/+9
| | | | | | | | | | | | | | | | | | | | | | | src.conf(5) knobs This will allow consumers of FreeBSD to use the unmodified configuration files out of the box more than previously. Both newsyslog.conf and syslog.conf: - /var/log/lpd-errs (MK_LPR != no) - /var/log/ppp.log (MK_PPP != no) - /var/log/xferlog (MK_FTP != no) newsyslog.conf: - /var/log/amd.log (MK_AMD != no) - /var/log/pflog (MK_PF != no) - /var/log/sendmail.st (MK_SENDMAIL != no) MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318250
* Unconditionally install udp(4) and udplite(4) againEnji Cooper2017-05-111-2/+0
| | | | | | | | | | I added this to the MK_USB != no block in error in r278202. MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318177
* [net80211] add another hard-learnt lesson about DWDS setupAdrian Chadd2017-05-031-0/+7
| | | | | | | | | | | | | | | | | | | | | wlanwds monitors the physical interface for DWDS requests from VAPs, but the clone is created against the physical interface. So, if you have a secondary VAP setup (with a separate, non-physical-default MAC address) which is configured for DWDS, the temporary DWDS VAPs created will have the MAC of the parent physical interface and NOT the actual cloned interface + MAC. This .. stumped me for a few minutes. Maybe I'll fix it. Maybe I won't. At least I now have DWDS+encryption working at home. Tested: * yes, with DWDS 11n repeaters now working on freebsd. Notes: svn path=/head/; revision=317728
* Fix build of tools/tools/umastat.Gleb Smirnoff2017-04-261-1/+0
| | | | | | | | | PR: 218887 Submitted by: Fabian Keil <fk fabiankeil.de> Obtained from: ElectroBSD Notes: svn path=/head/; revision=317445
* [net80211] [wlanwds] allow logging to stderr as well as syslog.Adrian Chadd2017-04-261-3/+7
| | | | | | | | | By default this logs to syslog only, not stderr. It makes it difficult to debug exactly what's going on. So allow '-e' to log to stderr so I have a chance of actually debugging wlanwds /dynamic WDS (DWDS) issues. Notes: svn path=/head/; revision=317433
* [net80211] document having to enable privacy on the dynamic plumbed VAPs.Adrian Chadd2017-04-261-0/+7
| | | | Notes: svn path=/head/; revision=317430
* Remove NATM configuration bits and assorted NATM and ATM remnants.Brooks Davis2017-04-251-24/+0
| | | | | | | | | Reported by: ak Reviewed by: ngie (first version) Differential Revision: https://reviews.freebsd.org/D10497 Notes: svn path=/head/; revision=317424
* Add a new GDB_LIBEXEC option to install gdb and kgdb to /usr/libexec.John Baldwin2017-04-253-1/+21
| | | | | | | | | | | | | | | | | | | When this option is enabled, only gdb and kgdb are installed to /usr/libexec for use by crashinfo(8). Other bits of GDB such as gdbserver and gdbtui are not installed. For this option to be effective, GDB must be enabled. Rework r317094 to re-enable GDB on all platforms but enable GDB_LIBEXEC on platforms for which the GDB in ports is a superset of functionality. Reviewed by: emaste, kib Suggested by: kib Relnotes: yes Differential Revision: https://reviews.freebsd.org/D10449 Notes: svn path=/head/; revision=317416
* Remove an incorrect MLINK for tree(3) introduced in r310728.Glen Barber2017-04-251-1/+0
| | | | | | | | | | Reported by: many PR: 216476 MFC after: 3 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=317415
* Remove info files from optional old files.John Baldwin2017-04-251-11/+0
| | | | | | | | | | Info files are now all removed unconditionally after the removal of texinfo. MFC after: 1 week Notes: svn path=/head/; revision=317413
* gctl_test.t: catch errors with the mdcfg directiveEnji Cooper2017-04-231-7/+19
| | | | | | | | | | | While here, add a note about certain testcases relying on `count=1024` in the "create" portion. MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317313
* gctl_test.t: improve error reporting with mdcfg and mount directivesEnji Cooper2017-04-221-9/+19
| | | | | | | | | | | | | If the commands had failed previously, it would press on and result in a series of cascading failures. Fail early and continue on to the next case instead of executing additional commands after a previously failed series of steps. MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317309
* gctl_test.t: more tweaks to try and update the code and get it functional ↵Enji Cooper2017-04-221-7/+9
| | | | | | | | | | | | | | | | (again?) - Make the logfile for $out be built off the basename for $cmd, instead of $cmd. (r317292 broke this assumption). - Rename $mntpt to $mntpt_prefix for clarity, as this variable is a prefix for mountpoints. - Reindent the umount directive block while here to match the rest of the code. MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317308
* Use verb=delete not verb=removeEnji Cooper2017-04-221-2/+2
| | | | | | | | | | | | | The `remove` verb hasn't been present in geom_part*(4) for well over a decade, if ever. I couldn't find any references to it in ^/stable/5 at least, which is around the timeframe that this test was written. MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317307
* gctl_test.t: minor tweaksEnji Cooper2017-04-221-5/+6
| | | | | | | | | | | | | | | - Declare $count with the `my` scope operator to permit `use strict`. - Add `use strict`. - Use `use warnings` instead of using `-w` in the shebang. - Don't unlink $cmd when done (prevents unnecessary rebuilding). - Improve the error message when running with insufficient permissions, e.g., non-root. MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317306
* gctl_test_helper: add diagnostic output for parse_retval(..)Enji Cooper2017-04-221-4/+8
| | | | | | | | | | This will help end-users better diagnose issues with the function. MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317304
* The GPT class no longer exists; use the PART class insteadEnji Cooper2017-04-221-1/+1
| | | | | | | | MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317295
* Bump WARNS to 6 per previous commits which fixed warningsEnji Cooper2017-04-221-0/+2
| | | | | | | | | MFC after: 5 weeks Tested with: clang (4.0), gcc (4.2.1, 6.3.0) Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317294
* gctl_test_helper: apply polishEnji Cooper2017-04-221-4/+8
| | | | | | | | | | | | | - Staticize variables to fix warnings. - Sprinkle asserts around for calls that can fail - Apply style(9) for main(..) definition. - ANSIify usage(..) definition. MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317293
* gctl_test.t: use make to compile gctl_test_helper instead of calling cc directlyEnji Cooper2017-04-222-6/+12
| | | | | | | | MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317292
* Rename gctl.t to gctl_test.t and test.c to gctl_test_helper.cEnji Cooper2017-04-222-1/+1
| | | | | | | | | | | This is being done to reduce ambiguity and to make the tests more portable in the future to other locations in the source tree. MFC after: 5 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317291
* Fix -Wimplicit-function-declaration compilation warning by moving libgeom.hEnji Cooper2017-04-221-1/+1
| | | | | | | | | | | | | | #include below the stdio.h #include. gctl_dump(3) needs stdio.h, per reasoning noted in r317289. MFC after: 5 weeks PR: 218809 Submitted by: Chang-Hsien Tsai <luke.tw@gmail.com> Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317290
* bsdgrep: disable GNU_GREP_COMPAT by defaultEd Maste2017-04-211-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The GNU extension bits in the base system are old, no longer faithful to upstream, and surprising in some regards. Switch to documenting WITH_GNU_GREP_COMPAT and default GNU_GREP_COMPAT to OFF in the name of good behavior. According to http://www.regular-expressions.info, GNU extensions: - Add missing quantifiers to BREs: \?, \+ - Add branching to BREs: \| - Add backreferences (\1 through \9) to EREs - Add \w, \W, \s, and \S corresponding to :alnum:, [^[:alnum:]], :space:, and [^[:space:]] respectively - Add word boundaries and anchors: \b: word boundary \B: not word boundary \<: Strt of word \>: End of word \`: Start of subject string \': End of subject string These extensions are still available in /usr/bin/grep by default today, as it is still GNU grep. As part of the bsdgrep migration plan these extensions may be added to bsdgrep's regex support if necessary. Submitted by: Kyle Evans <kevans91 at ksu.edu> Reviewed by: cem Differential Revision: https://reviews.freebsd.org/D10114 Notes: svn path=/head/; revision=317255
* bsdgrep: add BSD_GREP_FASTMATCH knob for built-in fastmatchEd Maste2017-04-211-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bugs have been found in the fastmatch implementation as used in bsdgrep. Some have been fixed (r316495) while fixes for others are in review (D10098). In comparison with the fastmatch implementation, Kyle Evans found that: - regex(3)'s performance with literal expressions offers a speed improvement over fastmatch - regex(3)'s performance, both with simple BREs and EREs, seems to be comparable The regex implementation was imported in r226035, and the commit message reports: This is a temporary solution until the whole regex library is not replaced so that BSD grep development can continue and the backported code gets some review and testing. This change only improves scalability slightly, there is no big performance boost yet but several minor bugs have been found and fixed. Introduce a WITH_/WITHOUT_BSD_GREP_FASTMATCH knob to support testing of both approaches. PR: 175314, 194823 Submitted by: Kyle Evans <kevans91 at ksu.edu> Reviewed by: bdrewery (in part) Differential Revision: https://reviews.freebsd.org/D10282 Notes: svn path=/head/; revision=317254
* Readd Big5: some large databases setup are still requiring it.Baptiste Daroussin2017-04-207-42/+27581
| | | | | | | Reported by: "張君天(Chun-Tien Chang)" <tcs@kitty.2y.idv.tw> Notes: svn path=/head/; revision=317204
* Clean up WITH*_PROFILEEnji Cooper2017-04-202-1/+5
| | | | | | | | | | | - Clarify that profiled libraries are usable with gprof(8). - Add WITH_PROFILE to complement WITHOUT_PROFILE and placate makeman. MFC after: 7 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317179
* Add WITH_GROFF to complement WITHOUT_GROFF and placate complaints from makemanEnji Cooper2017-04-201-0/+5
| | | | | | | | MFC after: 7 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317178
* Add a knob, WITH*_RPCBIND_WARMSTART_SUPPORT, to allow the end-user to buildEnji Cooper2017-04-191-0/+4
| | | | | | | | | | | | | | | rpcbind(8) with/without warmstart support. The knob defaults to off to preserve POLA for the feature. See rpcbind(8) for more details about the warmstart feature. MFC after: 7 weeks Relnotes: yes Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317168
* Add WITH_CXX to complement WITHOUT_CXX and placate makeman's complaintsEnji Cooper2017-04-191-0/+4
| | | | | | | | MFC after: 7 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=317167
* Remove WITHOUT_GNU and WITHOUT_GNU_SUPPORT src.conf.knobsEd Maste2017-04-192-9/+0
| | | | | | | | | | | These have no effect (and WITHOUT_GNU is documented as having no effect). I intend to later introduce a WITHOUT_GPL knob to serve a similar purpose as WITHOUT_GNU's previously documented intent, but with a more accurate name. To avoid confusion over the transition though just remove the existing, nonfunctional ones. Notes: svn path=/head/; revision=317158
* makeman: add a comment describing purpose and invocationEd Maste2017-04-191-2/+16
| | | | | | | | | | Reviewed by: jhb, ngie MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10389 Notes: svn path=/head/; revision=317156
* A test was moved but without the definition of $d.Nick Hibma2017-04-191-4/+5
| | | | | | | | | The test however always succeeds because 'test -d' always returns true. Also some speling fixes. Notes: svn path=/head/; revision=317136
* Conditionally install /etc/pam.d/ftp* and /etc/pam.d/telnetdEnji Cooper2017-04-141-0/+3
| | | | | | | | | | | /etc/pam.d/ftp* should be installed with MK_FTP != no and /etc/pam.d/telnetd should be installed when MK_TELNET != no. MFC after: 7 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=316818
* makeman: don't copy $FreeBSD$ tags from source files into outputEd Maste2017-04-111-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Copying the source VCS ID from WITH_/WITHOUT_* into the generated src.conf.5 is not necessary, as it is generally possible to determine the same information using the VCS to examine commit metadata. The individual source files also match the name of the option recorded in the generated file, so it is clear from where the content originated. The copied IDs generate extraneous, non-content noise in the generated src.conf.5 in some cases, including the first time the file is generated on a stable branch. In addition, the source file $FreeBSD$ tags are not expanded by git or other non-Subversion VCSs, which means that makeman previously could not be used in a non-Subversion working tree. I accept that there's some desire to keep these, but on balance believe there is more benefit in removing them. Reviewed by: imp, ngie MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D7997 Notes: svn path=/head/; revision=316706
* Introduce LLD_BOOTSTRAP to control lld as bootstrap linkerEd Maste2017-04-092-0/+7
| | | | | | | | | | | | Add WITH_LLD_BOOTSTRAP and WITHOUT_LLD_BOOTSTRAP knobs, similar to the Clang bootstrap knobs. Reviewed by: dim Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D10249 Notes: svn path=/head/; revision=316647
* Remove the .Pa portion I added to the .An macro in AUTHORS sectionEnji Cooper2017-03-231-1/+1
| | | | | | | | | | | | | | | That doesn't work (mandoc complains about the macro being empty). That's what I get for being clever and not verifying before committing things again *sigh*. MFC after: 1 month X-MFC with: r315766 Partyhat to: ngie Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315768
* Note that tools/build/options/makeman automatically generated src.conf(5)Enji Cooper2017-03-231-1/+2
| | | | | | | | | | This (as a bonus) fixes mdoc warnings with src.conf(5) :).. MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315766
* Fix mdoc(7) warning: new sentences should start on new linesEnji Cooper2017-03-231-1/+2
| | | | | | | | | MFC after: 1 week X-MFC with: r315764 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315765
* Add a WITHOUT_IPSEC_SUPPORT option description for src.conf(5)Enji Cooper2017-03-231-0/+7
| | | | | | | | | | This is a follow up commit to r313330. MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315764
* Add a WITHOUT_RATELIMIT option description for src.conf(5)Enji Cooper2017-03-231-0/+12
| | | | | | | | | | | This is a follow up commit for r312379 MFC after: 1 month X-MFC with: r312379 Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=315763
* Eliminate a "format string is not a string literal" warning.Ian Lepore2017-03-211-1/+1
| | | | Notes: svn path=/head/; revision=315692
* Remove zh_TW.Big5 localeBaptiste Daroussin2017-03-191-7/+0
| | | | | | | | After discussion with many Taiwanese, in IT or not. Big5 is not used anymore. It is not able to represent lots of the characters used in the language. Notes: svn path=/head/; revision=315568
* Prepare the removal of the zh_TW.Big5 encodingBaptiste Daroussin2017-03-196-27574/+42
| | | | Notes: svn path=/head/; revision=315567
* Garbage collect a map file that is not used anymore to generate localesBaptiste Daroussin2017-03-191-18612/+0
| | | | Notes: svn path=/head/; revision=315566