From nobody@FreeBSD.org  Fri Jun 28 19:06:38 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id 1AB4EE5
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jun 2013 19:06:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id F0EC4103B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jun 2013 19:06:37 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5SJ6btk014507
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jun 2013 19:06:37 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5SJ6bqi014503;
	Fri, 28 Jun 2013 19:06:37 GMT
	(envelope-from nobody)
Message-Id: <201306281906.r5SJ6bqi014503@oldred.freebsd.org>
Date: Fri, 28 Jun 2013 19:06:37 GMT
From: Alexandre Biancalana <ale@biancalanas.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: port-update: dns/djbdns
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180069
>Category:       ports
>Synopsis:       port-update: dns/djbdns
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lx
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 28 19:10:00 UTC 2013
>Closed-Date:    Tue Jul 23 20:49:41 UTC 2013
>Last-Modified:  Tue Jul 23 20:50:01 UTC 2013
>Originator:     Alexandre Biancalana
>Release:        9.1-RELEASE
>Organization:
>Environment:
>Description:
Hi Mantainer,

 This change add one option to enable the creation of dnscache and dnslog users/groups, this makes easy to setup dnscache as described by djbdns author (http://cr.yp.to/djbdns/run-cache-x.html). I need this to ensure the same UID/GID across all my cache resolvers on pkg instalation.

 Although the author recommends creation of specific users to tinydns and axfrdns also, I only use add options to dnscache users because it's the only component that I use of this ports. If you think it's necessary I can add options to add the other users too.

Regards,
Alexandre

Follow the diff of UIDs/GIDs file:

--- /usr/ports/GIDs     2013-06-26 10:42:47.000000000 -0300
+++ GIDs        2013-06-28 15:03:23.000000000 -0300
@@ -90,10 +90,13 @@
 polipo:*:173:
 flowtools:*:174:
 twms:*:175:
 rt:*:180:
 nagios:*:181:
 noc:*:182:
 icinga:*:183:
+dnscache:*:183:
+dnslog:*:184:
 moinmoin:*:192:
 cups:*:193:
 saned:*:194:


--- /usr/ports/UIDs     2013-06-26 10:43:03.000000000 -0300
+++ UIDs        2013-06-28 15:02:55.000000000 -0300
@@ -98,9 +98,12 @@
 polipo:*:173:173::0:0:polipo web cache:/nonexistent:/usr/sbin/nologin
 flowtools:*:174:174::0:0:Flow-tools collector pseudo-user:/nonexistent:/usr/sbin/nologin
 twms:*:175:175::0:0:tWMS pseudo-user:/nonexistent:/usr/sbin/nologin
 nagios:*:181:181::0:0:Nagios pseudo-user:/var/spool/nagios:/usr/sbin/nologin
 noc:*:182:182::0:0:NOC pseudo-user:/usr/local/noc:/bin/sh
 icinga:*:183:183::0:0:Icinga pseudo-user:/var/spool/icinga:/usr/sbin/nologin
+dnscache:*:184:184::0:0:dnscache pseudo-user:/nonexistent:/usr/sbin/nologin
+dnslog:*:185:185::0:0:dnslog pseudo-user:/nonexistent:/usr/sbin/nologin
 moinmoin:*:192:192::0:0:MoinMoin User:/nonexistent:/usr/sbin/nologin
 cups:*:193:193::0:0:Cups Owner:/nonexistent:/usr/sbin/nologin
 saned:*:194:194::0:0:SANE Scanner Daemon:/nonexistent:/bin/sh

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN /usr/ports/dns/djbdns/Makefile dns/djbdns/Makefile
--- /usr/ports/dns/djbdns/Makefile	2013-05-22 15:18:35.000000000 -0300
+++ dns/djbdns/Makefile	2013-06-28 15:05:24.000000000 -0300
@@ -3,7 +3,7 @@
 
 PORTNAME?=	djbdns
 PORTVERSION?=	${DJBDNS_VER}
-PORTREVISION?=	14
+PORTREVISION?=	15
 CATEGORIES?=	dns
 MASTER_SITES=	http://cr.yp.to/djbdns/ \
 		ftp://cr.yp.to/djbdns/
@@ -16,7 +16,7 @@
 RUN_DEPENDS=	setuidgid:${PORTSDIR}/sysutils/daemontools \
 		tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
 
-OPTIONS_DEFINE=	DUMPCACHE IP6 IGNOREIP JUMBO MAN PERSISTENT_MMAP SRV DNSCURVE
+OPTIONS_DEFINE=	DUMPCACHE IP6 IGNOREIP JUMBO MAN PERSISTENT_MMAP SRV DNSCURVE ADD_USERS
 OPTIONS_DEFAULT=	MAN
 DUMPCACHE_DESC=	persistent cache for dnscache
 IP6_DESC=	IPv6 support by Felix von Leitner
@@ -26,9 +26,15 @@
 PERSISTENT_MMAP_DESC=	persistent mmap patch by Lennert Buytenhek
 SRV_DESC=	SRV record patch by Michael Handler
 DNSCURVE_DESC=	DNSCurve support by Matthew Dempsky
+ADD_USERS_DESC=	Add dnscache and dnslog users/groups
 
 .include <bsd.port.options.mk>
 
+.if ${PORT_OPTIONS:MADD_USERS}
+USERS?= dnscache dnslog
+GROUPS?=dnscache dnslog
+.endif
+
 .if ${PORT_OPTIONS:MJUMBO}
 .if ${PORT_OPTIONS:MIP6} || ${PORT_OPTIONS:MIGNOREIP} || ${PORT_OPTIONS:MSRV} || \
 	${PORT_OPTIONS:MDNSCURVE}


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lx 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Fri Jun 28 19:10:15 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180069 
State-Changed-From-To: open->closed 
State-Changed-By: lx 
State-Changed-When: Tue Jul 23 20:48:47 UTC 2013 
State-Changed-Why:  
Ok, committed with a couple corrections and the addition of the tinydns user/group. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=180069 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180069: commit references a PR
Date: Tue, 23 Jul 2013 20:47:22 +0000 (UTC)

 Author: lx
 Date: Tue Jul 23 20:47:10 2013
 New Revision: 323549
 URL: http://svnweb.freebsd.org/changeset/ports/323549
 
 Log:
   Add UIDs and GIDs for djbdns users.
   
   PR:		ports/180069
   Submitted by:	Alexandre Biancalana <ale@biancalanas.net>
 
 Modified:
   head/GIDs
   head/UIDs
 
 Modified: head/GIDs
 ==============================================================================
 --- head/GIDs	Tue Jul 23 20:35:11 2013	(r323548)
 +++ head/GIDs	Tue Jul 23 20:47:10 2013	(r323549)
 @@ -94,6 +94,9 @@ rt:*:180:
  nagios:*:181:
  noc:*:182:
  icinga:*:183:
 +dnscache:*:184:
 +tinydns:*:185:
 +dnslog:*:186:
  moinmoin:*:192:
  cups:*:193:
  saned:*:194:
 
 Modified: head/UIDs
 ==============================================================================
 --- head/UIDs	Tue Jul 23 20:35:11 2013	(r323548)
 +++ head/UIDs	Tue Jul 23 20:47:10 2013	(r323549)
 @@ -101,6 +101,9 @@ twms:*:175:175::0:0:tWMS pseudo-user:/no
  nagios:*:181:181::0:0:Nagios pseudo-user:/var/spool/nagios:/usr/sbin/nologin
  noc:*:182:182::0:0:NOC pseudo-user:/usr/local/noc:/bin/sh
  icinga:*:183:183::0:0:Icinga pseudo-user:/var/spool/icinga:/usr/sbin/nologin
 +dnscache:*:184:184::0:0:dnscache pseudo-user:/nonexistent:/usr/sbin/nologin
 +tinydns:*:185:185::0:0:tinydns pseudo-user:/nonexistent:/usr/sbin/nologin
 +dnslog:*:186:186::0:0:dnslog pseudo-user:/nonexistent:/usr/sbin/nologin
  moinmoin:*:192:192::0:0:MoinMoin User:/nonexistent:/usr/sbin/nologin
  cups:*:193:193::0:0:Cups Owner:/nonexistent:/usr/sbin/nologin
  saned:*:194:194::0:0:SANE Scanner Daemon:/nonexistent:/bin/sh
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/180069: commit references a PR
Date: Tue, 23 Jul 2013 20:48:20 +0000 (UTC)

 Author: lx
 Date: Tue Jul 23 20:48:13 2013
 New Revision: 323550
 URL: http://svnweb.freebsd.org/changeset/ports/323550
 
 Log:
   Add option to auto-add users for dnscache, tinydns and dnslog.
   
   PR:	ports/180069
   Submitted by:	Alexandre Biancalana <ale@biancalanas.net>
 
 Modified:
   head/dns/djbdns/Makefile
 
 Modified: head/dns/djbdns/Makefile
 ==============================================================================
 --- head/dns/djbdns/Makefile	Tue Jul 23 20:47:10 2013	(r323549)
 +++ head/dns/djbdns/Makefile	Tue Jul 23 20:48:13 2013	(r323550)
 @@ -16,7 +16,7 @@ COMMENT?=	A collection of secure and rel
  RUN_DEPENDS=	setuidgid:${PORTSDIR}/sysutils/daemontools \
  		tcpserver:${PORTSDIR}/sysutils/ucspi-tcp
  
 -OPTIONS_DEFINE=	DUMPCACHE IP6 IGNOREIP JUMBO MAN PERSISTENT_MMAP SRV DNSCURVE
 +OPTIONS_DEFINE=	DUMPCACHE IP6 IGNOREIP JUMBO MAN PERSISTENT_MMAP SRV DNSCURVE ADD_USERS
  OPTIONS_DEFAULT=	MAN
  DUMPCACHE_DESC=	persistent cache for dnscache
  IP6_DESC=	IPv6 support by Felix von Leitner
 @@ -26,9 +26,15 @@ MAN_DESC=	manual pages by Gerritt Pape
  PERSISTENT_MMAP_DESC=	persistent mmap patch by Lennert Buytenhek
  SRV_DESC=	SRV record patch by Michael Handler
  DNSCURVE_DESC=	DNSCurve support by Matthew Dempsky
 +ADD_USERS_DESC= Add dnscache, tinydns and dnslog users/groups
  
  .include <bsd.port.options.mk>
  
 +.if ${PORT_OPTIONS:MADD_USERS}
 +USERS?=	dnscache tinydns dnslog
 +GROUPS?=dnscache tinydns dnslog
 +.endif
 +
  .if ${PORT_OPTIONS:MJUMBO}
  .if ${PORT_OPTIONS:MIP6} || ${PORT_OPTIONS:MIGNOREIP} || ${PORT_OPTIONS:MSRV} || \
  	${PORT_OPTIONS:MDNSCURVE}
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
