Date: Fri, 22 May 1998 01:58:04 +1000 (EST) From: andrew@ugh.net.au To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: conf/6711: I've seen that fortune before Message-ID: <Pine.BSF.3.96.980522015721.2294B-100000@beebite.ugh.net.au>
index | next in thread | raw e-mail
>Number: 6711
>Category: conf
>Synopsis: I've seen that fortune before
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu May 21 09:00:02 PDT 1998
>Last-Modified:
>Originator: Andrew
>Organization:
UgH!
>Release: FreeBSD 2.2.6-STABLE i386
>Environment:
Running a csh based shell (tcsh)
>Description:
fortune (if installed) is run from .login by default. After a while you start to
see the same old fortunes being presented even though there are many fortune
files installed in /usr/share/games/fortune.
I would suggest we make the line in .login 'fortune all' so a fortune is picked
from any of the files.
The only problem I could see from this was that some limericks seemed to have
been misfiled and really belong in limericks-o. Not having time to sort through
them all just yet I moved them all to limerick-o. Better to err with safety I
felt.
Quiting PPP paniced my machine
>How-To-Repeat:
Login in lots :-)
>Fix:
Patch to /usr/src/share/skel/dot.login:
--- dot.login.orig Thu May 21 22:17:28 1998
+++ dot.login Thu May 21 22:17:38 1998
@@ -17,4 +17,4 @@
# A rightous umask
umask 22
-[ -x /usr/games/fortune ] && /usr/games/fortune
+[ -x /usr/games/fortune ] && /usr/games/fortune all
Patch to /usr/src/games/fortune/datfiles/Makefile:
--- Makefile.orig Thu May 21 22:04:33 1998
+++ Makefile Thu May 21 22:14:35 1998
@@ -8,8 +8,8 @@
# LINES AND COMMENT OUT THE FOURTH LINE.
# THE THREE LINES
-FILES+= fortunes2-o limerick
-BLDS+= fortunes2-o.dat limerick.dat
+FILES+= fortunes2-o limerick-o
+BLDS+= fortunes2-o.dat limerick-o.dat
TYPE= real
# THE FOURTH LINE
@@ -41,7 +41,7 @@
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${BLDS} \
${DESTDIR}${SHAREDIR}/games/fortune
-fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
+fortunes.dat fortunes2.dat fortunes2-o.dat limerick-o.dat startrek.dat zippy.dat:
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
fortunes-o.dat: fortunes-o
Also required is:
mv /usr/src/games/fortune/datfiles/limerick /usr/src/games/fortune/datfiles/limerick-o
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980522015721.2294B-100000>
