Date: Sat, 22 Jan 2005 02:44:36 +0100 (CET) From: Jean-Yves Lefort <jylefort@brutele.be> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/76560: Update port: games/urban (fix high scores handling) Message-ID: <20050122014436.2341A22E1A@jsite.lefort.net> Resent-Message-ID: <200501220150.j0M1oQKa003152@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 76560 >Category: ports >Synopsis: Update port: games/urban (fix high scores handling) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sat Jan 22 01:50:26 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Jean-Yves Lefort >Release: FreeBSD 5.3-RELEASE i386 >Organization: >Environment: System: FreeBSD jsite.lefort.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Thu Dec 2 15:08:28 CET 2004 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386 >Description: High scores were not saved when the game was installed from a package. Added file: pkg-install >How-To-Repeat: >Fix: diff -ruN /usr/ports/games/urban/Makefile urban/Makefile --- /usr/ports/games/urban/Makefile Wed Dec 15 05:02:05 2004 +++ urban/Makefile Sat Jan 22 02:38:41 2005 @@ -7,6 +7,7 @@ PORTNAME= urban PORTVERSION= 1.5.3 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= http://urban.bengburken.net/files/linux/ DIST_SUBDIR= urban @@ -17,14 +18,12 @@ LIB_DEPENDS= ggi:${PORTSDIR}/graphics/libggi \ mikmod:${PORTSDIR}/audio/libmikmod -SCOREFILE= /var/games/urban.scores - USE_X_PREFIX= yes GNU_CONFIGURE= yes CFLAGS+= ${PTHREAD_CFLAGS} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" -CONFIGURE_ARGS= --with-global-highscore=${SCOREFILE} +CONFIGURE_ARGS= --with-global-highscore=/var/games/urban.scores OPTIONS= CHEAT_CODES "Enable cheat codes" off @@ -35,9 +34,6 @@ .endif post-install: - ${TOUCH} ${SCOREFILE} - ${CHGRP} games ${SCOREFILE} - ${CHMOD} g+w ${SCOREFILE} ${CHGRP} games ${PREFIX}/bin/urban ${CHMOD} g+s ${PREFIX}/bin/urban .if !defined(NOPORTDOCS) @@ -50,6 +46,7 @@ ${WRKSRC}/README.swe \ ${DOCSDIR} .endif + @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff -ruN /usr/ports/games/urban/pkg-install urban/pkg-install --- /usr/ports/games/urban/pkg-install Thu Jan 1 01:00:00 1970 +++ urban/pkg-install Sat Jan 22 02:38:49 2005 @@ -0,0 +1,11 @@ +#!/bin/sh + +SCOREDIR="/var/games" +SCOREFILE="/var/games/urban.scores" + +[ "$2" != "POST-INSTALL" -o -f "$SCOREFILE" ] && exit 0 + +mkdir -p $SCOREDIR +touch $SCOREFILE +chown root:games $SCOREFILE +chmod 664 $SCOREFILE >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050122014436.2341A22E1A>