pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/xbill nb1:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/90e83bca674b
branches:  trunk
changeset: 474487:90e83bca674b
user:      tv <tv%pkgsrc.org@localhost>
date:      Fri Apr 30 20:29:40 2004 +0000

description:
nb1:
* Make sure the group "games" exists.
* Use MAKE_DIRS_PERMS to make sure "/var/games" exists.
* Use SUPPORT_FILES_PERMS to install the scorefile to /var/games.

diffstat:

 games/xbill/Makefile         |  9 ++++++++-
 games/xbill/PLIST            |  3 ++-
 games/xbill/distinfo         |  4 ++--
 games/xbill/patches/patch-aa |  9 +++------
 4 files changed, 15 insertions(+), 10 deletions(-)

diffs (84 lines):

diff -r b24250275b6b -r 90e83bca674b games/xbill/Makefile
--- a/games/xbill/Makefile      Fri Apr 30 20:13:38 2004 +0000
+++ b/games/xbill/Makefile      Fri Apr 30 20:29:40 2004 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2004/03/10 00:09:13 snj Exp $
+# $NetBSD: Makefile,v 1.13 2004/04/30 20:29:40 tv Exp $
 #
 
 DISTNAME=              xbill-2.0
+PKGREVISION=           1
 CATEGORIES=            games x11
 MASTER_SITES=          ${MASTER_SITE_XCONTRIB:=games/}
 EXTRACT_SUFX=          .tgz
@@ -14,10 +15,16 @@
 
 USE_BUILDLINK3=                YES
 USE_IMAKE=             YES
+USE_PKGINSTALL=                YES
 NO_INSTALL_MANPAGES=   YES
 
+PKG_GROUPS=            games
+MAKE_DIRS_PERMS+=      /var/games 0775 ${BINOWN} games
+SUPPORT_FILES_PERMS+=  ${PREFIX}/share/examples/xbill.scores /var/games/xbill.scores ${BINOWN} games 0664
+
 post-install:
        ${INSTALL_MAN} ${WRKSRC}/xbill.man ${PREFIX}/man/man6/xbill.6
+       ${INSTALL_DATA} ${WRKSRC}/scores ${PREFIX}/share/examples/xbill.scores
 
 .include "../../graphics/xpm/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r b24250275b6b -r 90e83bca674b games/xbill/PLIST
--- a/games/xbill/PLIST Fri Apr 30 20:13:38 2004 +0000
+++ b/games/xbill/PLIST Fri Apr 30 20:29:40 2004 +0000
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST,v 1.1 2001/11/01 00:56:11 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2004/04/30 20:29:40 tv Exp $
 bin/xbill
 man/man6/xbill.6
+share/examples/xbill.scores
 share/xbill/pixmaps/about.xpm
 share/xbill/pixmaps/apple.xpm
 share/xbill/pixmaps/billA_0.xpm
diff -r b24250275b6b -r 90e83bca674b games/xbill/distinfo
--- a/games/xbill/distinfo      Fri Apr 30 20:13:38 2004 +0000
+++ b/games/xbill/distinfo      Fri Apr 30 20:29:40 2004 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.5 2004/04/30 20:13:38 tv Exp $
+$NetBSD: distinfo,v 1.6 2004/04/30 20:29:40 tv Exp $
 
 SHA1 (xbill-2.0.tgz) = 4ce4e37687801343af5f57c28498bd0b969c0537
 Size (xbill-2.0.tgz) = 46909 bytes
-SHA1 (patch-aa) = fbbc8583fbbafa44af625ae46950d3e61906f6a8
+SHA1 (patch-aa) = 67f0bdeb4dc80bde68dbd99f2684c2d4908e0423
 SHA1 (patch-ab) = 245573e1ea2223ed1bde91c16db81a658bfcc8f6
 SHA1 (patch-ac) = c3dd487d0002f528f6726d268673bc11be0b24b6
diff -r b24250275b6b -r 90e83bca674b games/xbill/patches/patch-aa
--- a/games/xbill/patches/patch-aa      Fri Apr 30 20:13:38 2004 +0000
+++ b/games/xbill/patches/patch-aa      Fri Apr 30 20:29:40 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.5 2004/04/30 20:13:12 tv Exp $
+$NetBSD: patch-aa,v 1.6 2004/04/30 20:29:40 tv Exp $
 
 --- Imakefile.orig     Thu Jan 23 11:38:35 1997
 +++ Imakefile
@@ -37,17 +37,14 @@
  
  TARGET = xbill
  
-@@ -136,6 +133,12 @@ XBMS =    bitmaps/apple.xbm \
+@@ -136,6 +133,9 @@ XBMS =     bitmaps/apple.xbm \
  
  ComplexProgramTarget($(TARGET))
  
 -InstallProgramWithFlags(scores, $(XBILL_DIR), -m 777)
 +install::
 +      mkdir -p $(XBILL_DIR)
-+      if [ ! -d /var/games/xbill.scores ]; then \
-+              ${INSTALL} -c -m 0664 -o bin -g games scores /var/games/xbill.scores ; \
-+      fi
-+      ${INSTALL} -c -s -m 2755 -o bin -g games xbill $(PREFIX)/bin
++      ${INSTALL} -c -s -m 2755 -g games xbill $(PREFIX)/bin
 +
  InstallMultiple ($(XPMS), $(XBILL_DIR)pixmaps)
  InstallMultiple ($(XBMS), $(XBILL_DIR)bitmaps)



Home | Main Index | Thread Index | Old Index