diff options
author | miwi <miwi@FreeBSD.org> | 2006-12-02 08:32:11 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2006-12-02 08:32:11 +0800 |
commit | 40ea2ec4e0fc15a2b50da5ca64d705007eb69ad5 (patch) | |
tree | b05b441d7ba46263e77d7bcfbce13bafafc60d8d /games | |
parent | 3eb82d8a2252e893fb71801dbd27c5e17747e883 (diff) | |
download | freebsd-ports-graphics-40ea2ec4e0fc15a2b50da5ca64d705007eb69ad5.tar.gz freebsd-ports-graphics-40ea2ec4e0fc15a2b50da5ca64d705007eb69ad5.tar.zst freebsd-ports-graphics-40ea2ec4e0fc15a2b50da5ca64d705007eb69ad5.zip |
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>
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/sampsvr/Makefile | 37 | ||||
-rw-r--r-- | games/sampsvr/distinfo | 3 | ||||
-rw-r--r-- | games/sampsvr/files/pkg-message.in | 5 | ||||
-rw-r--r-- | games/sampsvr/files/sampd.in | 39 | ||||
-rw-r--r-- | games/sampsvr/pkg-descr | 5 | ||||
-rw-r--r-- | games/sampsvr/pkg-plist | 31 |
7 files changed, 121 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 4e2c79eb308..60013bb5eed 100644 --- a/games/Makefile +++ b/games/Makefile @@ -619,6 +619,7 @@ SUBDIR += rtcw SUBDIR += rubix SUBDIR += ruby-exmars + SUBDIR += sampsvr SUBDIR += sarien SUBDIR += sauerbraten SUBDIR += scare diff --git a/games/sampsvr/Makefile b/games/sampsvr/Makefile new file mode 100644 index 00000000000..8ec06633b34 --- /dev/null +++ b/games/sampsvr/Makefile @@ -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> diff --git a/games/sampsvr/distinfo b/games/sampsvr/distinfo new file mode 100644 index 00000000000..0b3bba55da2 --- /dev/null +++ b/games/sampsvr/distinfo @@ -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 diff --git a/games/sampsvr/files/pkg-message.in b/games/sampsvr/files/pkg-message.in new file mode 100644 index 00000000000..568fe8bc43e --- /dev/null +++ b/games/sampsvr/files/pkg-message.in @@ -0,0 +1,5 @@ +*********************************************************************** +# cp %%SAMPDIR%%/server.cfg.dist %%SAMPDIR%%/server.cfg + +Read %%SAMPDIR%%/README to configure SA-MP Server +*********************************************************************** diff --git a/games/sampsvr/files/sampd.in b/games/sampsvr/files/sampd.in new file mode 100644 index 00000000000..f494fbc2d26 --- /dev/null +++ b/games/sampsvr/files/sampd.in @@ -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" diff --git a/games/sampsvr/pkg-descr b/games/sampsvr/pkg-descr new file mode 100644 index 00000000000..9ccf8e3163e --- /dev/null +++ b/games/sampsvr/pkg-descr @@ -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/ diff --git a/games/sampsvr/pkg-plist b/games/sampsvr/pkg-plist new file mode 100644 index 00000000000..3a11cc2bbc2 --- /dev/null +++ b/games/sampsvr/pkg-plist @@ -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%% |