Index: openssh-6.9_p1-r2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-6.9_p1-r2.ebuild,v retrieving revision 1.10 diff -u -r1.10 openssh-6.9_p1-r2.ebuild --- openssh-6.9_p1-r2.ebuild 23 Jul 2015 09:35:49 -0000 1.10 +++ openssh-6.9_p1-r2.ebuild 23 Jul 2015 23:31:10 -0000 @@ -169,6 +169,15 @@ ) > version.h eautoreconf + + # don't use /var/run on linux + local initd=sshd.rc6.4 + + if use kernel_linux; then + sed 's:/var/run:/run:' "${initd}" > "${T}"/sshd.initd || die "sed of initd failed" + else + cp -f "${initd}" "${T}"/sshd.initd || die "failed to copy initd file" + fi } src_configure() { @@ -218,7 +227,7 @@ emake install-nokeys DESTDIR="${D}" fperms 600 /etc/ssh/sshd_config dobin contrib/ssh-copy-id - newinitd "${FILESDIR}"/sshd.rc6.4 sshd + newinitd "${T}"/sshd.initd sshd newconfd "${FILESDIR}"/sshd.confd sshd keepdir /var/empty