pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/xbill Use VARBASE instead of hardcoding /var.
details: https://anonhg.NetBSD.org/pkgsrc/rev/8ed5565b2617
branches: trunk
changeset: 495584:8ed5565b2617
user: minskim <minskim%pkgsrc.org@localhost>
date: Tue Jun 14 17:23:24 2005 +0000
description:
Use VARBASE instead of hardcoding /var.
diffstat:
games/xbill/Makefile | 7 ++++---
games/xbill/distinfo | 4 ++--
games/xbill/patches/patch-ab | 8 ++++----
3 files changed, 10 insertions(+), 9 deletions(-)
diffs (61 lines):
diff -r 8b67be68fa56 -r 8ed5565b2617 games/xbill/Makefile
--- a/games/xbill/Makefile Tue Jun 14 17:18:54 2005 +0000
+++ b/games/xbill/Makefile Tue Jun 14 17:23:24 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2005/06/14 17:18:54 minskim Exp $
+# $NetBSD: Makefile,v 1.18 2005/06/14 17:23:24 minskim Exp $
#
DISTNAME= xbill-2.0
@@ -17,10 +17,11 @@
USE_PKGINSTALL= YES
NO_INSTALL_MANPAGES= YES
+CPPFLAGS+= -DVARBASE=\"${VARBASE}\"
PKG_GROUPS= ${GAMEGRP}
-MAKE_DIRS_PERMS+= /var/games ${BINOWN} ${GAMEGRP} 0775
+MAKE_DIRS_PERMS+= ${VARBASE}/games ${BINOWN} ${GAMEGRP} 0775
MAKE_ENV+= GAMEGRP=${GAMEGRP} GAMEMODE=${GAMEMODE}
-SUPPORT_FILES_PERMS+= ${PREFIX}/share/examples/xbill.scores /var/games/xbill.scores ${BINOWN} ${GAMEGRP} ${GAMEDATAMODE}
+SUPPORT_FILES_PERMS+= ${PREFIX}/share/examples/xbill.scores ${VARBASE}/games/xbill.scores ${BINOWN} ${GAMEGRP} ${GAMEDATAMODE}
post-install:
${INSTALL_MAN} ${WRKSRC}/xbill.man ${PREFIX}/man/man6/xbill.6
diff -r 8b67be68fa56 -r 8ed5565b2617 games/xbill/distinfo
--- a/games/xbill/distinfo Tue Jun 14 17:18:54 2005 +0000
+++ b/games/xbill/distinfo Tue Jun 14 17:23:24 2005 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.10 2005/06/14 17:14:08 minskim Exp $
+$NetBSD: distinfo,v 1.11 2005/06/14 17:23:24 minskim Exp $
SHA1 (xbill-2.0.tgz) = 4ce4e37687801343af5f57c28498bd0b969c0537
RMD160 (xbill-2.0.tgz) = 8f1551fb5f2bf7b620243ba4787c88c91d00d460
Size (xbill-2.0.tgz) = 46909 bytes
SHA1 (patch-aa) = 2da005452b1bd9c0258bc132535dd5c1fc9eb4b9
-SHA1 (patch-ab) = 245573e1ea2223ed1bde91c16db81a658bfcc8f6
+SHA1 (patch-ab) = 13a90b12c94352e228406541db06bacab8cd4a0d
SHA1 (patch-ac) = c3dd487d0002f528f6726d268673bc11be0b24b6
SHA1 (patch-ad) = 841d5ff9bbd984b62076a96e82b04e082d09a40c
diff -r 8b67be68fa56 -r 8ed5565b2617 games/xbill/patches/patch-ab
--- a/games/xbill/patches/patch-ab Tue Jun 14 17:18:54 2005 +0000
+++ b/games/xbill/patches/patch-ab Tue Jun 14 17:23:24 2005 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.2 1998/09/30 08:51:30 tron Exp $
+$NetBSD: patch-ab,v 1.3 2005/06/14 17:23:24 minskim Exp $
---- Scorelist.cc.orig Mon Sep 14 13:13:16 1998
-+++ Scorelist.cc Mon Sep 14 13:14:21 1998
+--- Scorelist.cc.orig 1997-01-23 10:22:50.000000000 -0600
++++ Scorelist.cc
@@ -1,9 +1,9 @@
#include "objects.h"
@@ -11,7 +11,7 @@
- return fopen (file, mode);
+/* char file[255];
+ sprintf (file, "%sscores", XBILL_HOME);*/
-+ return fopen ("/var/games/xbill.scores", mode);
++ return fopen (VARBASE "/games/xbill.scores", mode);
}
void Scorelist::read() {
Home |
Main Index |
Thread Index |
Old Index