Bugzilla – Bug 682
Allow specifying exampledir in ./configure (or change the default)
Last modified: 2015-04-07 11:18:08 MDT
sudo 1.8.12 installs sample conf files to /usr/share/examples/sudo/ but I feel those would be better placed under /usr/share/doc/sudo/examples/. Would it be possible to adjust this, or perhaps add a configure switch to able to specify an alternate example dir? I'm packaging sudo for Arch; we don't have any particular policies regarding placement of example files. Debian, however, has such a policy and the new path suggested above would satisfy it as well: https://www.debian.org/doc/debian-policy/ch-docs.html#s12.6
Sure, I can make that configurable. I don't mind changing the default to be under the doc/sudo directory either.
I'd suggest just sticking them under $(docdir)/examples and not making it configurable (though I might be missing a use case for it being configurable). Thanks for the quick reply!
Committed: http://www.sudo.ws/repos/sudo/rev/494d9a0484b6
(In reply to Todd C Miller from comment #3) > Committed: http://www.sudo.ws/repos/sudo/rev/494d9a0484b6 Patch works, thanks!
Fixed in sudo 1.8.13, available now.
It would be nice if it's configurable, same as infodir or docdir, on configure script. On FreeBSD port I needed to patch it to install examples on expected place.
(In reply to Evangelos Foutras from comment #2) > I'd suggest just sticking them under $(docdir)/examples and not > making it configurable (though I might be missing a use case for it > being configurable). > > Thanks for the quick reply! Other operating systems don't follow same guidelines. On FreeBSD it is supposed to be installed under /usr/local/share/examples/sudo.
http://www.sudo.ws/repos/sudo/rev/4c1271298712 Make exampledir configurable and default to DATAROOTDIR/examples/sudo on BSD systems.
(In reply to Todd C Miller from comment #8) > http://www.sudo.ws/repos/sudo/rev/4c1271298712 > > Make exampledir configurable and default to > DATAROOTDIR/examples/sudo on BSD systems. Thank you!