1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

A multiplayer modification for the PC version

of Rockstar's GTA: San Andreas allowing users
to play together over internet or LAN connections

WWW: http://www.sa-mp.com/

PR:		ports/106108
Submitted by:	Alexander Logvinov <ports at logvinov.com>
This commit is contained in:
Martin Wilke 2006-12-02 00:32:11 +00:00
parent 918ed17c0c
commit 620cb3cae5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=178539
7 changed files with 121 additions and 0 deletions

View File

@ -619,6 +619,7 @@
SUBDIR += rtcw
SUBDIR += rubix
SUBDIR += ruby-exmars
SUBDIR += sampsvr
SUBDIR += sarien
SUBDIR += sauerbraten
SUBDIR += scare

37
games/sampsvr/Makefile Normal file
View File

@ -0,0 +1,37 @@
# New ports collection makefile for: sampsvr
# Date created: 6 November 2006
# Whom: Alexander Logvinov <ports@logvinov.com>
#
# $FreeBSD$
PORTNAME= sampsvr
PORTVERSION= 0.1b
CATEGORIES= games linux
MASTER_SITES= http://www.sa-mp.com/files/ \
http://eu.littlewhitey.com/ \
http://server.safclan.net/upload/
DISTNAME= ${SAMPVER}.linux.cpp6
MAINTAINER= ports@logvinov.com
COMMENT= Rockstar's GTA: San Andreas multiplayer modification dedicated server
USE_LINUX= yes
NO_BUILD= yes
SAMPVER= samp01b
USE_RC_SUBR= sampd
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= SAMPDIR="${PORTNAME}"
SUB_FILES= pkg-message
SUB_LIST= SAMPDIR="${PREFIX}/${PORTNAME}"
post-patch:
@${MV} ${WRKSRC}/server.cfg ${WRKSRC}/server.cfg.dist
@${MV} ${WRKSRC}/${SAMPVER} ${WRKSRC}/${USE_RC_SUBR}
do-install:
@${CP} -Rp ${WRKSRC}/ ${PREFIX}/${PORTNAME}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

3
games/sampsvr/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (samp01b.linux.cpp6.tar.gz) = 2923c82d27b5af4e306a0bbe2a5a655d
SHA256 (samp01b.linux.cpp6.tar.gz) = fc9ff738506989985f1f224761a22906af8b5e6910c6860aaddae617fce0cfba
SIZE (samp01b.linux.cpp6.tar.gz) = 230006

View File

@ -0,0 +1,5 @@
***********************************************************************
# cp %%SAMPDIR%%/server.cfg.dist %%SAMPDIR%%/server.cfg
Read %%SAMPDIR%%/README to configure SA-MP Server
***********************************************************************

View File

@ -0,0 +1,39 @@
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: sampd
# REQUIRE: NETWORKING
#
# Add the following line to /etc/rc.conf[.local] to enable sampd
#
# sampd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable sampd.
. %%RC_SUBR%%
name="sampd"
rcvar=${name}_enable
load_rc_config $name
: ${sampd_enable="NO"}
: ${sampd_chdir="%%SAMPDIR%%"}
command="%%SAMPDIR%%/sampd"
command_args="&"
required_files="%%SAMPDIR%%/server.cfg"
start_precmd="sampd_prestart"
stop_precmd="sampd_prestop"
sampd_prestart() {
if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then
err 1 "Linux support required"
fi
}
sampd_prestop() {
rc_pid=`echo $rc_pid | awk '{print $1}'`
}
run_rc_command "$1"

5
games/sampsvr/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
A multiplayer modification for the PC version
of Rockstar's GTA: San Andreas allowing users
to play together over internet or LAN connections
WWW: http://www.sa-mp.com/

31
games/sampsvr/pkg-plist Normal file
View File

@ -0,0 +1,31 @@
@unexec if cmp -s %D/%%SAMPDIR%%/server.cfg %D/%%SAMPDIR%%/server.cfg.dist; then rm -f %D/%%SAMPDIR%/server.cfg; fi
%%SAMPDIR%%/filterscripts/admingivecash.amx
%%SAMPDIR%%/gamemodes/src/freighter.pwn
%%SAMPDIR%%/gamemodes/src/rivershell.pwn
%%SAMPDIR%%/gamemodes/src/lvdm.pwn
%%SAMPDIR%%/gamemodes/src/lyse.pwn
%%SAMPDIR%%/gamemodes/src/ls-parachute.pwn
%%SAMPDIR%%/gamemodes/src/manhunt-lv.pwn
%%SAMPDIR%%/gamemodes/src/minigunmadness.pwn
%%SAMPDIR%%/gamemodes/src/area51.pwn
%%SAMPDIR%%/gamemodes/src/cng.pwn
%%SAMPDIR%%/gamemodes/src/monster.pwn
%%SAMPDIR%%/gamemodes/src/sftdm.pwn
%%SAMPDIR%%/gamemodes/ls-parachute.amx
%%SAMPDIR%%/gamemodes/sftdm.amx
%%SAMPDIR%%/gamemodes/lvdm.amx
%%SAMPDIR%%/gamemodes/monster.amx
%%SAMPDIR%%/gamemodes/rivershell.amx
%%SAMPDIR%%/gamemodes/freighter.amx
%%SAMPDIR%%/gamemodes/manhunt-lv.amx
%%SAMPDIR%%/gamemodes/area51.amx
%%SAMPDIR%%/gamemodes/lyse.amx
%%SAMPDIR%%/gamemodes/minigunmadness.amx
%%SAMPDIR%%/announce
%%SAMPDIR%%/README
%%SAMPDIR%%/sampd
%%SAMPDIR%%/server.cfg.dist
@dirrmtry %%SAMPDIR%%/gamemodes/src
@dirrmtry %%SAMPDIR%%/gamemodes
@dirrmtry %%SAMPDIR%%/filterscripts
@dirrmtry %%SAMPDIR%%