Subject: pkg/22956: update net/bind8 to 8.4.1P1
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 09/25/2003 15:03:54
>Number:         22956
>Category:       pkg
>Synopsis:       update net/bind8 to 8.4.1P1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 25 19:04:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Greg A. Woods
>Release:        2003/09/17
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD
>Description:

	there's a "patch-1" available now for bind8

	the bind8 package should be called "bind8" explicitly

	also add support installing runtime and admin users and groups

>How-To-Repeat:

>Fix:

Index: net/bind8/Makefile
===================================================================
RCS file: /cvs/master/m-NetBSD/main/pkgsrc/net/bind8/Makefile,v
retrieving revision 1.22
diff -c -r1.22 Makefile
*** net/bind8/Makefile	3 Aug 2003 07:39:58 -0000	1.22
--- net/bind8/Makefile	22 Sep 2003 20:14:42 -0000
***************
*** 5,16 ****
  #
  
  DISTNAME=	bind
! PKGNAME=	bind-${BIND_VERSION}
  WRKSRC=		${WRKDIR}/src
  CATEGORIES=	net
  MASTER_SITES=	ftp://ftp.isc.org/isc/bind/src/${BIND_VERSION}/
  DISTFILES=	${DISTNAME}-src.tar.gz ${DISTNAME}-doc.tar.gz
  
  MAINTAINER=	packages@NetBSD.org
  HOMEPAGE=	http://www.isc.org/products/BIND/
  COMMENT=	The Berkeley Internet Name Daemon, an implementation of DNS
--- 5,19 ----
  #
  
  DISTNAME=	bind
! PKGNAME=	bind8-${BIND_VERSION}
  WRKSRC=		${WRKDIR}/src
  CATEGORIES=	net
  MASTER_SITES=	ftp://ftp.isc.org/isc/bind/src/${BIND_VERSION}/
  DISTFILES=	${DISTNAME}-src.tar.gz ${DISTNAME}-doc.tar.gz
  
+ PATCHFILES=	patch-p1
+ PATCH_DIST_STRIP= -p2
+ 
  MAINTAINER=	packages@NetBSD.org
  HOMEPAGE=	http://www.isc.org/products/BIND/
  COMMENT=	The Berkeley Internet Name Daemon, an implementation of DNS
***************
*** 21,26 ****
--- 24,35 ----
  DIST_SUBDIR=	bind/${BIND_VERSION}
  EXTRACT_ONLY=	${DISTNAME}-src.tar.gz ${DISTNAME}-doc.tar.gz
  
+ # NOTE: this package should be made to conflict with bind-8.*
+ 
+ # BIND has its own idea, which may not match what we desire, so we can override
+ #
+ MAKE_ENV+=	CDEBUG='${CFLAGS}'
+ 
  USE_PKGINSTALL=	yes
  RCD_SCRIPTS=	named
  
***************
*** 28,33 ****
--- 37,59 ----
  
  .include "../../mk/bsd.prefs.mk"
  
+ RCD_SCRIPTS=	named
+ 
+ NAMED_USER?=	dns
+ NAMED_USER_ID?=	40
+ NAMED_GROUP?=	dns
+ NAMED_GROUP_ID?= 40
+ NAMED_ADMIN_USER?=	dnsadmin
+ NAMED_ADMIN_USER_ID?=	41
+ NAMED_ADMIN_GROUP?=	dnsadmin
+ NAMED_ADMIN_GROUP_ID?=	41
+ 
+ PKG_GROUPS+=	${NAMED_GROUP}:${NAMED_GROUP_ID}
+ PKG_GROUPS+=	${NAMED_ADMIN_GROUP}:${NAMED_ADMIN_GROUP_ID}
+ 
+ PKG_USERS+=	${NAMED_USER}:${NAMED_GROUP}:${NAMED_USER_ID}:Named\\ Runtime\\ User:/var/named
+ PKG_USERS+=	${NAMED_ADMIN_USER}:${NAMED_ADMIN_GROUP}:${NAMED_ADMIN_USER_ID}:Named\\ Administrator:${PREFIX}/etc/namedb:${SH}
+ 
  .if ${OPSYS} == "SunOS"
  MAKEFLAGS+=	MANROFF=cat
  MAKEFLAGS+=	INSTALL=${INSTALL}
>Release-Note:
>Audit-Trail:
>Unformatted: