Bug 180069 - port-update: dns/djbdns
Summary: port-update: dns/djbdns
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: David Thiel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-28 20:10 UTC by Alexandre Biancalana
Modified: 2013-07-23 21:50 UTC (History)
0 users

See Also:


Attachments
file.diff (1.26 KB, patch)
2013-06-28 20:10 UTC, Alexandre Biancalana
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandre Biancalana 2013-06-28 20:10:00 UTC
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

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-06-28 20:10:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lx

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-07-23 21:47:22 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"
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-07-23 21:48:20 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"
Comment 4 David Thiel freebsd_committer freebsd_triage 2013-07-23 21:48:47 UTC
State Changed
From-To: open->closed

Ok, committed with a couple corrections and the addition of the tinydns user/group. Thanks!