Date: Tue, 13 May 2014 14:44:44 +0100 From: Arthur Chance <freebsd@qeng-ho.org> To: Fbsd8 <fbsd8@a1poweruser.com>, RW <rwmaillists@googlemail.com> Cc: freebsd-questions@freebsd.org Subject: Re: games Message-ID: <537221CC.7080104@qeng-ho.org> In-Reply-To: <53720F06.1070404@a1poweruser.com> References: <5371299D.9060905@a1poweruser.com> <53714A17.8090207@gmail.com> <20140513125543.3cd46f57@gumby.homeunix.com> <53720F06.1070404@a1poweruser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 13/05/2014 13:24, Fbsd8 wrote: > RW wrote: >> On Tue, 13 May 2014 00:24:23 +0200 >> Rolf Nielsen wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> 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/bsd.port.mk. You've not had any problems from cutting out /usr/games because the makefile is conditionalised on random(1)'s existence: .if defined(RANDOMIZE_MASTER_SITES) .if exists(/usr/games/random) RANDOM_CMD?= /usr/games/random RANDOM_ARGS?= "-w -f -" _RANDOMIZE_SITES= " |${RANDOM_CMD} ${RANDOM_ARGS}" .endif .endif No /usr/games/random, no randomised master sites.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?537221CC.7080104>