View | Details | Raw Unified | Return to bug 129334
Collapse All | Expand All

(-)Makefile (-21 / +15 lines)
Lines 5-34 Link Here
5
# $FreeBSD: ports/games/sampsvr/Makefile,v 1.6 2007/09/05 15:02:49 rafan Exp $
5
# $FreeBSD: ports/games/sampsvr/Makefile,v 1.6 2007/09/05 15:02:49 rafan Exp $
6
6
7
PORTNAME=	sampsvr
7
PORTNAME=	sampsvr
8
DISTVERSION=	0.2.2
8
PORTVERSION=	0.2.3
9
CATEGORIES=	games linux
9
CATEGORIES=	games linux
10
MASTER_SITES=	http://www.sa-mp.com/files/ \
10
MASTER_SITES=	http://files.sa-mp.com/
11
		http://eu.littlewhitey.com/ \
11
DISTNAME=	samp02Xsvr
12
		http://dedi.azer.nl/upload/ \
13
		http://www.kfcgang.com/files/ \
14
		http://files.gtanet.com/samp/ \
15
		http://thegtaplanet.net/download/ \
16
		http://sa-mp.popznet.com/files/
17
DISTNAME=	samp022svr
18
12
19
MAINTAINER=	ports@logvinov.com
13
MAINTAINER=	ports@logvinov.com
20
COMMENT=	Rockstar's GTA: San Andreas multiplayer modification dedicated server
14
COMMENT=	Rockstar's GTA: San Andreas multiplayer modification dedicated server
21
15
22
USE_LINUX=	yes
16
USE_LINUX=	yes
23
NO_BUILD=	yes
17
NO_BUILD=	yes
24
WRKSRC=		${WRKDIR}/samp022
18
WRKSRC=		${WRKDIR}/${DISTNAME:S,svr,,}
25
USE_DOS2UNIX=	server.cfg *.pwn
19
USE_DOS2UNIX=	*.txt *.pwn
26
USE_RC_SUBR=	sampd
20
USE_RC_SUBR=	sampd
27
SAMPDIR=	${PREFIX}/lib/${PORTNAME}
21
SAMPDIR=	${PREFIX}/libexec/${PORTNAME}
28
PORTDOCS=	README
22
PORTDOCS=	README
29
PLIST_SUB=	SAMPDIR="${SAMPDIR:S,^${PREFIX}/,,}"
23
PLIST_SUB=	SAMPDIR="${SAMPDIR:S,^${PREFIX}/,,}" SAMPBIN=${DISTNAME}
30
SUB_FILES=	pkg-message
24
SUB_FILES=	pkg-message
31
SUB_LIST=	SAMPDIR="${SAMPDIR}"
25
SUB_LIST=	SAMPDIR="${SAMPDIR}" SAMPBIN=${DISTNAME}
32
.if !defined(NOPORTDOCS)
26
.if !defined(NOPORTDOCS)
33
SUB_LIST+=	NOTEWORK="Read ${DOCSDIR}/README to configure SA-MP Server"
27
SUB_LIST+=	NOTEWORK="Read ${DOCSDIR}/README to configure SA-MP Server"
34
.else
28
.else
Lines 39-58 Link Here
39
33
40
do-install:
34
do-install:
41
	${MKDIR} ${SAMPDIR}
35
	${MKDIR} ${SAMPDIR}
42
.for i in samp022svr announce
36
.for i in ${DISTNAME} announce
43
	${BRANDELF} -t Linux ${WRKSRC}/${i}
37
	${BRANDELF} -t Linux ${WRKSRC}/${i}
44
	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${SAMPDIR}
38
	${INSTALL_PROGRAM} ${WRKSRC}/${i} ${SAMPDIR}
45
.endfor
39
.endfor
46
	${MKDIR} ${DATADIR}
40
	${MKDIR} ${DATADIR}
47
	cd ${WRKSRC} && \
41
	cd ${WRKSRC} && \
48
	${FIND} . -type d ! -empty -exec \
42
	${FIND} . -type d ! -empty -exec \
49
		${MKDIR} "${DATADIR}/{}" \; && \
43
		${MKDIR} "${DATADIR}/{}" \;
50
	${FIND} filterscripts -type f -exec \
44
.for i in filterscripts gamemodes scriptfiles
51
		${INSTALL_DATA} "{}" "${DATADIR}/{}" \; && \
45
	cd ${WRKSRC} && \
52
	${FIND} gamemodes -type f -exec \
46
	${FIND} ${i} -type f -exec \
