ports/129334: [maintainer update] games/sampsvr: update to 0.2.3

Alexander Logvinov ports at logvinov.com
Mon Dec 1 14:00:04 UTC 2008


>Number:         129334
>Category:       ports
>Synopsis:       [maintainer update] games/sampsvr: update to 0.2.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 01 14:00:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Logvinov
>Release:        FreeBSD 6.4-RELEASE i386
>Organization:
>Environment:

>Description:

  Update to 0.2.3, but in fact this is 0.2.X.
  Move files base to ${PREFIX}/libexec.
    
>How-To-Repeat:

>Fix:

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/games/sampsvr/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	5 Sep 2007 15:02:49 -0000	1.6
+++ Makefile	26 Nov 2008 05:30:36 -0000
@@ -5,30 +5,24 @@
 # $FreeBSD: ports/games/sampsvr/Makefile,v 1.6 2007/09/05 15:02:49 rafan Exp $
 
 PORTNAME=	sampsvr
-DISTVERSION=	0.2.2
+PORTVERSION=	0.2.3
 CATEGORIES=	games linux
-MASTER_SITES=	http://www.sa-mp.com/files/ \
-		http://eu.littlewhitey.com/ \
-		http://dedi.azer.nl/upload/ \
-		http://www.kfcgang.com/files/ \
-		http://files.gtanet.com/samp/ \
-		http://thegtaplanet.net/download/ \
-		http://sa-mp.popznet.com/files/
-DISTNAME=	samp022svr
+MASTER_SITES=	http://files.sa-mp.com/
+DISTNAME=	samp02Xsvr
 
 MAINTAINER=	ports at logvinov.com
 COMMENT=	Rockstar's GTA: San Andreas multiplayer modification dedicated server
 
 USE_LINUX=	yes
 NO_BUILD=	yes
-WRKSRC=		${WRKDIR}/samp022
-USE_DOS2UNIX=	server.cfg *.pwn
+WRKSRC=		${WRKDIR}/${DISTNAME:S,svr,,}
+USE_DOS2UNIX=	*.txt *.pwn
 USE_RC_SUBR=	sampd
-SAMPDIR=	${PREFIX}/lib/${PORTNAME}
+SAMPDIR=	${PREFIX}/libexec/${PORTNAME}
 PORTDOCS=	README
-PLIST_SUB=	SAMPDIR="${SAMPDIR:S,^${PREFIX}/,,}"
+PLIST_SUB=	SAMPDIR="${SAMPDIR:S,^${PREFIX}/,,}" SAMPBIN=${DISTNAME}
 SUB_FILES=	pkg-message
-SUB_LIST=	SAMPDIR="${SAMPDIR}"
+SUB_LIST=	SAMPDIR="${SAMPDIR}" SAMPBIN=${DISTNAME}
 .if !defined(NOPORTDOCS)
 SUB_LIST+=	NOTEWORK="Read ${DOCSDIR}/README to configure SA-MP Server"
 .else
@@ -39,20 +33,20 @@
 
 do-install:
 	${MKDIR} ${SAMPDIR}
-.for i in samp022svr announce
+.for i in ${DISTNAME} announce
 	${BRANDELF} -t Linux ${WRKSRC}/${i}
 	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${SAMPDIR}
 .endfor
 	${MKDIR} ${DATADIR}
 	cd ${WRKSRC} && \
 	${FIND} . -type d ! -empty -exec \
