From owner-freebsd-questions@FreeBSD.ORG Tue May 13 13:44:51 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 37B17B0F for ; Tue, 13 May 2014 13:44:51 +0000 (UTC) Received: from blue.qeng-ho.org (blue.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AA17C27C8 for ; Tue, 13 May 2014 13:44:50 +0000 (UTC) Received: from fileserver.home.qeng-ho.org (localhost [127.0.0.1]) by fileserver.home.qeng-ho.org (8.14.7/8.14.5) with ESMTP id s4DDiiAf056539; Tue, 13 May 2014 14:44:45 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Message-ID: <537221CC.7080104@qeng-ho.org> Date: Tue, 13 May 2014 14:44:44 +0100 From: Arthur Chance User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Fbsd8 , RW Subject: Re: games References: <5371299D.9060905@a1poweruser.com> <53714A17.8090207@gmail.com> <20140513125543.3cd46f57@gumby.homeunix.com> <53720F06.1070404@a1poweruser.com> In-Reply-To: <53720F06.1070404@a1poweruser.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 May 2014 13:44:51 -0000 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.