53
		${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
47
		${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
54
	${LN} -sf ${DATADIR}/filterscripts/ ${SAMPDIR}/filterscripts
48
	${LN} -sf ${DATADIR}/${i}/ ${SAMPDIR}/${i}
55
	${LN} -sf ${DATADIR}/gamemodes/ ${SAMPDIR}/gamemodes
49
.endfor	
56
.if !exists(${PREFIX}/etc/${PORTNAME}.cfg)
50
.if !exists(${PREFIX}/etc/${PORTNAME}.cfg)
57
	${INSTALL_DATA} ${WRKSRC}/server.cfg ${PREFIX}/etc/${PORTNAME}.cfg
51
	${INSTALL_DATA} ${WRKSRC}/server.cfg ${PREFIX}/etc/${PORTNAME}.cfg
58
.endif
52
.endif
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (samp022svr.tar.gz) = dea3b86a7303a6527912685635b46e60
1
MD5 (samp02Xsvr.tar.gz) = b466193afd886aac9ec48f19c55d8947
2
SHA256 (samp022svr.tar.gz) = 3864ec979421834e252df8ff98c03c31978c6e18805c13378cbcf2acfa761065
2
SHA256 (samp02Xsvr.tar.gz) = 185c51e58976546496a9fe818d9da29a9d4064514957085e6a80df75ffae7289
3
SIZE (samp022svr.tar.gz) = 569540
3
SIZE (samp02Xsvr.tar.gz) = 632308
(-)pkg-plist (-2 / +20 lines)
Lines 1-12 Link Here
1
@unexec if cmp -s %D/etc/sampsvr.cfg %D/etc/sampsvr.cfg.dist; then rm -f %D/etc/sampsvr.cfg; fi
1
@unexec if cmp -s %D/etc/sampsvr.cfg %D/etc/sampsvr.cfg.dist; then rm -f %D/etc/sampsvr.cfg; fi
2
etc/sampsvr.cfg.dist
2
etc/sampsvr.cfg.dist
3
@exec [ -f %B/sampsvr.cfg ] || cp %B/%f %B/sampsvr.cfg
3
@exec [ -f %B/sampsvr.cfg ] || cp %B/%f %B/sampsvr.cfg
4
%%SAMPDIR%%/samp022svr
4
%%SAMPDIR%%/%%SAMPBIN%%
5
%%SAMPDIR%%/announce
5
%%SAMPDIR%%/announce
6
%%SAMPDIR%%/server.cfg
6
%%SAMPDIR%%/server.cfg
7
%%SAMPDIR%%/filterscripts
7
%%SAMPDIR%%/filterscripts
8
%%SAMPDIR%%/gamemodes
8
%%SAMPDIR%%/gamemodes
9
%%DATADIR%%/filterscripts/DEBUG_05.amx
9
%%SAMPDIR%%/scriptfiles
10
%%DATADIR%%/filterscripts/actions.amx
10
%%DATADIR%%/filterscripts/actions.amx
11
%%DATADIR%%/filterscripts/actions.pwn
11
%%DATADIR%%/filterscripts/actions.pwn
12
%%DATADIR%%/filterscripts/adminspec.amx
12
%%DATADIR%%/filterscripts/adminspec.amx
Lines 43-49 Link Here
43
%%DATADIR%%/gamemodes/sniper.pwn
43
%%DATADIR%%/gamemodes/sniper.pwn
44
%%DATADIR%%/gamemodes/timertest.pwn
44
%%DATADIR%%/gamemodes/timertest.pwn
45
%%DATADIR%%/gamemodes/timertest.amx
45
%%DATADIR%%/gamemodes/timertest.amx
46
%%DATADIR%%/scriptfiles/vehiclelists/README.txt
47
%%DATADIR%%/scriptfiles/vehiclelists/bone.txt
48
%%DATADIR%%/scriptfiles/vehiclelists/flint.txt
49
%%DATADIR%%/scriptfiles/vehiclelists/ls_airport.txt
50
%%DATADIR%%/scriptfiles/vehiclelists/ls_gen_inner.txt
51
%%DATADIR%%/scriptfiles/vehiclelists/ls_gen_outer.txt
52
%%DATADIR%%/scriptfiles/vehiclelists/ls_law.txt
53
%%DATADIR%%/scriptfiles/vehiclelists/lv_airport.txt
54
%%DATADIR%%/scriptfiles/vehiclelists/lv_gen.txt
55
%%DATADIR%%/scriptfiles/vehiclelists/lv_law.txt
56
%%DATADIR%%/scriptfiles/vehiclelists/red_county.txt
57
%%DATADIR%%/scriptfiles/vehiclelists/sf_airport.txt
58
%%DATADIR%%/scriptfiles/vehiclelists/sf_gen.txt
59
%%DATADIR%%/scriptfiles/vehiclelists/sf_law.txt
60
%%DATADIR%%/scriptfiles/vehiclelists/tierra.txt
61
%%DATADIR%%/scriptfiles/vehiclelists/whetstone.txt
46
@dirrmtry %%DATADIR%%/gamemodes
62
@dirrmtry %%DATADIR%%/gamemodes
47
@dirrmtry %%DATADIR%%/filterscripts
63
@dirrmtry %%DATADIR%%/filterscripts
64
@dirrmtry %%DATADIR%%/scriptfiles/vehiclelists
65
@dirrmtry %%DATADIR%%/scriptfiles
48
@dirrmtry %%DATADIR%%
66
@dirrmtry %%DATADIR%%
49
@dirrmtry %%SAMPDIR%%
67
@dirrmtry %%SAMPDIR%%
(-)files/sampd.in (-1 / +1 lines)
Lines 20-26 Link Here
20
: ${sampd_enable="NO"}
20
: ${sampd_enable="NO"}
21
: ${sampd_chdir="%%SAMPDIR%%"}
21
: ${sampd_chdir="%%SAMPDIR%%"}
22
22
23
command="%%SAMPDIR%%/samp022svr"
23
command="%%SAMPDIR%%/%%SAMPBIN%%"
24
command_args="> /dev/null &"
24
command_args="> /dev/null &"
25
required_files="%%PREFIX%%/etc/sampsvr.cfg"
25
required_files="%%PREFIX%%/etc/sampsvr.cfg"
26
start_precmd="sampd_prestart"
26
start_precmd="sampd_prestart"

Return to bug 129334