Date: Fri, 28 Jun 2013 19:06:37 GMT From: Alexandre Biancalana <ale@biancalanas.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/180069: port-update: dns/djbdns Message-ID: <201306281906.r5SJ6bqi014503@oldred.freebsd.org> Resent-Message-ID: <201306281910.r5SJA0WE095631@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 180069 >Category: ports >Synopsis: port-update: dns/djbdns >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jun 28 19:10:00 UTC 2013 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306281906.r5SJ6bqi014503>