Bug 61146 - UPDATE & UNFORBID PORT: games/mvdsv
Summary: UPDATE & UNFORBID PORT: games/mvdsv
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Kirill Ponomarev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-09 22:10 UTC by Alexey Dokuchaev
Modified: 2004-01-09 22:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Dokuchaev 2004-01-09 22:10:06 UTC
Unforbid this useful port by upgrading to recently released 0.1722b
release.  Full changelog available at their website.
Also, introduce minor port cleanups.

Fix: Apply the following diff:
%%%


patch-sv_login.c
	patch-sv_sv_main.c
	patch-sv_sys_unix.c--62UvO5YtwdXQsNOlTNrMDFpstsC5XEyF4nEy4Pb0vxjXtByS
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

diff -ur /usr/ports/games/mvdsv/Makefile mvdsv/Makefile
--- /usr/ports/games/mvdsv/Makefile	Wed Dec 10 15:59:53 2003
+++ mvdsv/Makefile	Sat Jan 10 03:54:17 2004
@@ -6,29 +6,27 @@
 #
 
 PORTNAME=	mvdsv
-PORTVERSION=	0.165b
+PORTVERSION=	0.1722
 CATEGORIES=	games
-MASTER_SITES=	http://www.wsb.poznan.pl/~pawel/q/q/ktpro/develop/ \
+MASTER_SITES=	http://www.wsb.poznan.pl/~pawel/q/q/ktpro/ \
 		http://freebsd.nsu.ru/distfiles/
-DISTNAME=	qwex_src-${PORTVERSION}
+DISTNAME=	${PORTNAME}-${PORTVERSION}
 
 MAINTAINER=	danfe@regency.nsu.ru
 COMMENT=	Enhanced QuakeWorld server with multi-view demos capability
 
-FORBIDDEN=	Remote buffer overflow exists
-
 MAKEFILE=	${FILESDIR}/Makefile
-WRKSRC=		${WRKDIR}/mvdsrc/source
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/vvd/${PORTNAME}${PORTVERSION}b/source
 
 pre-everything::
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+	@${ECHO_MSG} "Define WITH_OPTIMIZED_CFLAGS to enable extra optimization options"
+.endif
 .if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
 	@${ECHO_MSG} "Define WITHOUT_X86_ASM to disable x86 assembly code"
 .endif
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
-
-post-install:
-	@${SED} -e 's#$${PREFIX}#${PREFIX}#g' ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -ur /usr/ports/games/mvdsv/distinfo mvdsv/distinfo
--- /usr/ports/games/mvdsv/distinfo	Wed Jun  4 02:36:13 2003
+++ mvdsv/distinfo	Sat Jan 10 03:53:11 2004
@@ -1 +1 @@
-MD5 (qwex_src-0.165b.tar.gz) = 69329a418fedafb43277acae8d5aca10
+MD5 (mvdsv-0.1722.tar.gz) = 141760e87b64508fc0a66fc2dc9776c7
diff -ur /usr/ports/games/mvdsv/files/Makefile mvdsv/files/Makefile
--- /usr/ports/games/mvdsv/files/Makefile	Wed Jun  4 02:36:13 2003
+++ mvdsv/files/Makefile	Sat Jan 10 03:53:11 2004
@@ -11,7 +11,7 @@
 # Created on Wednesday, May 21 2003 by Alexey Dokuchaev <danfe@regency.nsu.ru>
 #
 
-DO_CFLAGS =	${CFLAGS} -funsigned-char -I${LOCALBASE}/include -DSERVERONLY
+DO_CFLAGS =	${CFLAGS} -funsigned-char -I${LOCALBASE}/include -DSERVERONLY -Dstricmp=strcasecmp
 
 .if ${MACHINE_ARCH} == "i386" && !defined(WITHOUT_X86_ASM)
 DO_CFLAGS +=	-Did386
diff -ur /usr/ports/games/mvdsv/files/patch-sv_demo.c mvdsv/files/patch-sv_demo.c
--- /usr/ports/games/mvdsv/files/patch-sv_demo.c	Wed Jun  4 02:36:13 2003
+++ mvdsv/files/patch-sv_demo.c	Sat Jan 10 03:53:11 2004
@@ -1,6 +1,6 @@
 --- sv_demo.c.orig	Tue Jun  3 17:50:02 2003
 +++ sv_demo.c	Tue Jun  3 17:53:09 2003
-@@ -607,12 +607,12 @@
+@@ -610,12 +610,12 @@
  {
  	if (!USACACHE)
  	{
%%%
Also, don't forget to remove now unneeded patches in files/ subdirectory:
How-To-Repeat: N/A
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2004-01-09 22:14:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->krion

I'll take it.
Comment 2 Kirill Ponomarev freebsd_committer freebsd_triage 2004-01-09 22:29:42 UTC
State Changed
From-To: open->closed

Committed, thanks!