pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/xscrabble make sure the games group exists befor...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4a22819b5df8
branches: trunk
changeset: 498453:4a22819b5df8
user: dmcmahill <dmcmahill%pkgsrc.org@localhost>
date: Tue Aug 23 02:34:26 2005 +0000
description:
make sure the games group exists before changing group ownership to
that group.
diffstat:
games/xscrabble/Makefile | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (43 lines):
diff -r 287c76032190 -r 4a22819b5df8 games/xscrabble/Makefile
--- a/games/xscrabble/Makefile Tue Aug 23 02:33:32 2005 +0000
+++ b/games/xscrabble/Makefile Tue Aug 23 02:34:26 2005 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2005/06/16 06:57:56 jlam Exp $
+# $NetBSD: Makefile,v 1.14 2005/08/23 02:34:26 dmcmahill Exp $
#
DISTNAME= xscrabble-1.0
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= games x11
MASTER_SITES= ${MASTER_SITE_LOCAL}
@@ -11,9 +11,13 @@
WRKSRC= ${WRKDIR}/xscrabble
USE_IMAKE= YES
+USE_PKGINSTALL= YES
INSTALLATION_DIRS= bin lib/X11/app-defaults
+XSCRABBLE_GROUP?= games
+PKG_GROUPS= ${XSCRABBLE_GROUP}
+
post-patch:
${SED} 's!/usr/local/lib!${PREFIX}/share/games/xscrabble!g' \
${WRKSRC}/XScrabble.ad > ${WRKSRC}/XScrabble
@@ -26,9 +30,13 @@
${INSTALL_DATA} ${WRKSRC}/OSPD3.gz ${PREFIX}/share/games/xscrabble
${INSTALL_DATA} ${WRKSRC}/scrabble_permutations ${PREFIX}/share/games/xscrabble
${INSTALL_DATA} ${WRKSRC}/xscrabble.scores ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
- ${CHOWN} ${BINOWN}:games ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
+ ${CHOWN} ${BINOWN}:${XSCRABBLE_GROUP} ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
${CHMOD} 0664 ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist
${INSTALL_DATA} ${WRKSRC}/XScrabble ${PREFIX}/lib/X11/app-defaults
+ @if [ ! -d /var/games ]; then \
+ ${MKDIR} -p /var/games ; \
+ ${CHMOD} 0775 /var/games ; \
+ fi
@if [ ! -f /var/games/xscrabble.scores ]; then \
${CP} -p ${PREFIX}/share/games/xscrabble/xscrabble.scores.dist \
/var/games/xscrabble.scores ; \
Home |
Main Index |
Thread Index |
Old Index