2008年7月3日木曜日

hack

% cd /usr/ports/games/freebsd-games/
% make install
=> freebsd-games-5.1.1.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from ftp://ftp2.jp.freebsd.org/pub/FreeBSD/ports/distfiles/.
freebsd-games-5.1.1.tar.bz2                   100% of 2377 kB 1137 kBps
===>  Extracting for freebsd-games-5.1.1_7
=> MD5 Checksum OK for freebsd-games-5.1.1.tar.bz2.
=> SHA256 Checksum OK for freebsd-games-5.1.1.tar.bz2.
cvs -d `pwd`/cvs get adventure
cvs checkout: Updating adventure
U adventure/Makefile
U adventure/adventure.6



~~~省略~~~



cvs -d `pwd`/cvs get hack
cvs checkout: Updating hack
U hack/COPYRIGHT
U hack/Makefile
U hack/Makequest
U hack/OWNER
U hack/Original_READ_ME
U hack/READ_ME
U hack/alloc.c
U hack/config.h
U hack/data
U hack/date.h
U hack/def.edog.h



~~~省略~~~



===>  Patching for freebsd-games-5.1.1_7
===>  Applying FreeBSD patches for freebsd-games-5.1.1_7
===>  Configuring for freebsd-games-5.1.1_7
===>  Building for freebsd-games-5.1.1_7
cd adventure && make depend && make all
cc -O -pipe -march=pentiumpro -Wsystem-headers -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c setup.c



~~~省略~~~



cd hack && make depend && make all
cc -O -pipe -march=pentiumpro -DPOSIX -I/tmp/ports.work/usr/ports/games/free
bsd-games/work/freebsd-games-5.1.1/hack -I.  -c makedefs.c



~~~省略~~~



===>  Installing for freebsd-games-5.1.1_7
===>   Generating temporary packing list
===>  Checking if games/freebsd-games already installed
===>  Switching to root credentials for 'install' target
Password:



~~~省略~~~



cd hack && make install
install -o root -g games -m 444 /dev/null  /var/games/hackdir/perm
install -o root -g games -m 460 /dev/null  /var/games/hackdir/record
install -s -o root -g games -m 2555   hack /usr/local/bin
install -o root  -g games -m 440  rumors  /var/games/hackdir/rumors
install -o root -g games  -m 444 help hh data /var/games/hackdir
install -o root -g wheel -m 444 hack.6.gz  /usr/local/man/man6



~~~省略~~~



===>   Registering installation for freebsd-games-5.1.1_7
===> SECURITY REPORT:
      This port has installed the following binaries which execute with
      increased privileges.
/usr/local/bin/hack



      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.
===>  Returning to user credentials



% rehash
% hack



20080702



というわけで、古きよき時代のゲーム、「hack」です。



きっと、今の若い人は知らないんだろうな。



大学のとき、プログラミング実習の時間、時間をもてあましたときは、hackをやってました。



昔のFreeBSDは、/usr/games/hackとしてインストールされていたんですが、いつからか、/usr/gamesには入らずに、portsのfreebsd-gamesへ追い出されてしまいました。



やりこむなら、hackよりは、nethackのほうがおすすめ。



/usr/ports/games/nethack34とか、/usr/ports/japanese/nethack34とかがあります。







0 件のコメント:

コメントを投稿