aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fortune
Commit message (Collapse)AuthorAgeFilesLines
* A few corrections and clarifications to r343406.Benedict Reuschling2019-01-281-10/+17
| | | | | | | | | | | | | | | | | | | | | - Use "in" instead of "on" when referring to directory and UFS partition. - Switch from hw.physmem to hw.realmem and add a description to distinguish the two. - Explain why the "df" command is having trouble displaying ZFS sizes correctly. Add a bit more descriptive text to help why the output of "zfs list -o space" should be used. - Switch to vmstat instead of iostat display for systat(1) as it shows more information on one screen. Describe what is displayed based on the text of the man page. Change the list of the other values accordingly. - Sort the flags to "zfs destroy" alphabetically. Reviewed by: rgrimes Approved by: rgrimes MFC after: 8 days Differential Revision: https://reviews.freebsd.org/D18993 Notes: svn path=/head/; revision=343532
* Add ZFS usage tips to freebsd-tips.Benedict Reuschling2019-01-241-4/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a bunch of examples on how to use ZFS features like: - listing available space, - setting and displaying a userquota, - displaying pool I/O statistics and pool history, - displaying the compression ratio for a dataset, - various list options (sorting, removing headers), - performing a dry-run of a snapshot delete, - removing a range of snapshots, - setting a custom property, - preventing removal of a snapshot with ZFS holds, - permission sets for zfs send/receive. Additionally, clarify the existing examples a bit when it comes to displaying space by mentioning UFS explicitly. Other examples include displaying I/O in top(1), querying sysctl(8) for active CPUs and available RAM. Mention systat(1) and its options, too. While here, reformat the example to upload a dmesg(8) a bit to wrap properly. Thanks to Allan Jude for his help with some of the ZFS examples. Reviewed by: dru,allanjude Approved by: allanjude (earlier version) MFC after: 3 days Relnotes: yes (ZFS examples in freebsd-tips) Differential Revision: https://reviews.freebsd.org/D18541 Notes: svn path=/head/; revision=343406
* Add a fortune describing how to upload a machine's dmesg information to theBenedict Reuschling2018-11-191-0/+6
| | | | | | | | | | | | | | | | | | | NYCBUG database. We want to encourage our users to upload their dmesgs so that the project can get a better insight into what kind of hardware is run on. This helps in making data-driven decisions about i.e., platform and driver support. Note that dmesgs may contain sensitive information like hardware serial numbers, hence uploading them without review is discouraged. Reviewed by: brooks, imp, allanjude Approved by: allanjude MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D17705 Notes: svn path=/head/; revision=340649
* fortune(6): Fix gcc80 -Wbool-operation warnings.Pedro F. Giffuni2018-01-271-9/+9
| | | | | | | Hinted by: Dragonfly (git 4d1086765752f0569497d06460d95117c74f33ac) Notes: svn path=/head/; revision=328486
* Remove all fortune datfiles except freebsd-tips.Benno Rice2017-11-1413-74205/+1
| | | | | | | | | | | | | | | | | Humour is a funny thing. What is funny to one person is not funny to all people. What is insightful to one person is similarly not universal. The fortune datfiles have been around a long time and have undoubtedly amused people but it's time to acknowledge their subjective, and in some cases at least potentially offensive, nature and stop distributing them with the imprimatur of the FreeBSD project. If anyone wishes to distribute these via other mechanisms they are welcome to check them out of history and do so. MFC after: 2 days Notes: svn path=/head/; revision=325828
* Remove fortune quotes attributed to or providing admiration of Adolf HitlerMark Felder2017-11-131-79/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=325781
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-313-3/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* The !! trick does not apply to all shellsEitan Adler2017-10-291-1/+1
| | | | | | | Requested by: emaste Notes: svn path=/head/; revision=325105
* Update URLs in usr.binEitan Adler2017-10-291-1/+1
| | | | | | | | | - http -> https - contents have moved locations - removal of URL if I could not find new location Notes: svn path=/head/; revision=325095
* Modernize freebsd-tips a bitEitan Adler2017-10-291-14/+2
| | | | | | | | | | - Prefer UTF-8 over ISO-8859-1 - Remove some references to printing man pages - Combine duplicate '!!' tips - 'rehash' is no longer needed Notes: svn path=/head/; revision=325092
* Prefer using https over httpEitan Adler2017-10-291-3/+3
| | | | Notes: svn path=/head/; revision=325091
* strcpy => strlcpy, strcat => strlcatAlan Somers2017-04-041-2/+2
| | | | | | | | | | | | Reported by: Coverity CID: 1006703 978863 1006745 1347163 Reviewed by: cem MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D10192 Notes: svn path=/head/; revision=316500
* usr.bin/fortune: convert to OBJTOP/SRCTOP idiomsEnji Cooper2017-03-084-6/+9
| | | | | | | | | | | | | | | | | - Use OBJTOP/SRCTOP-relative paths when looking for include files and strfile. - Add FORTUNES_OBJ and FORTUNES_SRC to abbreviate usr.bin/fortune pathing. This is being done to simplify make output/idioms. MFC after: 1 week Reviewed by: bdrewery Sponsored by: Dell EMC Isilon Differential Revision: D9916 Notes: svn path=/head/; revision=314893
* Don't rely on dependency in Makefile.inc1 for strfile; make datfiles depend ↵Enji Cooper2017-03-071-1/+7
| | | | | | | | | | | | | | | | | on strfile In most cases strfile is built as part of build-tools, but in the event that someone cd'ed to the directory, tried to build from scratch, and had MK_GAMES=no previously, the build would fail in .../datfiles , trying to find strfile . Mark this directory tree "SUBDIR_PARALLEL" safe to help facilitate this, instead of shuffling around the SUBDIR entries (all of the other Makefiles will build standalone). MFC after: 1 week Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314831
* spelling fixAlfred Perlstein2017-02-261-1/+1
| | | | | | | Submitted by: adamw Notes: svn path=/head/; revision=314289
* More FreeBSD tips for fortune(6)Alfred Perlstein2017-02-261-16/+120
| | | | | | | | Submitted by: lme PR: 192373 Notes: svn path=/head/; revision=314288
* Remove obsolete path from fortune(6). This was inadvertantly left overColin Percival2017-01-111-1/+0
| | | | | | | | | | | | when fortune and other games moved from /usr/games to /usr/bin; I am removing rather than correcting it since we normally do not mention in the FILES section the paths to programs in /usr/bin/. PR: 215962 Reported by: Andras Farkas Notes: svn path=/head/; revision=311945
* Fix sorting after r308293, using the ../tools/do_sort script.Eric van Gyzen2016-11-051-3/+3
| | | | | | | | | Is this a pointy-hat offense? Reported by: jhb Notes: svn path=/head/; revision=308342
* Fix grammar in a fortune.Eric van Gyzen2016-11-041-1/+1
| | | | Notes: svn path=/head/; revision=308293
* Avoid buffer overflow when copying the input file name and appending .dat.Don Lewis2016-05-261-3/+9
| | | | | | | | | | | Check the return value from fread() to be sure that it was successful. Reported by: Coverity CID: 1006709, 1009452 MFC after: 1 week Notes: svn path=/head/; revision=300705
* Use print as a function for Python 3 [PEP 3105]Craig Rodrigues2015-11-191-1/+1
| | | | | | | | | | | Import print_function from the __future__ module to activate this for Python 2. This works as far back as Python 2.6.0a2: https://docs.python.org/2/library/__future__.html [PEP 3105] https://www.python.org/dev/peps/pep-3105/ Notes: svn path=/head/; revision=291041
* Remove support of ancient (pre-8.0R, 800041) FreeBSD releases.Xin LI2015-10-071-8/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=288970
* Final step of eliminating the "games" distribution: Merge src/gamesColin Percival2015-10-0239-0/+77770
(or what's left of it, at least) into src/usr.bin. This change will not be MFCed. Discussed at: EuroBSDCon 2014 Committed from: EuroBSDCon 2015 Notes: svn path=/head/; revision=288485