FS#48182 - [pdnsd] install sample config under /usr/share/doc/ instead of /etc/

Attached to Project: Community Packages
Opened by Jakub Klinkovský (lahwaacz) - Sunday, 14 February 2016, 19:06 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 17 May 2016, 14:48 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Daniel Micay (thestinger)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The default /etc/pdnsd.conf is an "example documentation config", which has to be substantially modified to obtain a working setup. Upstream installs it as /etc/pdnsd.conf.sample, but the PKGBUILD [1] moves it to /etc/pdnsd.conf. I think it would be better to keep the file under /usr/share/doc/ instead, because:

- Users will hardly overwrite files in /usr/share/doc/ so keeping "example documentation configs" there will ease maintenance of short and much clearer separate config files.
- Creating a simple configuration from scratch is often easier than modifying the bloated sample.
- Starting pdnsd.service with the sample config might succeed and/or spam the journal with phoney error messages.
- The only Arch-specific thing in the config is run_as="pdnsd", which can be kept in a clean /etc/pdnsd.conf after the sample is moved to /usr/share/doc/. Users would then add their own options to the clean file.

For further reasoning please see https://mailman.archlinux.org/pipermail/arch-general/2014-May/036386.html

[1]: https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/pdnsd#n33
This task depends upon

Closed by  Sergej Pupykin (sergej)
Tuesday, 17 May 2016, 14:48 GMT
Reason for closing:  Fixed

Loading...