summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author Robby Workman2011-03-14 21:25:11 +0100
committer Robby Workman2011-03-14 21:25:11 +0100
commita632c51e49f2a9e36e86337cc28ddb4ed183aea7 (patch)
tree7881de47f0315b4401c21a667bf0b40bff330915 /games
parent770020a5fa70bd2e6a1f0eb57e58246ba5962c42 (diff)
downloadslackbuilds-a632c51e49f2a9e36e86337cc28ddb4ed183aea7.tar.gz
games/xbill: Removed (unmaintained)
Reference: http://lists.slackbuilds.org/pipermail/slackbuilds-users/2010-October/006570.html Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/xbill/README20
-rw-r--r--games/xbill/doinst.sh20
-rw-r--r--games/xbill/slack-desc19
-rw-r--r--games/xbill/xbill-wrapper.c82
-rw-r--r--games/xbill/xbill.SlackBuild124
-rw-r--r--games/xbill/xbill.desktop7
-rw-r--r--games/xbill/xbill.info10
-rw-r--r--games/xbill/xbill.pngbin1990 -> 0 bytes
8 files changed, 0 insertions, 282 deletions
diff --git a/games/xbill/README b/games/xbill/README
deleted file mode 100644
index 2012e4db6b..0000000000
--- a/games/xbill/README
+++ /dev/null
@@ -1,20 +0,0 @@
-The xbill game tests your reflexes as you seek out and destroy all
-forms of Bill, establish a new operating system throughout the
-universe, and boldly go where no geek has gone before. Xbill has
-become an increasingly attractive option as the Linux Age progresses,
-and it is very popular at Red Hat.
-
-NOTE:
-Per default xbill sets its score file world writable
-which obviously allows cheating ones hi-score :-(
-Probably this came about since GTK+ doesn't allow setgid?
-
-In the install-script we move xbill to xbill-bin and install
-a wrapper thingy as xbill instead. In the resulting package
-/var/games/xbill is group-writable for 'games' only...
-
-Note on capabilities: FCAPS=true
-This is the default now. It maybe disabled by feeding a 'false'
-value to the build script and the wrapper will be installed with
-setuid and video group executable filesystem perms. As before.
-Just comment it out, if you don't care for any of this stuff :-)
diff --git a/games/xbill/doinst.sh b/games/xbill/doinst.sh
deleted file mode 100644
index 53cf51a704..0000000000
--- a/games/xbill/doinst.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-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...
-}
-
-# Keep old hi-scores if any
-config var/games/xbill/scores.new
-
-# Allow group games write and dissallow write access to others
-chgrp -R games var/games/xbill
-chmod -R g+w,o-w var/games/xbill
-
diff --git a/games/xbill/slack-desc b/games/xbill/slack-desc
deleted file mode 100644
index 04129a7832..0000000000
--- a/games/xbill/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
-# 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 ':'.
-
- |-----handy-ruler-----------------------------------------------------|
-xbill: XBill (Stop Bill from loading his OS into all the computers.)
-xbill:
-xbill: The xbill game tests your reflexes as you seek out and destroy all
-xbill: forms of Bill, establish a new operating system throughout the
-xbill: universe, and boldly go where no geek has gone before. Xbill has
-xbill: become an increasingly attractive option as the Linux Age progresses.
-xbill:
-xbill: XBill was mostly written by Brian Wellingtonxx and Matias Duarte.
-xbill:
-xbill:
-xbill:
diff --git a/games/xbill/xbill-wrapper.c b/games/xbill/xbill-wrapper.c
deleted file mode 100644
index 119e58c014..0000000000
--- a/games/xbill/xbill-wrapper.c
+++ /dev/null
@@ -1,82 +0,0 @@
-/* Written by Menno Duursma for use with xbill */
-
-/*
- * This program is free software. It comes without any warranty.
- * Granted WTFPL, Version 2, as published by Sam Hocevar. See
- * http://sam.zoy.org/wtfpl/COPYING for more details.
- */
-
-/*
- * Per default xbill sets its score file world writable
- * which obviously allows cheating ones hi-score :-(
- * Probably this came about since GTK+ doesn't allow setgid?
- *
- * In the install-script we move xbill to xbill-bin and install
- * this here wrapper thing as xbill, with setuid and video group
- * executable filesystem perms. Here we change groups to games.
- *
- * We should now be able make /var/xbill group-writable only...
- */
-
-#include <stdlib.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <errno.h>
-#include <string.h>
-#include <grp.h>
-
-int main(int argc, char *argv[], char *envp[])
-{
-
- /*
- * hardcoded path/program to exec
- * and group to run under
- */
- char prog[] = "/usr/bin/xbill-bin";
- char grpname[] = "games";
-
- struct group *grp;
- errno = 0;
-
- /* get our gid */
- grp = getgrnam(grpname);
- if (grp == NULL) {
- fprintf(stderr, "Error: getgrnam(%s) - %s\n",
- grpname,
- strerror(errno));
- exit(EXIT_FAILURE);
- }
-
- /* drop to the gid */
- if (setgid(grp->gr_gid)) {
- fprintf(stderr, "Error: setgid(%d) - %s\n",
- grp->gr_gid,
- strerror(errno));
- exit(EXIT_FAILURE);
- }
-
-
- /* drop back to calling uid */
- if (setuid(getuid())) {
- fprintf(stderr, "Error: setuid(%d) - %s\n",
- getuid(),
- strerror(errno));
- exit(EXIT_FAILURE);
- }
-
- /* tell the viewers wat is going to happen */
- fprintf(stderr, "Starting %s with uid = %d, gid = %d\n",
- prog,
- getuid(),
- getgid());
-
- /* fire it up */
- if (execve(prog, argv, envp) == -1) {
- fprintf(stderr, "Error: execve(%s, argv, envp) - %s\n",
- prog,
- strerror(errno));
- exit(EXIT_FAILURE);
- }
-
- return EXIT_SUCCESS;
-}
diff --git a/games/xbill/xbill.SlackBuild b/games/xbill/xbill.SlackBuild
deleted file mode 100644
index 5a02262852..0000000000
--- a/games/xbill/xbill.SlackBuild
+++ /dev/null
@@ -1,124 +0,0 @@
-#!/bin/sh
-
-# Slackware build script for XBill
-
-# Written by Menno Duursma <druiloor@zonnet.nl>
-
-# This program is free software. It comes without any warranty.
-# Granted WTFPL, Version 2, as published by Sam Hocevar. See
-# http://sam.zoy.org/wtfpl/COPYING for more details.
-
-# Modified by SlackBuilds.org
-
-PRGNAM=xbill
-VERSION=${VERSION:-2.1}
-BUILD=${BUILD:-2}
-TAG=${TAG:-_SBo}
-
-# Automatically determine the architecture we're building on:
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i486 ;;
- arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
- *) ARCH=$( uname -m ) ;;
- esac
-fi
-
-CWD=$(pwd)
-TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
-OUTPUT=${OUTPUT:-/tmp}
-
-# On capability enabled filesystems this may be enabled,
-# i'd guess if this box runs x-apps, it probably has...
-FCAPS=${FCAPS:-true}
-
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
-set -e # Exit on most errors
-
-rm -rf $PKG
-mkdir -p $TMP $PKG $OUTPUT
-cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
-chown -R root:root .
-find . \
- \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
- -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
-
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --localstatedir=/var/games \
- --mandir=/usr/man \
- --with-x \
- --enable-motif \
- --enable-athena \
- --enable-gtk \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
-
-# Don't overwrite hi-scores, if any
-mv $PKG/var/games/xbill/scores $PKG/var/games/xbill/scores.new
-
-# Do a little trick to disallow cheating, hopefully
-# Note: we do the privs stuff below at doinst.sh
-cp -a $PKG/usr/bin/xbill $PKG/usr/bin/xbill-bin
-gcc -Wall $SLKCFLAGS $CWD/xbill-wrapper.c -o $PKG/usr/bin/xbill
-
-find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \
- | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-
-( cd $PKG/usr/man || exit 1
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do
- ln -s $( readlink $i ).gz $i.gz ; rm $i
- done
-)
-
-# Add desktop entry nicked from the spec file
-mkdir -p $PKG/usr/share/applications
-install -D -m 0644 $CWD/xbill.desktop $PKG/usr/share/applications/xbill.desktop
-install -D -m 0644 $CWD/xbill.png $PKG/usr/share/pixmaps/xbill.png
-
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a INSTALL README README.Ports ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/xbill-wrapper.c > $PKG/usr/doc/$PRGNAM-$VERSION/xbill-wrapper.c
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-mkdir -p $PKG/install
-cat $CWD/slack-desc > $PKG/install/slack-desc
-cat $CWD/doinst.sh > $PKG/install/doinst.sh
-
-if [ "$FCAPS" != "false" ]; then
- chmod 0751 $PKG/usr/bin/xbill
- echo 'setcap "cap_setgid=ep" usr/bin/xbill' >> $PKG/install/doinst.sh
-else
- # Install setuid-root
- chgrp video usr/bin/xbill
- chmod 4750 $PKG/usr/bin/xbill
-fi
-
-cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/games/xbill/xbill.desktop b/games/xbill/xbill.desktop
deleted file mode 100644
index 48135d4ea0..0000000000
--- a/games/xbill/xbill.desktop
+++ /dev/null
@@ -1,7 +0,0 @@
-[Desktop Entry]
-Name=XBill
-Type=Application
-Comment=Save the world
-Icon=xbill
-Exec=xbill
-Categories=Game;
diff --git a/games/xbill/xbill.info b/games/xbill/xbill.info
deleted file mode 100644
index 75b526f51f..0000000000
--- a/games/xbill/xbill.info
+++ /dev/null
@@ -1,10 +0,0 @@
-PRGNAM="xbill"
-VERSION="2.1"
-HOMEPAGE="http://www.xbill.org/"
-DOWNLOAD="http://www.xbill.org/download/xbill-2.1.tar.gz"
-MD5SUM="585e4866b15255a24203db9959407b2f"
-DOWNLOAD_x86_64=""
-MD5SUM_x86_64=""
-MAINTAINER="Menno E. Duursma"
-EMAIL="druiloor@zonnet.nl"
-APPROVED="dsomero"
diff --git a/games/xbill/xbill.png b/games/xbill/xbill.png
deleted file mode 100644
index 0d7a876eea..0000000000
--- a/games/xbill/xbill.png
+++ /dev/null
Binary files differ