The attached patch applied over current ebuild fixes compatibility with openpam and freebsd for usermin: - the pamd file attached uses include directive instead of pam_stack; - the newpamd function is used to install the pamd file (note: this require pam eclass as the current newpamd function won't work as pam is not in IUSE and pam support is non-optional); - sed invocations are corrected to use sed -i -e instead of just -i; - a find loop is changed into xargs sed to speed it up; - root:root isn't valid on g/fbsd, so the chown is changed to root:wheel; - using newinitd to intall init.d file; - cp -a is a gnuism, changed to use cp -pR should be enough. Thanks, Diego
Created attachment 59280 [details, diff] Ebuild patch
Created attachment 59281 [details] usermin.pam-include
Diego, my boxen have been down for the past month, and I'm pretty backlogged on commits. I've looked this over and it looks good for me, but I don't like having root:wheel on linux. Would root:0 be good for you? Feel free to make this commit, and thanks. You may also want to do something similar to webmin as they're pretty much identical. --Jeremy
Thanks. I've changed root:wheel to root:0 so that it uses the right group in both OSes. I'll take a look to webmin also.