Arthur Chance freebsd at
Tue May 13 13:44:51 UTC 2014

On 13/05/2014 13:24, Fbsd8 wrote:
> RW wrote:
>> On Tue, 13 May 2014 00:24:23 +0200
>> Rolf Nielsen wrote:
>>> Hash: SHA1
>>> On 2014-05-12 22:05, Fbsd8 wrote:
>>>> I remember back in 6.x a lot of talk about killing every thing
>>>> about games. Todays version of the handbook has no mention of
>>>> games, but the bsdinstall installer has option to install games and
>>>> there is a ports collection category called games. bsdconfig has no
>>>> games installer.
>>>> So what is the general status of games? Is the handbook correct and
>>>> bsdinstall and the ports collection just never got cleaned up or
>>>> does the handbook need a chapter on games?
>>> I'm not sure about the games that come (or used to come) as (an
>>> optional) part of the system, because I have WITHOUT_GAMES=yes in my
>>> /etc/src.conf. However, the fact that that setting causes no errors or
>>> warnings and that it's still documented in the src.conf(5) man page,
>>> suggests that they're still there, at least when building from source.
>> /usr/games/random is used by the ports system for RANDOMIZE_MASTER_SITES
>> There aren't really any actual games as such left. It's fortune, which
>> provides admin tips on login, and a handful of small utilities - which
>> have presumably been left because they may be in use in shell scripts,
>> things like prime, factor, rot13, random etc.
>> I find random(6) to be particularly useful, especially in the form:
>> "random -f -", which randomizes the order of lines in a pipeline.
> "/usr/games/random is used by the ports system for RANDOMIZE_MASTER_SITES"
> This is not totally true. random may be used by the ports system, but
> not what is in /usr/games. random is in the kernel.
> I have been removing /usr/games directory since release 4.0 and never
> have had any problems.

random(1) is in /usr/games, random(4) is in the kernel. random(1) is 
what's used by /usr/ports/Mk/ You've not had any problems 
from cutting out /usr/games because the makefile is conditionalised on 
random(1)'s existence:

.if exists(/usr/games/random)
RANDOM_CMD?=    /usr/games/random
RANDOM_ARGS?=   "-w -f -"

No /usr/games/random, no randomised master sites.

More information about the freebsd-questions mailing list