Hi,
Pavel Korovin noticed that gitea and dnsdist use the same user [1]. jca@
told me that changing dnsdist should be easier because dnsdist
doesn't/shouldn't own anything on the disk.
Here are three diffs to change that.
I don't cc dnsdist maintainer, I chatted with him about it and he
didn't have any complaint about it.
[1]: https://marc.info/?l=openbsd-ports&m=149009685827196&w=2
Comments? OK?
Cheers,
Daniel
Index: Makefile
===================================================================
RCS file: /cvs/ports/net/dnsdist/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile 22 Jan 2017 12:13:09 -0000 1.2
+++ Makefile 21 Mar 2017 17:01:32 -0000
@@ -5,6 +5,8 @@ COMMENT= highly DNS-, DoS- and abuse-aw
DISTNAME= dnsdist-1.1.0
EXTRACT_SUFX= .tar.bz2
+REVISION= 0
+
CATEGORIES= net
HOMEPAGE= http://dnsdist.org/
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/net/dnsdist/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 15 Jan 2017 17:13:33 -0000 1.1.1.1
+++ pkg/PLIST 21 Mar 2017 17:01:32 -0000
@@ -1,7 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/01/15 17:13:33 sthen Exp $
@extra ${SYSCONFDIR}/dnsdist/dnsdist.conf
-@newgroup _dnsdist:787
-@newuser _dnsdist:787:_dnsdist:daemon:dnsdist DNS load balancer:/nonexistent:/sbin/nologin
+@newgroup _dnsdist:788
+@newuser _dnsdist:788:_dnsdist:daemon:dnsdist DNS load balancer:/nonexistent:/sbin/nologin
@bin bin/dnsdist
@man man/man1/dnsdist.1
share/doc/dnsdist/
Index: user.list
===================================================================
RCS file: /cvs/ports/infrastructure/db/user.list,v
retrieving revision 1.289
diff -u -p -r1.289 user.list
--- user.list 12 Jan 2017 22:03:02 -0000 1.289
+++ user.list 21 Mar 2017 16:38:48 -0000
@@ -295,4 +295,5 @@ id user group port options
784 _hping _hping net/hping
785 _uucp _uucp net/uucp
786 _riemann _riemann sysutils/riemann
-787 _dnsdist _dnsdist net/dnsdist
+787 _gitea _gitea www/gitea
+788 _dnsdist _dnsdist net/dnsdist
Index: faq/current.html
===================================================================
RCS file: /cvs/www/faq/current.html,v
retrieving revision 1.801
diff -u -p -r1.801 current.html
--- faq/current.html 3 Mar 2017 11:17:32 -0000 1.801
+++ faq/current.html 21 Mar 2017 16:08:51 -0000
@@ -631,6 +631,17 @@ It is advised to update
<a href="http://man.openbsd.org/sysctl.conf.5">sysctl.conf(5)</a>
to use the new name.
+<!-- XXXrelease this must not go in upgrade61.html -->
+<h3 id="r20170321">2017/03/21 - [ports] net/dnsdist UID change</h3>
+The net/dnsdist port now uses uid and gid 788. If you installed dnsdist,
+run the following commands.
+
+<blockquote><pre>
+# <b>groupmod -g 788 _dnsdist</b>
+# <b>usermod -u 788 _dnsdist</b>
+# <b>usermod -g 788 _dnsdist</b>
+</pre></blockquote>
+
<p>