diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-07-18 13:49:36 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-07-18 13:49:36 +0000 |
commit | d6d0ac4d67ba05a8120d0c164a3b31c277d5d087 (patch) | |
tree | 3799999fba6781a79e952567d162a6a14ad404f7 /games/atitd | |
parent | 1107ac90ad79eb6d78d47983e6d18cbcc80a6a11 (diff) | |
download | FreeBSD-ports-d6d0ac4d67ba05a8120d0c164a3b31c277d5d087.zip FreeBSD-ports-d6d0ac4d67ba05a8120d0c164a3b31c277d5d087.tar.gz |
The Linux client for "A Tale in the Desert".
This is a Massively Multiplayer Online Roleplaying Game (MMORPG) MMORPG.
The download and first 24 hours of trial gameplay are free.
http://www.atitd.com/ for more info.
Diffstat (limited to 'games/atitd')
-rw-r--r-- | games/atitd/Makefile | 63 | ||||
-rw-r--r-- | games/atitd/distinfo | 1 | ||||
-rw-r--r-- | games/atitd/files/atitd.sh | 10 | ||||
-rw-r--r-- | games/atitd/pkg-deinstall | 39 | ||||
-rw-r--r-- | games/atitd/pkg-descr | 23 | ||||
-rw-r--r-- | games/atitd/pkg-install | 45 | ||||
-rw-r--r-- | games/atitd/pkg-plist | 1 |
7 files changed, 182 insertions, 0 deletions
diff --git a/games/atitd/Makefile b/games/atitd/Makefile new file mode 100644 index 0000000..3f3c618 --- /dev/null +++ b/games/atitd/Makefile @@ -0,0 +1,63 @@ +# New ports collection makefile for: atitd +# Date created: 17 Jul 2003 +# Whom: Matthew N. Dodd <mdodd@FreeBSD.ORG> +# +# $FreeBSD$ +# + +PORTNAME= atitd +PORTVERSION= 1.0 +CATEGORIES= games graphics linux +MASTER_SITES= http://www.atitd.com/ +DISTNAME= eClient-linux.run +EXTRACT_SUFX= +EXTRACT_ONLY= + +MAINTAINER= mdodd@freebsd.org +COMMENT= The Linux "A Tale in the Desert" (ATITD) client + +RUN_DEPENDS= ${X11BASE}/bin/xhost:${PORTSDIR}/x11/XFree86-4-clients + +.include <bsd.port.pre.mk> + +.if ${XFREE86_VERSION} == 4 +RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri +.else +RUN_DEPENDS+= ${LINUXBASE}/lib/libGL.so:${PORTSDIR}/graphics/linux_glx +.endif + +USE_LINUX= yes +USE_MESA= yes + +ONLY_FOR_ARCHS= i386 +NO_CDROM= "Redistribution not allowed" +NO_BUILD= yes +NO_WRKSUBDIR= yes + +LINUX_SH= ${LINUXBASE}/bin/sh +ECLIENT= ${DISTDIR}/${DISTFILES} + +checksum: + @${LINUX_SH} ${ECLIENT} --check + +post-extract: + @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/atitd.sh > ${WRKSRC}/atitd.sh + +pre-install: + @${ECHO_MSG} "===> Running the pre-install script." + @PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PORTNAME} PRE-INSTALL + +do-install: + @${LINUX_SH} ${ECLIENT} --nox11 --nochown \ + --target ${PREFIX}/games/atitd + @${TOUCH} ${TOUCH_FLAGS} ${INSTALL_COOKIE} + +post-install: + @${ECHO_MSG} "===> Fixing permissions." + @${CHOWN} -R atitd:atitd ${PREFIX}/games/atitd + @${CHMOD} ug+s ${PREFIX}/games/atitd/elaunch + ${INSTALL_SCRIPT} ${WRKSRC}/atitd.sh ${PREFIX}/bin/atitd + @${ECHO_MSG} "===> Running the post-install script." + @PKG_PREFIX=${PREFIX} ${SH} pkg-install ${PORTNAME} POST-INSTALL + +.include <bsd.port.post.mk> diff --git a/games/atitd/distinfo b/games/atitd/distinfo new file mode 100644 index 0000000..a1924dc --- /dev/null +++ b/games/atitd/distinfo @@ -0,0 +1 @@ +MD5 (eClient-linux.run) = 679c95850b77c0fee1caa4b97d4304a5 diff --git a/games/atitd/files/atitd.sh b/games/atitd/files/atitd.sh new file mode 100644 index 0000000..61e33b1 --- /dev/null +++ b/games/atitd/files/atitd.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +DIR=%%PREFIX%%/games/atitd +CLIENT=elaunch +XHOST=/usr/X11R6/bin/xhost + +$XHOST +nis:atitd@ +cd ${DIR} +./${CLIENT} -nosound $* +$XHOST -nis:atitd@ diff --git a/games/atitd/pkg-deinstall b/games/atitd/pkg-deinstall new file mode 100644 index 0000000..1d3cccf --- /dev/null +++ b/games/atitd/pkg-deinstall @@ -0,0 +1,39 @@ +#!/bin/sh + +PATH=/bin:/usr/sbin + +if [ -n "${PACKAGE_BUILDING}" ]; then + exit 0 +fi + +case $2 in +DEINSTALL) + rm -fr ${PKG_PREFIX}/games/atitd + + ;; + +POST-DEINSTALL) + PW=/usr/sbin/pw + USER=atitd + GROUP=atitd + + echo -n "Checking for group '$GROUP'... " + + if ! ${PW} groupshow $GROUP >/dev/null 2>&1; then + echo "doesn't exist." + else + echo "deleting." + ${PW} groupdel -n ${GROUP} + fi + + echo -n "Checking for user '$USER'... " + + if ! ${PW} usershow $USER >/dev/null 2>&1; then + echo "doesn't exist." + else + echo "deleting." + ${PW} userdel -n ${USER} + fi + + ;; +esac diff --git a/games/atitd/pkg-descr b/games/atitd/pkg-descr new file mode 100644 index 0000000..8a2e9fc --- /dev/null +++ b/games/atitd/pkg-descr @@ -0,0 +1,23 @@ +The Linux "A Tale in the Desert" (ATITD) client. +A Massively Multiplayer Online Roleplaying Game (MMORPG) by eGenesis. + +A free 24 hour demo period is provided for new users to evaluate this game. + +System Requirements: + + Required: + Pentium 400 + 192Mb Ram + 3D Accelerator + Recommended: + Pentium 700+ + 256Mb Ram + GeForce video card + +- NVIDIA users may have to reinstall the nvidia-driver port as installing + this port may cause the linux_dri port to be installed. Alternately move + the /compat/linux/usr/X11R6/lib/libGL.so.* libraries out of the way. +- DRI users may experience problems whose solution may be a more up to date + version of MesaGL (ports/graphics/mesagl). + +WWW: http://www.atitd.com/ diff --git a/games/atitd/pkg-install b/games/atitd/pkg-install new file mode 100644 index 0000000..418a4fc --- /dev/null +++ b/games/atitd/pkg-install @@ -0,0 +1,45 @@ +#!/bin/sh + +PATH=/bin:/usr/sbin + +if [ -n "${PACKAGE_BUILDING}" ]; then + exit 0 +fi + +case $2 in +PRE-INSTALL) + PW=/usr/sbin/pw + USER=atitd + GROUP=atitd + GECOS="A Tale in the Desert" + + echo -n "Checking for group '$GROUP'... " + + if ! ${PW} groupshow $GROUP >/dev/null 2>&1; then + echo -n "doesn't exist, adding... " + if ${PW} groupadd $GROUP ; then + echo "success." + else + echo "FAILED!" + exit 1 + fi + else + echo "exists." + fi + + echo -n "Checking for user '$USER'... " + + if ! ${PW} usershow $USER >/dev/null 2>&1; then + echo -n "doesn't exist, adding... " + if ${PW} useradd $USER -c "${GECOS}" -d /nonexistent -g $GROUP -s /sbin/nologin -h - ; then + echo "success." + else + echo "FAILED!" + exit 1 + fi + else + echo "exists." + fi + + ;; +esac diff --git a/games/atitd/pkg-plist b/games/atitd/pkg-plist new file mode 100644 index 0000000..21f1ec9 --- /dev/null +++ b/games/atitd/pkg-plist @@ -0,0 +1 @@ +bin/atitd |