- perls XML::Parser package is call perl-XML-Parser in fedora
Uppercase P according to my local install and https://apps.fedoraproject.org/packages/perl-XML-Parser.
- fedora (and maybe gentoo) need perls Thread::Queue since its not provided by the default packages. In gentoo its a virutal package, so its certainly provided already but depending on it should not cause any problems
- rpcgen is required by samba and not provided by all current glibc packages
- add perl as a generic dependency for distris that bundle Thread::Queue in the central perl package ot balance out the dep-list
Replace "which" with "command -v", which is part of POSIX.
Make offering to install packages contingent on having the sudo command.
Not every distro uses sudo. It is optional in Gentoo, for example.
Signed-off-by: Ian Leonard <antonlacon@gmail.com>