Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428588 - net-dns/djbdns: replace setup scripts with documentation
Summary: net-dns/djbdns: replace setup scripts with documentation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Michael Orlitzky
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-07-30 03:46 UTC by Michael Orlitzky
Modified: 2013-07-08 23:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to improve docs and remove setup scripts (djbdns-remove-setup-scripts.patch,1.68 KB, patch)
2012-07-30 19:51 UTC, Michael Orlitzky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2012-07-30 03:46:51 UTC
The tinydns-setup, dnscache-setup, and djbdns-setup scripts are all more trouble than they're worth. They basically just run {tinydns,dnscache}-conf and stick a few lines (supplied by the user) into text files according to e.g.,

* http://cr.yp.to/djbdns/run-server.html
* http://cr.yp.to/djbdns/run-cache-x-home.html
* http://cr.yp.to/djbdns/axfrdns-conf.html

but they do it in a non-portable way, with no error checking nor cleanup in the event that one of the scripts fails halfway through.

I think they should just be dropped, and we can point the user to the setup docs. The only thing gentoo-specific about this would be the user/group names that we use in pkg_preinst().
Comment 1 Michael Orlitzky gentoo-dev 2012-07-30 19:51:50 UTC
Created attachment 319774 [details, diff]
Patch to improve docs and remove setup scripts

This patches -r26 to not install the foo-setup scripts. Instead, it points the user at the relevant docs and provides him with the foo-conf commands that the setup scripts used to use.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2013-07-08 23:49:35 UTC
+*djbdns-1.05-r28 (08 Jul 2013)
+
+  08 Jul 2013; Michael Weber <xmw@gentoo.org> +djbdns-1.05-r28.ebuild,
+  metadata.xml:
+  replace setup scripts with documentation (bug 428588, thanks Michael
+  Orlitzky), inherit readme.gentoo.
+
Comment 3 Michael Orlitzky gentoo-dev 2013-07-08 23:53:17 UTC
Thank you, this also fixes #428582.