aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorbsam <bsam@FreeBSD.org>2006-08-11 22:38:55 +0800
committerbsam <bsam@FreeBSD.org>2006-08-11 22:38:55 +0800
commit28a7ff89b19072438a1f992f110e06b360d33bbf (patch)
treeb0cc3641aec2445c6766427bb195322e7c747956 /games
parent42657fc49c68dba8b8d4d6c89b3242927ea8c9fc (diff)
downloadfreebsd-ports-gnome-28a7ff89b19072438a1f992f110e06b360d33bbf.tar.gz
freebsd-ports-gnome-28a7ff89b19072438a1f992f110e06b360d33bbf.tar.zst
freebsd-ports-gnome-28a7ff89b19072438a1f992f110e06b360d33bbf.zip
o Makefile: polish MASTER_SITES; [1]
o rc_subr script: check up using of /usr/sbin/daemon and support <user> to run command as. [1] o while I'm here: replace spaces to tabs at Makefile after variables. PR: 101792 [1] Submitted by: Alexander Logvinov <ports@logvinov.com> (maintainer) [1] Approved by: netchild (mentor, implicit)
Diffstat (limited to 'games')
-rw-r--r--games/utserver/Makefile28
-rw-r--r--games/utserver/files/ucc.in13
-rw-r--r--games/utserver/pkg-descr2
3 files changed, 26 insertions, 17 deletions
diff --git a/games/utserver/Makefile b/games/utserver/Makefile
index a74cdf2b3a24..2b5c5749435e 100644
--- a/games/utserver/Makefile
+++ b/games/utserver/Makefile
@@ -7,14 +7,14 @@
PORTNAME= utserver
PORTVERSION= 451
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= games linux
-MASTER_SITES= http://public.planetmirror.com/pub/lokigames/installers/ut/:p436 \
- http://fileserver.talkware.net/ut/:p436 \
- http://freebsd.unixfreunde.de/sources/:p436 \
+MASTER_SITES= http://freebsd.unixfreunde.de/sources/:p436 \
+ ftp://ftp.wireplay.co.uk/pub/unrealtournament/server/:p436 \
+ ftp://ftp.fh-niederrhein.de/pub/win9x/gamesup/ut/:p436 \
http://www.utpg.org/patches/:p451
-DISTFILES= ut-server-436.tar.gz:p436 ${PATCH451FILES}
-EXTRACT_ONLY= ut-server-436.tar.gz
+DISTFILES= ut-server-436.tar.gz:p436 ${PATCH451FILES}
+EXTRACT_ONLY= ut-server-436.tar.gz
MAINTAINER= ports@logvinov.com
COMMENT= Unreal Tournament Dedicated Server for Linux
@@ -28,14 +28,14 @@ USE_PERL5= yes
NO_CDROM= Size; the data set is much too big
NO_BUILD= yes
WRKSRC= ${WRKDIR}/ut-server
-USE_RC_SUBR= ucc
-
-UTDIR= ut-server
-PLIST_SUB= UTDIR="${UTDIR}/"
-SUB_LIST= UTDIR="${PREFIX}/${UTDIR}"
-SUB_FILES= pkg-message
-PATCH451FILES= UTPGPatch451.tar.bz2:p451
-EXTRA_PATCHES= ${WRKDIR}/patch-ngstatsut
+USE_RC_SUBR= ucc
+
+UTDIR= ut-server
+PLIST_SUB= UTDIR="${UTDIR}/"
+SUB_LIST= UTDIR="${PREFIX}/${UTDIR}"
+SUB_FILES= pkg-message
+PATCH451FILES= UTPGPatch451.tar.bz2:p451
+EXTRA_PATCHES= ${WRKDIR}/patch-ngstatsut
pre-patch:
@${SED} -e "s!%%LOCALBASE%%!${LOCALBASE}!" \
diff --git a/games/utserver/files/ucc.in b/games/utserver/files/ucc.in
index 9cd054abef23..b102bcf0309f 100644
--- a/games/utserver/files/ucc.in
+++ b/games/utserver/files/ucc.in
@@ -35,12 +35,21 @@ ucc_startcmd()
return 1
fi
echo Starting ${name}.
+ if [ ! -x /usr/sbin/daemon ]; then
+ err 1 "/usr/sbin/daemon required"
+ fi
+ if ! /usr/sbin/daemon 2>&1 | grep pidfile > /dev/null; then
+ err 1 "/usr/sbin/daemon with -p option required"
+ fi
if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then
err 1 "Linux support required"
- return
fi
cd %%UTDIR%%/System/
- /usr/sbin/daemon -p ${ucc_pidfile} ${command} ${command_args} 2>&1 >> ${ucc_logfile}
+ cmd="/usr/sbin/daemon -p ${ucc_pidfile} ${command} ${command_args}"
+ if [ -n "$ucc_user" ]; then
+ cmd="su -m $ucc_user -c '$cmd'"
+ fi
+ eval "$cmd 2>&1 >> ${ucc_logfile}"
}
run_rc_command "$1"
diff --git a/games/utserver/pkg-descr b/games/utserver/pkg-descr
index 5919dc7f6bc3..7c891f42395a 100644
--- a/games/utserver/pkg-descr
+++ b/games/utserver/pkg-descr
@@ -7,7 +7,7 @@ Dedicated server of the very popular first person shooter game.
netgames patch ver 0.8.2 by Abfackeln included
-WWW: http://ut.abfackeln.com/installer.html?page=dedicated
+WWW: http://ut.abfackeln.com/asu.html?page=dedicated
For more information about UT visit:
http://www.unrealtournament.com/