From fbd08b0fe7614878af1770c16f43d79e0fb3bbe3 Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 14 Jan 2006 03:22:51 +0000 Subject: sed(1) always appends a newline to every output line, which can cause misdetection of the gzipped tarball that is appended to the *.run script when sed strips off the first 266 lines. Use tail instead to avoid the problem. --- games/quake3arena/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'games') diff --git a/games/quake3arena/Makefile b/games/quake3arena/Makefile index 02444941f0a..49b32ef1edc 100644 --- a/games/quake3arena/Makefile +++ b/games/quake3arena/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.24 2005/12/12 14:43:25 joerg Exp $ +# $NetBSD: Makefile,v 1.25 2006/01/14 03:22:51 jlam Exp $ DISTNAME= linuxq3apoint-1.32b.x86 PKGREVISION= 1 @@ -27,9 +27,12 @@ NO_BIN_ON_FTP= no NO_CONFIGURE= yes CHECK_SHLIBS= NO -USE_TOOLS+= gtar +USE_TOOLS+= gtar gunzip tail -EXTRACT_CMD= ${SED} '1,265d' ${DOWNLOADED_DISTFILE} | ${GTAR} xzf - +# The distfile is a self-extracting shell script. "266" is a magic +# number that's taken from the distfile itself. +# +EXTRACT_CMD= tail +266 ${DOWNLOADED_DISTFILE} | gunzip | gtar -xf - .if !make(fetch) ONLY_FOR_PLATFORM=*-*-i386 -- cgit v1.2.3