ports/106399: [new port] games/mtaserver: Multi Theft Auto: Vice City and GTA3 dedicated server

Alexander Logvinov ports at logvinov.com
Wed Dec 6 01:20:04 UTC 2006


>Number:         106399
>Category:       ports
>Synopsis:       [new port] games/mtaserver: Multi Theft Auto: Vice City and GTA3 dedicated server
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 06 01:20:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.1-RELEASE-p3 i386
>Organization:
>Environment:

>Description:

    Multi Theft Auto is a modification for Grand Theft Auto: Vice City
    and Grand Theft Auto: GTA3 for PC that allows you to play it online
    against players around the world.    
    
>How-To-Repeat:

>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mtaserver
#	mtaserver/distinfo
#	mtaserver/Makefile
#	mtaserver/pkg-descr
#	mtaserver/pkg-plist
#	mtaserver/files
#	mtaserver/files/mtad.in
#	mtaserver/files/pkg-message.in
#
echo c - mtaserver
mkdir -p mtaserver > /dev/null 2>&1
echo x - mtaserver/distinfo
sed 's/^X//' >mtaserver/distinfo << 'END-of-mtaserver/distinfo'
XMD5 (mta/MTAServer0_5-linux.tar.gz) = 564da53ca55d6c2c5b0c3b09a0f32193
XSHA256 (mta/MTAServer0_5-linux.tar.gz) = 0e4b58658299ac79b1ae6d0bbd4946fc22a7e063986896e69a0749a38c9d17b1
XSIZE (mta/MTAServer0_5-linux.tar.gz) = 229056
XMD5 (mta/MTAServer0_5-linux-patch1.tar.gz) = fba0f891cb4c25f76813fe16d49dbee5
XSHA256 (mta/MTAServer0_5-linux-patch1.tar.gz) = b829eaebfd74f972781153f5e7ede48d08c7ac39e93866b3bfc6ab874b5bb4c1
XSIZE (mta/MTAServer0_5-linux-patch1.tar.gz) = 90196
END-of-mtaserver/distinfo
echo x - mtaserver/Makefile
sed 's/^X//' >mtaserver/Makefile << 'END-of-mtaserver/Makefile'
X# New ports collection makefile for:	mtaserver
X# Date created:				25 November 2006
X# Whom:					Alexander Logvinov <ports at logvinov.com>
X#
X# $FreeBSD$
X
XPORTNAME=	${MTANAME:L}
XPORTVERSION=	0.5
XCATEGORIES=	games linux
XMASTER_SITES=	http://files.gonnaplay.com/201/:main \
X		http://www.trancevibez.com/mta/:both \
X		http://files.gonnaplay.com/20104/:patch
XDISTFILES=	${MTANAME}0_5-linux.tar.gz:main,both ${MTANAME}0_5-linux-patch1.tar.gz:patch,both
XDIST_SUBDIR=	mta
X
XMAINTAINER=	ports at logvinov.com
XCOMMENT=	Multi Theft Auto: Vice City and GTA3 dedicated server
X
XUSE_LINUX=	yes
XNO_BUILD=	yes
XNO_WRKSUBDIR=	yes
X
XUSE_RC_SUBR=	mtad
XMTANAME=	MTAServer
XFILES=		CHANGELOG LICENSE ${PORTNAME} README banned.lst ${PORTNAME}.conf.dist
XPLIST_SUB=	MTADIR="${PORTNAME}"
XSUB_FILES=	pkg-message
XSUB_LIST=	MTADIR="${PREFIX}/${PORTNAME}"
X
Xpost-patch:
X	@${MV} ${WRKSRC}/${MTANAME} ${WRKSRC}/${PORTNAME}
X	@${MV} ${WRKSRC}/${PORTNAME}.conf ${WRKSRC}/${PORTNAME}.conf.dist
X	@${CHMOD} 600 ${WRKSRC}/${PORTNAME}.conf.dist
X
Xdo-install:
X	@${MKDIR} ${PREFIX}/${PORTNAME}
X.for i in ${FILES}
X	@${CP} -p ${WRKSRC}/${i} ${PREFIX}/${PORTNAME}/${i}
X.endfor
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-mtaserver/Makefile
echo x - mtaserver/pkg-descr
sed 's/^X//' >mtaserver/pkg-descr << 'END-of-mtaserver/pkg-descr'
XMulti Theft Auto is a modification for 
XGrand Theft Auto: Vice City and Grand Theft Auto: GTA3
Xfor PC that allows you to play it online against players
Xaround the world.
X
XWWW: http://www.mtavc.com/
END-of-mtaserver/pkg-descr
echo x - mtaserver/pkg-plist
sed 's/^X//' >mtaserver/pkg-plist << 'END-of-mtaserver/pkg-plist'
X at unexec if cmp -s %D/%%MTADIR%%/mtaserver.conf %D/%%MTADIR%%/mtaserver.conf.dist; then rm -f %D/%%MTADIR%%/mtaserver.conf; fi
X%%MTADIR%%/CHANGELOG
X%%MTADIR%%/LICENSE
X%%MTADIR%%/mtaserver
X%%MTADIR%%/README
X%%MTADIR%%/banned.lst
X%%MTADIR%%/mtaserver.conf.dist
X at dirrmtry %%MTADIR%%
END-of-mtaserver/pkg-plist
echo c - mtaserver/files
mkdir -p mtaserver/files > /dev/null 2>&1
echo x - mtaserver/files/mtad.in
sed 's/^X//' >mtaserver/files/mtad.in << 'END-of-mtaserver/files/mtad.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: mtad
X# REQUIRE: NETWORKING
X#
X# Add the following line to /etc/rc.conf[.local] to enable mtad
X#
X# mtad_enable (bool):		Set to "NO" by default.
X#                               Set it to "YES" to enable mtad.
X
X. %%RC_SUBR%%
X
Xname="mtad"
Xrcvar=${name}_enable
X
Xload_rc_config $name
X
X: ${mtad_enable="NO"}
X: ${mtad_chdir="%%MTADIR%%"}
X
Xcommand="%%MTADIR%%/mtaserver"
Xcommand_args="-b 2>&1 > /dev/null &"
Xrequired_files="%%MTADIR%%/mtaserver.conf"
Xstart_precmd="mtad_prestart"
Xstop_precmd="mtad_prestop"
X
Xmtad_prestart() {
X    if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then
X	err 1 "Linux support required"
X    fi
X}
X
Xmtad_prestop() {
X    rc_pid=`echo $rc_pid | awk '{print $1}'`
X}
X    		    
Xrun_rc_command "$1"
END-of-mtaserver/files/mtad.in
echo x - mtaserver/files/pkg-message.in
sed 's/^X//' >mtaserver/files/pkg-message.in << 'END-of-mtaserver/files/pkg-message.in'
X***********************************************************************
X# cp %%MTADIR%%/mtaserver.conf.dist \
X	%%MTADIR%%/mtaserver.conf
X
XRead %%MTADIR%%/README for details
X***********************************************************************
END-of-mtaserver/files/pkg-message.in
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list