Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 17604 Details for
Bug 28567
'daemontools' USE flag patches for openssh-3.6.1_p2*.ebuild (Updates)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
openssh-3.6.1_p2.ebuild patch
openssh-3.6.1_p2_dt.ebuild.diff (text/plain), 2.34 KB, created by
Hallgrimur Gunnarsson (RETIRED)
on 2003-09-12 18:21:48 UTC
(
hide
)
Description:
openssh-3.6.1_p2.ebuild patch
Filename:
MIME Type:
Creator:
Hallgrimur Gunnarsson (RETIRED)
Created:
2003-09-12 18:21:48 UTC
Size:
2.34 KB
patch
obsolete
>--- openssh-3.6.1_p2.ebuild 2003-09-13 00:40:17.000000000 +0000 >+++ openssh-3.6.1_p2_dt.ebuild 2003-09-13 00:13:29.000000000 +0000 >@@ -4,7 +4,7 @@ > > inherit eutils > >-IUSE="ipv6 static pam tcpd kerberos selinux" >+IUSE="ipv6 static pam tcpd kerberos selinux daemontools" > > # Make it more portable between straight releases > # and _p? releases. >@@ -20,6 +20,7 @@ > RDEPEND="virtual/glibc > pam? ( >=sys-libs/pam-0.73 >=sys-apps/shadow-4.0.2-r2 ) > kerberos? ( app-crypt/mit-krb5 ) >+ daemontools? ( >=sys-apps/daemontools-0.76 ) > selinux? ( sys-apps/selinux-small ) > >=dev-libs/openssl-0.9.6d > sys-libs/zlib" >@@ -34,6 +35,18 @@ > LICENSE="as-is" > KEYWORDS="x86 ppc sparc alpha mips hppa arm amd64" > >+pkg_setup() { >+ if use daemontools ; then >+ if ! grep -q ^sshlog /etc/group ; then >+ groupadd sshlog || die "Failed to add group: sshlog" >+ fi >+ >+ if ! grep -q ^sshlog /etc/passwd ; then >+ useradd -g sshlog -d /dev/null -s /dev/null sshlog || die "Failed to add user: sshlog" >+ fi >+ fi >+} >+ > src_unpack() { > unpack ${PARCH}.tar.gz > cd ${S} >@@ -98,6 +111,17 @@ > dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config > insinto /etc/pam.d ; newins ${FILESDIR}/sshd.pam sshd > exeinto /etc/init.d ; newexe ${FILESDIR}/sshd.rc6 sshd >+ if use daemontools && [ ! -d /etc/ssh/supervise ] ; then >+ diropts -m 755 -o root >+ dodir /etc/ssh/supervise /etc/ssh/supervise/log >+ exeinto /etc/ssh/supervise ; newexe ${FILESDIR}/sshd.supervise.run run >+ exeinto /etc/ssh/supervise/log ; newexe ${FILESDIR}/sshd.supervise.log run >+ >+ diropts -m 755 -o sshlog -g sshlog >+ dodir /var/log/sshd >+ keepdir /var/log/sshd >+ fi >+ > touch ${D}/var/empty/.keep > } > >@@ -118,6 +142,19 @@ > # empty dir for the new priv separation auth chroot.. > install -d -m0755 -o root -g root ${ROOT}/var/empty > >+ if [ ! -e /etc/ssh/ssh_host_key ] ; then >+ einfo "Generating Hostkey..." >+ /usr/bin/ssh-keygen -t rsa1 -b 1024 -f /etc/ssh/ssh_host_key -N '' >+ fi >+ if [ ! -e /etc/ssh/ssh_host_dsa_key ] ; then >+ einfo "Generating DSA-Hostkey..." >+ /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >+ fi >+ if [ ! -e /etc/ssh/ssh_host_rsa_key ] ; then >+ einfo "Generating RSA-Hostkey..." >+ /usr/bin/ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' >+ fi >+ > einfo > einfo "Remember to merge your config files in /etc/ssh!" > einfo "As of version 3.4 the default is to enable the UsePrivelegeSeparation"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28567
: 17604 |
17605
|
17606
|
17607
|
17608
|
17609
|
17839
|
17842