Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 28567

Summary: 'daemontools' USE flag patches for openssh-3.6.1_p2*.ebuild (Updates)
Product: Gentoo Linux Reporter: Hallgrimur Gunnarsson (RETIRED) <hhg>
Component: New packagesAssignee: Daniel Ahlberg (RETIRED) <aliz>
Status: RESOLVED FIXED    
Severity: enhancement CC: hhg
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 28294    
Bug Blocks:    
Attachments: openssh-3.6.1_p2.ebuild patch
openssh_3.6.1_p2-r1.ebuild patch
openssh-3.6.1_p2-r2.ebuild patch
openssh-3.6.1_p2-r3.ebuild patch
files/sshd.supervise.log
files/sshd.supervise.run
Patch for init script to use daemontools if available
Alternative /var/daemontools/sshd/run file

Description Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-12 18:18:32 UTC
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?
Comment 1 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-12 18:21:48 UTC
Created attachment 17604 [details, diff]
openssh-3.6.1_p2.ebuild patch
Comment 2 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-12 18:23:57 UTC
Created attachment 17605 [details, diff]
openssh_3.6.1_p2-r1.ebuild patch
Comment 3 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-12 18:24:25 UTC
Created attachment 17606 [details, diff]
openssh-3.6.1_p2-r2.ebuild patch
Comment 4 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-12 18:25:30 UTC
Created attachment 17607 [details, diff]
openssh-3.6.1_p2-r3.ebuild patch
Comment 5 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-12 18:26:31 UTC
Created attachment 17608 [details]
files/sshd.supervise.log
Comment 6 Hallgrimur Gunnarsson (RETIRED) gentoo-dev 2003-09-12 18:26:48 UTC
Created attachment 17609 [details]
files/sshd.supervise.run
Comment 7 Mark Francis 2003-09-16 20:58:40 UTC
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.
Comment 8 Mark Francis 2003-09-16 21:10:28 UTC
Created attachment 17842 [details]
Alternative /var/daemontools/sshd/run file
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-17 14:09:39 UTC
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.
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-09-25 13:40:51 UTC
how about 3.7.1 ?
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2005-08-03 13:04:26 UTC
In sys-process/daemontools-scripts.