1996-10-28 10:49:53 +00:00
|
|
|
# New ports collection makefile for: quakeserver
|
|
|
|
# Date created: October 26th 1996
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: jfitz@FreeBSD.org
|
1996-10-28 10:49:53 +00:00
|
|
|
#
|
1999-08-25 06:06:33 +00:00
|
|
|
# $FreeBSD$
|
1996-10-28 10:49:53 +00:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:28:40 +00:00
|
|
|
PORTNAME= quakeserver
|
|
|
|
PORTVERSION= 1.0
|
1997-09-14 04:00:20 +00:00
|
|
|
CATEGORIES= games
|
2000-11-01 15:02:24 +00:00
|
|
|
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quakeworld/unix/old/ \
|
1997-05-31 00:52:04 +00:00
|
|
|
ftp://ftp.idsoftware.com/idstuff/quake/
|
2000-11-01 15:02:24 +00:00
|
|
|
DISTFILES= unixded-${PORTVERSION}-i386-unknown-bsdi3.0.tar.gz \
|
1997-05-31 00:52:04 +00:00
|
|
|
quake106.zip
|
2000-03-30 21:04:28 +00:00
|
|
|
|
2000-10-23 21:03:11 +00:00
|
|
|
MAINTAINER= ports@freebsd.org
|
1996-10-28 10:49:53 +00:00
|
|
|
|
1996-11-19 02:39:16 +00:00
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \
|
1996-10-28 10:49:53 +00:00
|
|
|
lha:${PORTSDIR}/archivers/lha
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= YES
|
|
|
|
NO_BUILD= YES
|
1996-12-07 12:45:26 +00:00
|
|
|
NO_CDROM= "This software is shareware"
|
1996-10-28 10:49:53 +00:00
|
|
|
|
|
|
|
do-extract:
|
1998-12-01 08:53:53 +00:00
|
|
|
@ ${RM} -rf ${WRKDIR}
|
|
|
|
@ ${MKDIR} ${WRKDIR}
|
1997-05-31 00:52:04 +00:00
|
|
|
@ unzip -q -o ${DISTDIR}/quake106.zip -d ${WRKDIR} resource.*
|
1999-08-22 23:33:47 +00:00
|
|
|
@ ${CAT} ${WRKDIR}/resource.dat ${WRKDIR}/resource.1 > ${WRKDIR}/resource.exe
|
1997-05-31 00:52:04 +00:00
|
|
|
@ cd ${WRKDIR}; lha xfq resource.exe id1/pak0.pak
|
2000-11-01 15:02:24 +00:00
|
|
|
@ cd ${WRKDIR}; tar zxf ${DISTDIR}/unixded-${PORTVERSION}-i386-unknown-bsdi3.0.tar.gz
|
1997-05-31 00:52:04 +00:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@ ${CP} ${FILESDIR}/readme.port ${WRKSRC}
|
2000-07-05 12:37:06 +00:00
|
|
|
@ ${CP} ${FILESDIR}/quakeserver.sh ${WRKSRC}
|
1997-05-31 00:52:04 +00:00
|
|
|
@ ${CP} ${FILESDIR}/qserver.sh ${WRKSRC}
|
|
|
|
@ ${CP} ${FILESDIR}/stopserver.sh ${WRKSRC}
|
2000-07-05 12:37:06 +00:00
|
|
|
@ ${SETENV} ${MAKE_ENV} ${PERL} -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/readme.port ${WRKSRC}/quakeserver.sh ${WRKSRC}/qserver.sh ${WRKSRC}/stopserver.sh
|
1996-10-28 10:49:53 +00:00
|
|
|
|
|
|
|
do-install:
|
1997-05-31 00:52:04 +00:00
|
|
|
@ ${MKDIR} ${PREFIX}/quakeserver
|
|
|
|
@ ${MKDIR} ${PREFIX}/quakeserver/id1
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/id1/pak0.pak ${PREFIX}/quakeserver/id1
|
|
|
|
${INSTALL} -c -o nobody -g nobody -m 0500 ${WRKSRC}/unixded ${PREFIX}/quakeserver
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme.unixded ${PREFIX}/quakeserver
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme.port ${PREFIX}/quakeserver
|
2000-07-05 12:37:06 +00:00
|
|
|
${INSTALL_SCRIPT} -m 0750 ${WRKSRC}/quakeserver.sh ${PREFIX}/etc/rc.d
|
1997-05-31 00:52:04 +00:00
|
|
|
${INSTALL} -c -o nobody -g nobody -m 0500 ${WRKSRC}/qserver.sh ${PREFIX}/quakeserver
|
|
|
|
${INSTALL} -c -o nobody -g nobody -m 0500 ${WRKSRC}/stopserver.sh ${PREFIX}/quakeserver
|
1997-06-03 05:58:19 +00:00
|
|
|
@ ${RM} -f ${PREFIX}/quakeserver/quakeserver.in
|
1997-05-31 00:52:04 +00:00
|
|
|
/usr/bin/mkfifo ${PREFIX}/quakeserver/quakeserver.in
|
2000-03-30 21:04:28 +00:00
|
|
|
${TOUCH} ${PREFIX}/quakeserver/quakeserver.log
|
1999-08-22 19:01:07 +00:00
|
|
|
@ ${CHMOD} 700 ${PREFIX}/quakeserver/quakeserver.in ${PREFIX}/quakeserver/quakeserver.log
|
|
|
|
@ ${CHOWN} -R nobody.nobody ${PREFIX}/quakeserver
|
1997-05-31 00:52:04 +00:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@ /usr/bin/more -e ${PREFIX}/quakeserver/readme.port
|
|
|
|
.endif
|
2000-03-30 21:04:28 +00:00
|
|
|
|
1996-10-28 10:49:53 +00:00
|
|
|
.include <bsd.port.mk>
|