Hello! These patches add support for the 'daemontools' USE flag (see #28294). I also copied the host key generation from the init.d script to pkg_postinst(), it's really silly not to do it just there, and I dont want to generate the keys in the daemontools run script. Also offtopic, I have a question, I create a sshlog user in pkg_setup. I saw that the sshd privilege seperation user is created in pkg_preinst(). I looked it up, and found a discussion from '02 (#4169) where it was concluded that users should _not_ be created in pkg_setup() since it shouldn't do any changes to the system. Well, alot of ebuilds do it and it's in the official gentoo ebuild howto in developer docs. What's the status on this?
Created attachment 17604 [details, diff] openssh-3.6.1_p2.ebuild patch
Created attachment 17605 [details, diff] openssh_3.6.1_p2-r1.ebuild patch
Created attachment 17606 [details, diff] openssh-3.6.1_p2-r2.ebuild patch
Created attachment 17607 [details, diff] openssh-3.6.1_p2-r3.ebuild patch
Created attachment 17608 [details] files/sshd.supervise.log
Created attachment 17609 [details] files/sshd.supervise.run
Created attachment 17839 [details, diff] Patch for init script to use daemontools if available This patch does not require the ebuild changes to work.It does however require the existance of /var/daemontools/sshd service directory for daemontools to be used.
Created attachment 17842 [details] Alternative /var/daemontools/sshd/run file
Look at my comment in: http://bugs.gentoo.org/show_bug.cgi?id=28941 I do not like hacking the same thing in 20 scripts.
how about 3.7.1 ?
In sys-process/daemontools-scripts.