Summary: | Have configuration file protection against new files in conf.d/ directories | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Jack Eids_no_google_me_ness <jack> |
Component: | Conceptual/Abstract Ideas | Assignee: | Package Manager Specification <pms> |
Status: | RESOLVED NEEDINFO | ||
Severity: | enhancement | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jack Eids_no_google_me_ness
2012-10-15 18:03:39 UTC
(In reply to comment #0) > Could it be possible for a package to establish a wildcard pattern similar > to what these conf.d directories match on, so that portage can use that to > create new files as dot-files that do not match the pattern? You want the package to configure this for you automatically, by installing a configuration file containing patterns for the package manager to use? > This should only be relevant to an upgrade or the initial install of these > programs would be broken, or perhaps, if any file is detected, the others > could be written as dot files for dispatch-conf to integrate. For the initial install, the mentioned "configuration file containing patterns" would not be installed yet, so maybe that would be enough to prevent it from breaking the initial install. Well, I don't really know a lot technically about how ebuilds, dispatch-conf, etc-update and all of the interrelated apps work, and the more my suggestion leans into implementation details, the less likely my input will be useful. That being said, I think what you said sounds good. At my level, as a gentoo admin and someone who has written & compiled software but never written an ebuild or explored the portage code, I guess I was thinking it would be some kind of magic that could come out of a new ebuild option, and I might not ever know exactly how it figured it out. I thought of another hitch, by the way, which is that I'm not actually positive that dovecot or apache's wildcard will not match dot-files, assuming they end with ".conf" If this is something that ebuilds will need to be aware of, then it should go in PMS. No progress, therefore closing. Feel free to reopen with a concrete proposal. |