Bug 281538

Summary: irc/ngircd: install sample with ngircd,ngircd,600 perms
Product: Ports & Packages Reporter: Siva Mahadevan <me>
Component: Individual Port(s)Assignee: Vladimir Druzenko <vvd>
Status: Closed FIXED    
Severity: Affects Some People CC: me, vvd
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
[PATCH] irc/ngircd: install sample with ngircd,ngircd,600 perms
none
[PATCH] irc/ngircd: install sample with ',ngircd,640' perms none

Description Siva Mahadevan 2024-09-16 15:21:33 UTC
Created attachment 253605 [details]
[PATCH] irc/ngircd: install sample with ngircd,ngircd,600 perms

Patch attached
Comment 1 Vladimir Druzenko freebsd_committer freebsd_triage 2024-09-16 16:52:12 UTC
Why do you think it's good idea?
For now started via rc.d script daemon ngircd can't edit config files, but can read.
AFAIR, I did exactly that.
Comment 2 Siva Mahadevan 2024-09-17 00:08:30 UTC
It's necessary due to the upstream issue I raised earlier: see https://github.com/ngircd/ngircd/pull/321. Project maintainer wants to maintain 0600 chmod, and if I don't install it this way, then running the daemon on freebsd as the 'ngircd' user will silently fail.
Comment 3 Vladimir Druzenko freebsd_committer freebsd_triage 2024-09-18 00:09:40 UTC
(In reply to Siva Mahadevan from comment #2)
Maybe
@sample(,ngircd,640) %%ETCDIR%%/ngircd.conf.sample
than?
Comment 4 Vladimir Druzenko freebsd_committer freebsd_triage 2024-09-28 16:49:59 UTC
ping
Comment 5 Siva Mahadevan 2024-10-04 21:35:06 UTC
Created attachment 254005 [details]
[PATCH] irc/ngircd: install sample with ',ngircd,640' perms

Updated the patch after testing and verifying that it runs successfully.
Comment 6 commit-hook freebsd_committer freebsd_triage 2024-10-04 22:10:10 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e65c3d3818f03a287ce8bc21b19ed2994f1e8fbd

commit e65c3d3818f03a287ce8bc21b19ed2994f1e8fbd
Author:     Siva Mahadevan <me@svmhdvn.name>
AuthorDate: 2024-10-04 21:59:48 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-10-04 21:59:48 +0000

    irc/ngircd: Install config with read permissions for group

    Fixed run with default configuration after installation without the need
    to manually change the permissions for the configuration file.

    PR:     281538

 irc/ngircd/Makefile  | 1 +
 irc/ngircd/pkg-plist | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
Comment 7 Vladimir Druzenko freebsd_committer freebsd_triage 2024-10-04 22:11:55 UTC
Thanks.