ports/170052: update port: games/daimonin-music to remove NO_CHECKSUM
J.R. Oldroyd
fbsd at opal.com
Sat Jul 21 11:40:13 UTC 2012
>Number: 170052
>Category: ports
>Synopsis: update port: games/daimonin-music to remove NO_CHECKSUM
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sat Jul 21 11:40:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: J.R. Oldroyd
>Release: FreeBSD 8.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD xx.opal.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011 root at mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
This update is to remove the need to have "NO_CHECKSUM" in the Makefile.
The distfile here is un-versioned and has been known to change in place.
This makes checksum verification not possible. The new technique removes
NO_CHECKSUM and redefines the checksum code to do nothing.
Separately, and also because the file might be updated in place, it is
necessary for the fetch code to remove an old download so that a new version
is downloaded each time this port is re-installed. This change is also made
with this update.
>How-To-Repeat:
n/a
>Fix:
diff -ruN /usr/ports/games/daimonin-music/Makefile games/daimonin-music/Makefile
--- /usr/ports/games/daimonin-music/Makefile 2010-09-27 11:02:56.000000000 +0200
+++ games/daimonin-music/Makefile 2012-07-21 13:22:08.000000000 +0200
@@ -6,25 +6,33 @@
#
PORTNAME= daimonin-music
-PORTVERSION= 20100827
+PORTVERSION= 20120721
CATEGORIES= games
MASTER_SITES= SF/daimonin/Addon%20packs/Music/
-DISTFILES= AllMusic.zip
+DISTNAME= AllMusic
DIST_SUBDIR= ${PORTNAME:S/-music//}
MAINTAINER= fbsd at opal.com
COMMENT= Music for daimonin client
-NO_CHECKSUM= true
NO_BUILD= true
+NO_PACKAGE= true
USE_ZIP= true
MYDATADIR= ${DATADIR:S/-music//}
EXTRACT_BEFORE_ARGS= -aqo
+pre-fetch:
+ [ ! -f ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}-${PORTVERSION}${EXTRACT_SUFX} ] && ${RM} -f ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} || ${TRUE}
+
+post-fetch:
+ ${LN} -f ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}-${PORTVERSION}${EXTRACT_SUFX}
+
+checksum:
+ ${DO_NADA}
+
do-install:
- ${MKDIR} ${MYDATADIR}/media
- ${CP} -p ${WRKDIR}/* ${MYDATADIR}/media/
+ ${CP} -pr ${WRKDIR}/media ${MYDATADIR}
.include <bsd.port.mk>
diff -ruN /usr/ports/games/daimonin-music/pkg-plist games/daimonin-music/pkg-plist
--- /usr/ports/games/daimonin-music/pkg-plist 2010-09-27 11:02:56.000000000 +0200
+++ games/daimonin-music/pkg-plist 2012-05-22 15:57:55.000000000 +0200
@@ -53,6 +53,7 @@
share/daimonin/media/License Note
share/daimonin/media/airhits-01.ogg
share/daimonin/media/airhits-02.ogg
+ at unexec if [ -f %D/share/daimonin/media/battle.ogg ]; then rm %D/share/daimonin/media/battle.ogg; fi
share/daimonin/media/barrenlands.ogg
share/daimonin/media/bubblymud.ogg
share/daimonin/media/comecloser.ogg
@@ -72,5 +73,5 @@
share/daimonin/media/spokyspace.ogg
share/daimonin/media/swamp.ogg
share/daimonin/media/thonkdonk.ogg
- at dirrmtry share/daimonin/media
+ at dirrm share/daimonin/media
@dirrmtry share/daimonin
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list