diff options
author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-07-18 13:49:36 +0000 |
---|---|---|
committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-07-18 13:49:36 +0000 |
commit | 947131db942771665bee22e3b28970c99924f740 (patch) | |
tree | d3d2fa81446a5bdd82a944bda4aa7b46e5e3e635 | |
parent | 6e38ddfc1e14ffa1fa0fbe0b9e91f6af0aaba98a (diff) | |
download | ports-947131db942771665bee22e3b28970c99924f740.tar.gz ports-947131db942771665bee22e3b28970c99924f740.zip |
Notes
-rw-r--r-- | games/Makefile | 1 | ||||
-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 |
8 files changed, 183 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 258318c5e42c..dd62beae6fd3 100644 --- a/games/Makefile +++ b/games/Makefile @@ -27,6 +27,7 @@ SUBDIR += angband SUBDIR += antipolix SUBDIR += asc + SUBDIR += atitd SUBDIR += atomix SUBDIR += atr3d SUBDIR += awele diff --git a/games/atitd/Makefile b/games/atitd/Makefile new file mode 100644 index 000000000000..3f3c618be25e --- /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 000000000000..a1924dcc212d --- /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 000000000000..61e33b1a4429 --- /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 000000000000..1d3cccf428b9 --- /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 000000000000..8a2e9fcc3e5e --- /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 000000000000..418a4fc2a220 --- /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 000000000000..21f1ec9877d7 --- /dev/null +++ b/games/atitd/pkg-plist @@ -0,0 +1 @@ +bin/atitd |