blob: aba9d10d94e8f5c02f9da816cbc889ff56074e7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: Alexander Logvinov <ports@logvinov.com>
# $FreeBSD$
PORTNAME= ${MTANAME:tl}
PORTVERSION= 0.5
PORTREVISION= 2
CATEGORIES= games linux
MASTER_SITES= http://files.gonnaplay.com/201/:main \
http://www.trancevibez.com/mta/:both \
http://files.gonnaplay.com/20104/:patch
DISTFILES= ${MTANAME}0_5-linux.tar.gz:main,both ${MTANAME}0_5-linux-patch1.tar.gz:patch,both
DIST_SUBDIR= mta
MAINTAINER= ports@FreeBSD.org
COMMENT= Multi Theft Auto: Vice City and GTA3 dedicated server
LICENSE= MTA
LICENSE_NAME= MTA v0.5 LICENSE AGREEMENT
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror
USES= linux
NO_BUILD= yes
NO_WRKSUBDIR= yes
USE_RC_SUBR= mtad
MTANAME= MTAServer
PORTDOCS= CHANGELOG LICENSE README
SUB_FILES= pkg-message
OPTIONS_DEFINE= DOCS
post-extract:
@${MV} ${WRKSRC}/${MTANAME} ${WRKSRC}/${PORTNAME}
@${CHMOD} 600 ${WRKSRC}/${PORTNAME}.conf
post-patch:
@${REINPLACE_CMD} "s|banned.lst|${ETCDIR}/&|" ${WRKSRC}/${PORTNAME}.conf
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${BRANDELF} -t Linux ${WRKSRC}/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf \
${STAGEDIR}/${ETCDIR}/${PORTNAME}.conf.sample
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|