aboutsummaryrefslogtreecommitdiff
path: root/games/bsd_games
diff options
context:
space:
mode:
Diffstat (limited to 'games/bsd_games')
-rw-r--r--games/bsd_games/bsd-games-2.17-64bit.patch.xzbin0 -> 764 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-acronymlocation.patch.xzbin0 -> 408 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-badntohlcast.patch.xzbin0 -> 284 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-config.patch.xzbin0 -> 424 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-extrafortunes.patch.xzbin0 -> 293644 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-fortunequotetypos20120302.patch.xzbin0 -> 360 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-gamescreenh.patch.xzbin0 -> 344 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-gcc4fix.patch.xzbin0 -> 456 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-getline.patch.xzbin0 -> 1828 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-hangmanwords.patch.xzbin0 -> 86716 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-loginfortune.patch.xzbin0 -> 380 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-nullcheck.patch.xzbin0 -> 356 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-numberc.patch.xzbin0 -> 1020 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-ospeed.patch.xzbin0 -> 312 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-pom.patch.xzbin0 -> 1968 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-spelling.patch.xzbin0 -> 1108 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-stdioh.patch.xzbin0 -> 288 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-strfileman.patch.xzbin0 -> 420 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-tetris.patch.xzbin0 -> 324 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-tmpfiles.patch.xzbin0 -> 280 bytes
-rw-r--r--games/bsd_games/bsd-games-2.17-usrbin.patch.xzbin0 -> 320 bytes
-rwxr-xr-xgames/bsd_games/bsd_games.build106
22 files changed, 106 insertions, 0 deletions
diff --git a/games/bsd_games/bsd-games-2.17-64bit.patch.xz b/games/bsd_games/bsd-games-2.17-64bit.patch.xz
new file mode 100644
index 0000000..8d7289b
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-64bit.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-acronymlocation.patch.xz b/games/bsd_games/bsd-games-2.17-acronymlocation.patch.xz
new file mode 100644
index 0000000..ecabdb2
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-acronymlocation.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-badntohlcast.patch.xz b/games/bsd_games/bsd-games-2.17-badntohlcast.patch.xz
new file mode 100644
index 0000000..8b2fe87
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-badntohlcast.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-config.patch.xz b/games/bsd_games/bsd-games-2.17-config.patch.xz
new file mode 100644
index 0000000..e6c83c8
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-config.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-extrafortunes.patch.xz b/games/bsd_games/bsd-games-2.17-extrafortunes.patch.xz
new file mode 100644
index 0000000..bcdff39
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-extrafortunes.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-fortunequotetypos20120302.patch.xz b/games/bsd_games/bsd-games-2.17-fortunequotetypos20120302.patch.xz
new file mode 100644
index 0000000..f05e124
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-fortunequotetypos20120302.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-gamescreenh.patch.xz b/games/bsd_games/bsd-games-2.17-gamescreenh.patch.xz
new file mode 100644
index 0000000..08f6e47
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-gamescreenh.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-gcc4fix.patch.xz b/games/bsd_games/bsd-games-2.17-gcc4fix.patch.xz
new file mode 100644
index 0000000..d161156
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-gcc4fix.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-getline.patch.xz b/games/bsd_games/bsd-games-2.17-getline.patch.xz
new file mode 100644
index 0000000..5da8bbe
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-getline.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-hangmanwords.patch.xz b/games/bsd_games/bsd-games-2.17-hangmanwords.patch.xz
new file mode 100644
index 0000000..2f002e1
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-hangmanwords.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-loginfortune.patch.xz b/games/bsd_games/bsd-games-2.17-loginfortune.patch.xz
new file mode 100644
index 0000000..a5bd219
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-loginfortune.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-nullcheck.patch.xz b/games/bsd_games/bsd-games-2.17-nullcheck.patch.xz
new file mode 100644
index 0000000..7836214
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-nullcheck.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-numberc.patch.xz b/games/bsd_games/bsd-games-2.17-numberc.patch.xz
new file mode 100644
index 0000000..741a592
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-numberc.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-ospeed.patch.xz b/games/bsd_games/bsd-games-2.17-ospeed.patch.xz
new file mode 100644
index 0000000..66d1cf0
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-ospeed.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-pom.patch.xz b/games/bsd_games/bsd-games-2.17-pom.patch.xz
new file mode 100644
index 0000000..293a9d6
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-pom.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-spelling.patch.xz b/games/bsd_games/bsd-games-2.17-spelling.patch.xz
new file mode 100644
index 0000000..362d917
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-spelling.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-stdioh.patch.xz b/games/bsd_games/bsd-games-2.17-stdioh.patch.xz
new file mode 100644
index 0000000..45b1c06
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-stdioh.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-strfileman.patch.xz b/games/bsd_games/bsd-games-2.17-strfileman.patch.xz
new file mode 100644
index 0000000..9d100bf
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-strfileman.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-tetris.patch.xz b/games/bsd_games/bsd-games-2.17-tetris.patch.xz
new file mode 100644
index 0000000..ff8da8f
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-tetris.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-tmpfiles.patch.xz b/games/bsd_games/bsd-games-2.17-tmpfiles.patch.xz
new file mode 100644
index 0000000..e76ff77
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-tmpfiles.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd-games-2.17-usrbin.patch.xz b/games/bsd_games/bsd-games-2.17-usrbin.patch.xz
new file mode 100644
index 0000000..99a6153
--- /dev/null
+++ b/games/bsd_games/bsd-games-2.17-usrbin.patch.xz
Binary files differ
diff --git a/games/bsd_games/bsd_games.build b/games/bsd_games/bsd_games.build
new file mode 100755
index 0000000..30bccc7
--- /dev/null
+++ b/games/bsd_games/bsd_games.build
@@ -0,0 +1,106 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=bsd_games
+VERSION=2.17
+BUILD=2
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: bsd_games (Classic BSD text games collection)
+${NAME}:
+${NAME}: Contains the following console classics : adventure arithmetic atc
+${NAME}: backgammon banner battlestar bcd caesar canfield cfscores countmail
+${NAME}: cribbage factor fish fortune gomoku hangman hunt mille monop morse
+${NAME}: number phantasia pig pom ppt primes quiz rain random robots rot13
+${NAME}: sail snake snscore teachgammon trek wargames worm worms wump
+${NAME}:
+${NAME}: Adds a call to 'fortune' to /etc/profile.d/ so that users will get a
+${NAME}: fortune message when they log in.
+${NAME}:
+EOF
+
+cat >> ${PKG}/install/doinst.sh <<EOF
+#!/bin/sh
+config() {
+ NEW="\$1"
+ OLD="\$(dirname \$NEW)/\$(basename \$NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r \$OLD ]; then
+ mv \$NEW \$OLD
+ elif [ "\$(cat \$OLD | md5sum)" = "\$(cat \$NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm \$NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+for file in \$(find var/lib/bsdgames -type f ); do
+ config \${file}
+ rm -f \${file}
+done
+EOF
+
+# Sources
+
+SRCNAME[0]=bsd-games
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=ftp://ftp.ibiblio.org/pub/Linux/games/${SRCNAME[0]}-${SRCVERS[0]}.tar.gz
+
+build0()
+{
+sed -i "s|@PKGDIR@|${PKG}|g" config.params
+cp fortune/datfiles/unamerican-o.real fortune/datfiles/unamerican-o.fake
+cp fortune/datfiles/unamerican-o.real unamerican-o
+./configure
+make ${JOBS}
+make install
+doc AUTHORS BUGS THANKS
+changelog NEWS
+install.dir ${PKG}${SYS_DIR[etc]}/{profile.d,tmpfiles.d}
+install.bin fortune.{sh,csh} ${PKG}${SYS_DIR[etc]}/profile.d
+install.dat hunt.conf.tmpfiles ${PKG}${SYS_DIR[etc]}/tmpfiles.d/hunt.conf
+install.dir ${PKG}${SYS_DIR[share]}/dict
+install.dat hangman-words ${PKG}${SYS_DIR[share]}/dict/words
+# Scores etc...
+find ${PKG}${SYS_DIR[var]}/lib/bsdgames -type f -exec mv {} {}.new \;
+chown -R root.games ${PKG}${SYS_DIR[var]}/lib/bsdgames
+chmod 0664 ${PKG}${SYS_DIR[var]}/lib/bsdgames/*
+chmod 0664 ${PKG}${SYS_DIR[var]}/lib/bsdgames/{hack,phantasia}/*
+chmod 0775 ${PKG}${SYS_DIR[var]}/lib/bsdgames/{hack,phantasia}
+#FIXME: this should not go here
+#install.dir ${PKG}${SYS_DIR[share]}/application-data/bsdgames/data/hack/save
+# Conflicting files
+mv ${PKG}${SYS_DIR[bin]}/fish ${PKG}${SYS_DIR[bin]}/go-fish
+mv ${PKG}${SYS_DIR[man]}/man6/fish.6 ${PKG}${SYS_DIR[man]}/man6/go-fish.6
+mv ${PKG}${SYS_DIR[man]}/man6/worm.6 ${PKG}${SYS_DIR[man]}/man6/worm-game.6
+# Extra fortunes
+rm -f ${PKG}${SYS_DIR[share]}/application-data/bsdgames/fortune/limerick{,.dat}
+install.dat extra-fortunes/* ${PKG}${SYS_DIR[share]}/application-data/bsdgames/fortune
+(
+cd ${PKG}${SYS_DIR[share]}/application-data/bsdgames/fortune
+rm -f *.dat
+for file in ./*; do
+ ${PKG}${SYS_DIR[bin]}/strfile -r $(basename ${file} .dat)
+done
+for file in ./*-o; do
+ ${PKG}${SYS_DIR[bin]}/strfile -r -x $(basename ${file} .dat)
+done
+)
+# Clean-up
+rm -rf \
+ ${PKG}/tmp \
+ ${PKG}${SYS_DIR[doc]}/trek.me
+}