-		${MKDIR} "${DATADIR}/{}" \; && \
-	${FIND} filterscripts -type f -exec \
-		${INSTALL_DATA} "{}" "${DATADIR}/{}" \; && \
-	${FIND} gamemodes -type f -exec \
+		${MKDIR} "${DATADIR}/{}" \;
+.for i in filterscripts gamemodes scriptfiles
+	cd ${WRKSRC} && \
+	${FIND} ${i} -type f -exec \
 		${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
-	${LN} -sf ${DATADIR}/filterscripts/ ${SAMPDIR}/filterscripts
-	${LN} -sf ${DATADIR}/gamemodes/ ${SAMPDIR}/gamemodes
+	${LN} -sf ${DATADIR}/${i}/ ${SAMPDIR}/${i}
+.endfor	
 .if !exists(${PREFIX}/etc/${PORTNAME}.cfg)
 	${INSTALL_DATA} ${WRKSRC}/server.cfg ${PREFIX}/etc/${PORTNAME}.cfg
 .endif
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/games/sampsvr/distinfo,v
retrieving revision 1.6
diff -u -r1.6 distinfo
--- distinfo	5 Sep 2007 15:02:49 -0000	1.6
+++ distinfo	26 Nov 2008 03:56:17 -0000
@@ -1,3 +1,3 @@
-MD5 (samp022svr.tar.gz) = dea3b86a7303a6527912685635b46e60
-SHA256 (samp022svr.tar.gz) = 3864ec979421834e252df8ff98c03c31978c6e18805c13378cbcf2acfa761065
-SIZE (samp022svr.tar.gz) = 569540
+MD5 (samp02Xsvr.tar.gz) = b466193afd886aac9ec48f19c55d8947
+SHA256 (samp02Xsvr.tar.gz) = 185c51e58976546496a9fe818d9da29a9d4064514957085e6a80df75ffae7289
+SIZE (samp02Xsvr.tar.gz) = 632308
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/games/sampsvr/pkg-plist,v
retrieving revision 1.5
diff -u -r1.5 pkg-plist
--- pkg-plist	5 Sep 2007 15:02:50 -0000	1.5
+++ pkg-plist	26 Nov 2008 05:10:12 -0000
@@ -1,12 +1,12 @@
 @unexec if cmp -s %D/etc/sampsvr.cfg %D/etc/sampsvr.cfg.dist; then rm -f %D/etc/sampsvr.cfg; fi
 etc/sampsvr.cfg.dist
 @exec [ -f %B/sampsvr.cfg ] || cp %B/%f %B/sampsvr.cfg
-%%SAMPDIR%%/samp022svr
+%%SAMPDIR%%/%%SAMPBIN%%
 %%SAMPDIR%%/announce
 %%SAMPDIR%%/server.cfg
 %%SAMPDIR%%/filterscripts
 %%SAMPDIR%%/gamemodes
-%%DATADIR%%/filterscripts/DEBUG_05.amx
+%%SAMPDIR%%/scriptfiles
 %%DATADIR%%/filterscripts/actions.amx
 %%DATADIR%%/filterscripts/actions.pwn
 %%DATADIR%%/filterscripts/adminspec.amx
@@ -43,7 +43,25 @@
 %%DATADIR%%/gamemodes/sniper.pwn
 %%DATADIR%%/gamemodes/timertest.pwn
 %%DATADIR%%/gamemodes/timertest.amx
+%%DATADIR%%/scriptfiles/vehiclelists/README.txt
+%%DATADIR%%/scriptfiles/vehiclelists/bone.txt
+%%DATADIR%%/scriptfiles/vehiclelists/flint.txt
+%%DATADIR%%/scriptfiles/vehiclelists/ls_airport.txt
+%%DATADIR%%/scriptfiles/vehiclelists/ls_gen_inner.txt
+%%DATADIR%%/scriptfiles/vehiclelists/ls_gen_outer.txt
+%%DATADIR%%/scriptfiles/vehiclelists/ls_law.txt
+%%DATADIR%%/scriptfiles/vehiclelists/lv_airport.txt
+%%DATADIR%%/scriptfiles/vehiclelists/lv_gen.txt
+%%DATADIR%%/scriptfiles/vehiclelists/lv_law.txt
+%%DATADIR%%/scriptfiles/vehiclelists/red_county.txt
+%%DATADIR%%/scriptfiles/vehiclelists/sf_airport.txt
+%%DATADIR%%/scriptfiles/vehiclelists/sf_gen.txt
+%%DATADIR%%/scriptfiles/vehiclelists/sf_law.txt
+%%DATADIR%%/scriptfiles/vehiclelists/tierra.txt
+%%DATADIR%%/scriptfiles/vehiclelists/whetstone.txt
 @dirrmtry %%DATADIR%%/gamemodes
 @dirrmtry %%DATADIR%%/filterscripts
+ at dirrmtry %%DATADIR%%/scriptfiles/vehiclelists
+ at dirrmtry %%DATADIR%%/scriptfiles
 @dirrmtry %%DATADIR%%
 @dirrmtry %%SAMPDIR%%
Index: files/sampd.in
===================================================================
RCS file: /home/pcvs/ports/games/sampsvr/files/sampd.in,v
retrieving revision 1.5
diff -u -r1.5 sampd.in
--- files/sampd.in	5 Sep 2007 15:02:50 -0000	1.5
+++ files/sampd.in	26 Nov 2008 05:10:02 -0000
@@ -20,7 +20,7 @@
 : ${sampd_enable="NO"}
 : ${sampd_chdir="%%SAMPDIR%%"}
 
-command="%%SAMPDIR%%/samp022svr"
+command="%%SAMPDIR%%/%%SAMPBIN%%"
 command_args="> /dev/null &"
 required_files="%%PREFIX%%/etc/sampsvr.cfg"
 start_precmd="sampd_prestart"
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list