From 6f6468772846a2af0bcab4f4ac7b1a1695adcb54 Mon Sep 17 00:00:00 2001 From: jca Date: Sun, 18 Dec 2016 19:50:59 +0000 Subject: [PATCH] Run as group `_news'. ok sthen@ --- news/leafnode/Makefile | 6 ++++-- news/leafnode/pkg/PLIST | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/news/leafnode/Makefile b/news/leafnode/Makefile index 7a1c4bf481e..15563177f37 100644 --- a/news/leafnode/Makefile +++ b/news/leafnode/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.60 2015/10/02 11:55:05 jca Exp $ +# $OpenBSD: Makefile,v 1.61 2016/12/18 19:50:59 jca Exp $ COMMENT= USENET software package designed for small sites DISTNAME= leafnode-1.11.11 +REVISION= 0 CATEGORIES= news HOMEPAGE= http://leafnode.sourceforge.net/ @@ -19,7 +20,8 @@ LIB_DEPENDS= devel/pcre CONFIGURE_STYLE= gnu CONFIGURE_ARGS+= --with-lockfile=/var/spool/news/fetchnews.lck -CONFIGURE_ARGS+= --with-user=_news +CONFIGURE_ARGS+= --with-user=_news \ + --with-group=_news DOCS= README README-FQDN INSTALL FAQ.txt NEWS OLDNEWS diff --git a/news/leafnode/pkg/PLIST b/news/leafnode/pkg/PLIST index 808454bed67..1082058b536 100644 --- a/news/leafnode/pkg/PLIST +++ b/news/leafnode/pkg/PLIST @@ -1,5 +1,6 @@ -@comment $OpenBSD: PLIST,v 1.17 2012/01/26 08:03:57 ajacoutot Exp $ -@newuser _news:519:news:daemon:NNTP server:/var/spool/news:/sbin/nologin +@comment $OpenBSD: PLIST,v 1.18 2016/12/18 19:50:59 jca Exp $ +@newgroup _news:519 +@newuser _news:519:_news:daemon:NNTP server:/var/spool/news:/sbin/nologin @extraunexec rm -rf /var/spool/news/* @bin bin/leafnode-version @bin bin/newsq @@ -33,7 +34,7 @@ share/examples/leafnode/nntp.rules.dist share/examples/leafnode/run.tcpd.dist share/examples/leafnode/run.tcpserver.dist @owner _news -@group news +@group _news @sample /var/spool/news/ @sample /var/spool/news/leaf.node/ @sample /var/spool/news/failed.postings/