Date: Wed, 11 Aug 1999 04:24:55 +1000 (EST) From: Andy Farkas <andyf@speednet.com.au> To: freebsd-current@FreeBSD.ORG Subject: installing hack(6) overwrites /var/games/hackdir/record file! Message-ID: <Pine.BSF.4.05.9908110348550.55901-100000@localhost>
next in thread | raw e-mail | index | archive | help
Perhaps this should be a PR... Seeing as how we are recently being amused by fortune(6) quotes, I thought I'd mention an acronymn that hasn't been used recently: POLA Can anyone explain why every time I upgrade world, my hard earned 'record' file whilst playing hack(6) gets overwritten by /dev/null, and also all the user 'bones' and 'save' files rm'd? If the interface to these files changes, surely the game should recognise it? I propose the following patch to src/games/hack: $ diff -u Makefile.orig Makefile --- Makefile.orig Wed Aug 11 04:16:06 1999 +++ Makefile Wed Aug 11 04:16:20 1999 @@ -31,14 +31,14 @@ beforeinstall: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} /dev/null \ ${DESTDIR}/var/games/hackdir/perm +.if !exists(${DESTDIR}/var/games/hackdir/record) ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 460 /dev/null \ ${DESTDIR}/var/games/hackdir/record +.endif ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 440 ${.CURDIR}/rumors \ ${DESTDIR}/var/games/hackdir/rumors ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ ${.CURDIR}/help ${.CURDIR}/hh ${.CURDIR}/data \ ${DESTDIR}/var/games/hackdir - rm -f ${DESTDIR}/var/games/hackdir/bones* \ - ${DESTDIR}/var/games/hackdir/save/* .include <bsd.prog.mk> -- :{ andyf@speednet.com.au Andy Farkas System Administrator Speednet Communications http://www.speednet.com.au/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9908110348550.55901-100000>