1996-10-28 05:49:53 -05:00
|
|
|
# New ports collection makefile for: quakeserver
|
1997-05-30 20:52:04 -04:00
|
|
|
# Version required: 0.991
|
1996-10-28 05:49:53 -05:00
|
|
|
# Date created: October 26th 1996
|
|
|
|
# Whom: jfitz@FreeBSD.ORG
|
|
|
|
#
|
1999-08-22 19:33:47 -04:00
|
|
|
# $Id: Makefile,v 1.16 1999/08/22 18:58:00 mharo Exp $
|
1996-10-28 05:49:53 -05:00
|
|
|
#
|
|
|
|
|
1997-05-30 20:52:04 -04:00
|
|
|
PKGNAME= quakeserver-1.0
|
1997-09-14 00:00:20 -04:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ftp://ftp.cdrom.com/pub/quake/planetquake/threewave/unix/ \
|
1997-05-30 20:52:04 -04:00
|
|
|
ftp://ftp.idsoftware.com/idstuff/quake/
|
|
|
|
DISTFILES= unixded-1.0-i386-unknown-bsdi3.0.tar.gz \
|
|
|
|
quake106.zip
|
|
|
|
|
1996-10-28 05:49:53 -05:00
|
|
|
MAINTAINER= jfitz@freebsd.org
|
|
|
|
|
1996-11-18 21:39:16 -05:00
|
|
|
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \
|
1996-10-28 05:49:53 -05:00
|
|
|
lha:${PORTSDIR}/archivers/lha
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= YES
|
|
|
|
NO_BUILD= YES
|
1996-12-07 07:45:26 -05:00
|
|
|
NO_CDROM= "This software is shareware"
|
1996-10-28 05:49:53 -05:00
|
|
|
|
|
|
|
do-extract:
|
1998-12-01 03:53:53 -05:00
|
|
|
@ ${RM} -rf ${WRKDIR}
|
|
|
|
@ ${MKDIR} ${WRKDIR}
|
1997-05-30 20:52:04 -04:00
|
|
|
@ unzip -q -o ${DISTDIR}/quake106.zip -d ${WRKDIR} resource.*
|
1999-08-22 19:33:47 -04:00
|
|
|
@ ${CAT} ${WRKDIR}/resource.dat ${WRKDIR}/resource.1 > ${WRKDIR}/resource.exe
|
1997-05-30 20:52:04 -04:00
|
|
|
@ cd ${WRKDIR}; lha xfq resource.exe id1/pak0.pak
|
|
|
|
@ cd ${WRKDIR}; tar zxf ${DISTDIR}/unixded-1.0-i386-unknown-bsdi3.0.tar.gz
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@ ${CP} ${FILESDIR}/readme.port ${WRKSRC}
|
|
|
|
@ ${CP} ${FILESDIR}/qserver.sh ${WRKSRC}
|
|
|
|
@ ${CP} ${FILESDIR}/stopserver.sh ${WRKSRC}
|
|
|
|
@ ${SETENV} ${MAKE_ENV} /usr/bin/perl -pi -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/readme.port ${WRKSRC}/qserver.sh ${WRKSRC}/stopserver.sh
|
1996-10-28 05:49:53 -05:00
|
|
|
|
|
|
|
do-install:
|
1997-05-30 20:52:04 -04: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
|
|
|
|
${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 01:58:19 -04:00
|
|
|
@ ${RM} -f ${PREFIX}/quakeserver/quakeserver.in
|
1997-05-30 20:52:04 -04:00
|
|
|
/usr/bin/mkfifo ${PREFIX}/quakeserver/quakeserver.in
|
|
|
|
/usr/bin/touch ${PREFIX}/quakeserver/quakeserver.log
|
1999-08-22 15:01:07 -04:00
|
|
|
@ ${CHMOD} 700 ${PREFIX}/quakeserver/quakeserver.in ${PREFIX}/quakeserver/quakeserver.log
|
|
|
|
@ ${CHOWN} -R nobody.nobody ${PREFIX}/quakeserver
|
1997-05-30 20:52:04 -04:00
|
|
|
@ echo "Installing ${PREFIX}/etc/rc.d/quakeserver.sh startup script"
|
|
|
|
@ echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/quakeserver.sh
|
|
|
|
@ echo "#" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
|
|
|
@ echo "" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
|
|
|
@ echo "if [ -x ${PREFIX}/quakeserver/unixded ]" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
|
|
|
@ echo "then" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
1997-06-01 20:16:36 -04:00
|
|
|
@ echo " su nobody -c ${PREFIX}/quakeserver/qserver.sh && echo -n ' quakeserver'" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
1997-05-30 20:52:04 -04:00
|
|
|
@ echo "fi" >> ${PREFIX}/etc/rc.d/quakeserver.sh
|
1999-08-22 15:01:07 -04:00
|
|
|
@ ${CHMOD} 750 ${PREFIX}/etc/rc.d/quakeserver.sh
|
1997-05-30 20:52:04 -04:00
|
|
|
.if !defined(BATCH)
|
|
|
|
@ /usr/bin/more -e ${PREFIX}/quakeserver/readme.port
|
|
|
|
.endif
|
1996-10-28 05:49:53 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|