summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authormarino <marino>2012-05-27 17:00:49 +0000
committermarino <marino>2012-05-27 17:00:49 +0000
commitb5d450e78a85d857261fa5ff41db7dde9401d8fe (patch)
treeab208b3a78093dcb951b89b82f28151a48b4e2ad /games
parent3fe5dbb1af4f98b13adbf470f01bbf93ed86fd71 (diff)
downloadpkgsrc-b5d450e78a85d857261fa5ff41db7dde9401d8fe.tar.gz
games/rtcw: Fix extract and PKG_DEVELOPER errors
On DragonFly with zlib 1.2.7, an error during extraction was seen: > gzip: (stdin): trailing garbage ignored > /usr/pkg/bin/gtar: Child return status 1 > /usr/pkg/bin/gtar: Error is not recoverable: exiting now RTCW uses a custom extraction command which is sed piped into gtar. To workaround this error, sed was piped into gunzip which was then piped into gtar, so other error status was laundered out. Also, there were some permission check failures when PKG_DEVELOPER=yes so small workarounds were added. rctw installs with PKG_DEVELOPER check without error now.
Diffstat (limited to 'games')
-rw-r--r--games/rtcw/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/games/rtcw/Makefile b/games/rtcw/Makefile
index 518ba2d2f0f..ec7eaf0bde5 100644
--- a/games/rtcw/Makefile
+++ b/games/rtcw/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.17 2012/05/19 14:21:59 marino Exp $
+# $NetBSD: Makefile,v 1.18 2012/05/27 17:00:49 marino Exp $
DISTNAME= wolf-linux-1.33.x86
PKGNAME= rtcw-1.33
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= games
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/wolf/linux/old/
EXTRACT_SUFX= .run
@@ -27,15 +27,17 @@ PKG_DESTDIR_SUPPORT= user-destdir
BUILD_DIRS= # empty
RTCWDIR= ${PREFIX}/lib/lokigames/rtcw
-USE_TOOLS+= gtar pax
+USE_TOOLS+= gtar pax gzip
EXTRACT_CMD= ${SED} '1,178d' ${DOWNLOADED_DISTFILE} | \
- ${GTAR} xzf - -C ${WRKSRC}
+ ${GZIP_CMD} -d | ${GTAR} -C ${WRKSRC} -xf -
pre-extract:
${MKDIR} ${WRKSRC}
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${RTCWDIR}
+ ${CHMOD} 755 ${WRKSRC}/Docs/PunkBuster
+ ${CHMOD} 644 ${WRKSRC}/main/mp_bin.pk3
cd ${WRKSRC} && pax -rw -p am . ${DESTDIR}${RTCWDIR}
.include "../../mk/bsd.pkg.mk"