Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Dec 2006 13:09:19 +0900 (YAKT)
From:      Alexander Logvinov <ports@logvinov.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Alexander Logvinov <ports@logvinov.com>
Subject:   ports/106108: [new port] games/sampsvr: Rockstar's GTA: San Andreas dedicated server
Message-ID:  <200612010409.kB149J8T066062@blg.akavia.ru>
Resent-Message-ID: <200612010410.kB14AGc0088747@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106108
>Category:       ports
>Synopsis:       [new port] games/sampsvr: Rockstar's GTA: San Andreas 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:   Fri Dec 01 04:10:11 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.1-RELEASE-p3 i386
>Organization:
>Environment:

>Description:

    A multiplayer modification for the PC version of Rockstar's GTA: San Andreas
    allowing users to play together over internet or LAN connections
    
>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:
#
#	sampsvr/
#	sampsvr/distinfo
#	sampsvr/Makefile
#	sampsvr/pkg-descr
#	sampsvr/files
#	sampsvr/files/sampd.in
#	sampsvr/files/pkg-message.in
#	sampsvr/pkg-plist
#
echo c - sampsvr/
mkdir -p sampsvr/ > /dev/null 2>&1
echo x - sampsvr/distinfo
sed 's/^X//' >sampsvr/distinfo << 'END-of-sampsvr/distinfo'
XMD5 (samp01b.linux.cpp6.tar.gz) = 2923c82d27b5af4e306a0bbe2a5a655d
XSHA256 (samp01b.linux.cpp6.tar.gz) = fc9ff738506989985f1f224761a22906af8b5e6910c6860aaddae617fce0cfba
XSIZE (samp01b.linux.cpp6.tar.gz) = 230006
END-of-sampsvr/distinfo
echo x - sampsvr/Makefile
sed 's/^X//' >sampsvr/Makefile << 'END-of-sampsvr/Makefile'
X# New ports collection makefile for:	sampsvr
X# Date created:				6 November 2006
X# Whom:					Alexander Logvinov <ports@logvinov.com>
X#
X# $FreeBSD$
X
XPORTNAME=	sampsvr
XPORTVERSION=	0.1b
XCATEGORIES=	games linux
XMASTER_SITES=	http://www.sa-mp.com/files/ \
X		http://eu.littlewhitey.com/ \
X		http://server.safclan.net/upload/
XDISTNAME=	${SAMPVER}.linux.cpp6
X
XMAINTAINER=	ports@logvinov.com
XCOMMENT=	Rockstar's GTA: San Andreas multiplayer modification dedicated server
X
XUSE_LINUX=	yes
XNO_BUILD=	yes
XSAMPVER=	samp01b
XUSE_RC_SUBR=	sampd
XWRKSRC=		${WRKDIR}/${PORTNAME}
XPLIST_SUB=	SAMPDIR="${PORTNAME}"
XSUB_FILES=	pkg-message
XSUB_LIST=	SAMPDIR="${PREFIX}/${PORTNAME}"
X
Xpost-patch:
X	@${MV} ${WRKSRC}/server.cfg ${WRKSRC}/server.cfg.dist
X	@${MV} ${WRKSRC}/${SAMPVER} ${WRKSRC}/${USE_RC_SUBR}
X
Xdo-install:
X	@${CP} -Rp ${WRKSRC}/ ${PREFIX}/${PORTNAME}
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-sampsvr/Makefile
echo x - sampsvr/pkg-descr
sed 's/^X//' >sampsvr/pkg-descr << 'END-of-sampsvr/pkg-descr'
XA multiplayer modification for the PC version
Xof Rockstar's GTA: San Andreas allowing users
Xto play together over internet or LAN connections
X
XWWW: http://www.sa-mp.com/
END-of-sampsvr/pkg-descr
echo c - sampsvr/files
mkdir -p sampsvr/files > /dev/null 2>&1
echo x - sampsvr/files/sampd.in
sed 's/^X//' >sampsvr/files/sampd.in << 'END-of-sampsvr/files/sampd.in'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X# PROVIDE: sampd
X# REQUIRE: NETWORKING
X#
X# Add the following line to /etc/rc.conf[.local] to enable sampd
X#
X# sampd_enable (bool):		Set to "NO" by default.
X#                               Set it to "YES" to enable sampd.
X
X. %%RC_SUBR%%
X
Xname="sampd"
Xrcvar=${name}_enable
X
Xload_rc_config $name
X
X: ${sampd_enable="NO"}
X: ${sampd_chdir="%%SAMPDIR%%"}
X
Xcommand="%%SAMPDIR%%/sampd"
Xcommand_args="&"
Xrequired_files="%%SAMPDIR%%/server.cfg"
Xstart_precmd="sampd_prestart"
Xstop_precmd="sampd_prestop"
X
Xsampd_prestart() {
X    if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then
X	err 1 "Linux support required"
X    fi
X}
X		
Xsampd_prestop() {
X    rc_pid=`echo $rc_pid | awk '{print $1}'`
X}
X		    
Xrun_rc_command "$1"
END-of-sampsvr/files/sampd.in
echo x - sampsvr/files/pkg-message.in
sed 's/^X//' >sampsvr/files/pkg-message.in << 'END-of-sampsvr/files/pkg-message.in'
X***********************************************************************
X# cp %%SAMPDIR%%/server.cfg.dist %%SAMPDIR%%/server.cfg
X
XRead %%SAMPDIR%%/README to configure SA-MP Server
X***********************************************************************
END-of-sampsvr/files/pkg-message.in
echo x - sampsvr/pkg-plist
sed 's/^X//' >sampsvr/pkg-plist << 'END-of-sampsvr/pkg-plist'
X@unexec if cmp -s %D/%%SAMPDIR%%/server.cfg %D/%%SAMPDIR%%/server.cfg.dist; then rm -f %D/%%SAMPDIR%/server.cfg; fi
X%%SAMPDIR%%/filterscripts/admingivecash.amx
X%%SAMPDIR%%/gamemodes/src/freighter.pwn
X%%SAMPDIR%%/gamemodes/src/rivershell.pwn
X%%SAMPDIR%%/gamemodes/src/lvdm.pwn
X%%SAMPDIR%%/gamemodes/src/lyse.pwn
X%%SAMPDIR%%/gamemodes/src/ls-parachute.pwn
X%%SAMPDIR%%/gamemodes/src/manhunt-lv.pwn
X%%SAMPDIR%%/gamemodes/src/minigunmadness.pwn
X%%SAMPDIR%%/gamemodes/src/area51.pwn
X%%SAMPDIR%%/gamemodes/src/cng.pwn
X%%SAMPDIR%%/gamemodes/src/monster.pwn
X%%SAMPDIR%%/gamemodes/src/sftdm.pwn
X%%SAMPDIR%%/gamemodes/ls-parachute.amx
X%%SAMPDIR%%/gamemodes/sftdm.amx
X%%SAMPDIR%%/gamemodes/lvdm.amx
X%%SAMPDIR%%/gamemodes/monster.amx
X%%SAMPDIR%%/gamemodes/rivershell.amx
X%%SAMPDIR%%/gamemodes/freighter.amx
X%%SAMPDIR%%/gamemodes/manhunt-lv.amx
X%%SAMPDIR%%/gamemodes/area51.amx
X%%SAMPDIR%%/gamemodes/lyse.amx
X%%SAMPDIR%%/gamemodes/minigunmadness.amx
X%%SAMPDIR%%/announce
X%%SAMPDIR%%/README
X%%SAMPDIR%%/sampd
X%%SAMPDIR%%/server.cfg.dist
X@dirrmtry %%SAMPDIR%%/gamemodes/src
X@dirrmtry %%SAMPDIR%%/gamemodes
X@dirrmtry %%SAMPDIR%%/filterscripts
X@dirrmtry %%SAMPDIR%%
END-of-sampsvr/pkg-plist
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612010409.kB149J8T066062>