Bug 281538 - irc/ngircd: install sample with ngircd,ngircd,600 perms
Summary: irc/ngircd: install sample with ngircd,ngircd,600 perms
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Vladimir Druzenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-16 15:21 UTC by Siva Mahadevan
Modified: 2024-10-04 22:11 UTC (History)
2 users (show)

See Also:


Attachments
[PATCH] irc/ngircd: install sample with ngircd,ngircd,600 perms (1.04 KB, patch)
2024-09-16 15:21 UTC, Siva Mahadevan
no flags Details | Diff
[PATCH] irc/ngircd: install sample with ',ngircd,640' perms (1.03 KB, patch)
2024-10-04 21:35 UTC, Siva Mahadevan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.