diff options
author | reed <reed@pkgsrc.org> | 2005-10-18 20:22:17 +0000 |
---|---|---|
committer | reed <reed@pkgsrc.org> | 2005-10-18 20:22:17 +0000 |
commit | 1a5958014ba6bbc93ebe88b121619c54d1e761e9 (patch) | |
tree | d00330bd9854e80638267e3f8975530ae05fbc49 /games/rocksndiamonds-levels | |
parent | 3e0f0c8cb3844d1ffd525a3f9c6767b410d72d23 (diff) | |
download | pkgsrc-1a5958014ba6bbc93ebe88b121619c54d1e761e9.tar.gz |
Extract to WRKSRC first so permissions can be fixed.
Then use cpio to install.
I chose to do it this way although it can take over 10 minutes to install,
because users can modify levels and maliciously fill up disk space.
(Maybe there is some tar, pax, or cpio option to extract and not use
permissions in the file?)
Bump PKGREVISION.
Add LANGUAGES= # none
And added a comment to this file about the score files:
what cleans them up?
Diffstat (limited to 'games/rocksndiamonds-levels')
-rw-r--r-- | games/rocksndiamonds-levels/Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/games/rocksndiamonds-levels/Makefile b/games/rocksndiamonds-levels/Makefile index 5b4e6835d11..47b760e152b 100644 --- a/games/rocksndiamonds-levels/Makefile +++ b/games/rocksndiamonds-levels/Makefile @@ -1,11 +1,13 @@ -# $NetBSD: Makefile,v 1.9 2005/10/18 20:18:24 reed Exp $ +# $NetBSD: Makefile,v 1.10 2005/10/18 20:22:17 reed Exp $ DISTNAME= rocksndiamonds-levels-1.0 +PKGREVISION= 1 CATEGORIES= games x11 MASTER_SITES= http://www.artsoft.org/RELEASES/unix/rocksndiamonds/levels/ DISTFILES= rockslevels-dx-1.0.tar.gz \ rockslevels-emc-1.0.tar.gz \ rockslevels-sp-1.0.tar.gz +WRKSRC= ${WRKDIR}/levels MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://www.artsoft.org/rocksndiamonds/levels.html @@ -13,15 +15,21 @@ COMMENT= DX, Emerald Mine, and Sokoban levels for Rocks'N'Diamonds DEPENDS+= rocksndiamonds{,-sdl}>=1.4.0:../../games/rocksndiamonds -EXTRACT_ONLY= # empty NO_CONFIGURE= yes NO_BUILD= yes +LANGUAGES= # none PLIST_SRC= ${WRKDIR}/PLIST PLIST # if you change SCORE_PATH, don't forget to change patch-aa, too SCORE_PATH= ${VARBASE}/games/rocksndiamonds +CPIO?= cpio + +post-extract: + ${CHMOD} -R o-w ${WRKSRC} + +# XXX: how are these directories cleaned up? do-install: .for directory in dx_abd dx_achim_haertel \ dx_bd4 dx_blunderdash dx_boulderdash5 dx_dc2classic dx_firefox1 \ @@ -66,9 +74,8 @@ do-install: ${INSTALL_DATA_DIR} ${SCORE_PATH}/scores/${directory} \ && ${CHMOD} 775 ${SCORE_PATH}/scores/${directory} .endfor -.for levels in ${DISTFILES} - cd ${PREFIX}/share/rocksndiamonds && ${PAX} -O -zrf ${DISTDIR}/${levels} -.endfor + cd ${WRKSRC} && ${FIND} DX_Boulderdash Emerald_Mine_Club Supaplex | \ + ${CPIO} -p ${PREFIX}/share/rocksndiamonds/levels ${RM} -f ${WRKDIR}/PLIST .for levdir in DX_Boulderdash Emerald_Mine_Club Supaplex cd ${PREFIX} && \ |