modified openssh
authorPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 23 May 2012 01:42:02 +0000 (21:42 -0400)
committerPatrik Gornicz <Gornicz.P@gmail.com>
Wed, 23 May 2012 02:08:15 +0000 (22:08 -0400)
net-misc/openssh/files/sshd.rc6.3
net-misc/openssh/files/sshd.service
net-misc/openssh/files/sshd_at.service
net-misc/openssh/openssh-5.9_p1-r4.ebuild

index c55116e..905cb8f 100755 (executable)
@@ -13,7 +13,7 @@ depend() {
 
 SSHD_CONFDIR=${SSHD_CONFDIR:-/etc/ssh}
 SSHD_PIDFILE=${SSHD_PIDFILE:-/var/run/${SVCNAME}.pid}
-SSHD_BINARY=${SSHD_BINARY:-/usr/sbin/sshd}
+SSHD_BINARY=${SSHD_BINARY:-/sbin/sshd} # PGORNICZ: installed into /sbin not /usr/sbin
 
 checkconfig() {
        if [ ! -d /var/empty ] ; then
index 45f823a..dabc5d4 100644 (file)
@@ -3,7 +3,7 @@ Description=OpenSSH server daemon
 After=syslog.target network.target auditd.service
 
 [Service]
-ExecStart=/usr/sbin/sshd -D -e
+ExecStart=/sbin/sshd -D -e
 ExecReload=/bin/kill -HUP $MAINPID
 
 [Install]
index 2645ad0..c7ef64c 100644 (file)
@@ -3,6 +3,6 @@ Description=OpenSSH per-connection server daemon
 After=syslog.target auditd.service
 
 [Service]
-ExecStart=-/usr/sbin/sshd -i -e
+ExecStart=-/sbin/sshd -i -e
 StandardInput=socket
 StandardError=syslog
index 1bba1af..0b2599d 100644 (file)
@@ -216,6 +216,9 @@ src_install() {
 
        systemd_dounit "${FILESDIR}"/sshd.{service,socket} || die
        systemd_newunit "${FILESDIR}"/sshd_at.service 'sshd@.service' || die
+
+       # PGORNICZ: install into /sbin not /usr/sbin
+       mv "${D}"/usr/sbin "${D}"/sbin || die "PGORNICZ: Failed to mv sshd into /lib"
 }
 
 src_test() {