% ./configure --shared % make # make install
% ./config shared zlib-dynamic % make % make test # make install
以下のパッチをあてる
diff Makefile Makefile.org 47c47 < REAL_DAEMON_DIR=/usr/sbin --- > #REAL_DAEMON_DIR=/usr/sbin 494c494 < STYLE = -DPROCESS_OPTIONS # Enable language extensions. --- > #STYLE = -DPROCESS_OPTIONS # Enable language extensions. 594d593 < #TABLES = -DHOSTS_DENY=\"/etc/hosts.allow\" -DHOSTS_ALLOW=\"/etc/hosts.allow\"
% make sunos5 CC=gcc # cp tcpd /usr/sbin # mkdir /usr/local/sbin # cp safe_finger tcpdchk tcpdmatch try-from /usr/local/sbin # cp tcpd.h /usr/local/include/ # cp libwrap.a /usr/local/lib
# groupadd -g 122 sshd # useradd -d /var/empty -u 122 -g sshd -m -s /bin/false sshd # passwd -l sshd # chown root:root /var/empty # rm /var/empty/* % ./configure --with-random=/dev/random \ --with-ssl-dir --with-zlib -with-pam \ --with-tcp-wrappers % make # make install # cd contrib/solaris # sed s@%%openSSHDir%%@\/usr\/local@ opensshd.in | \ sed s@%%configDir%%@\/usr\/local\/etc@ | \ sed s@%%pidDir%%@\/var\/run@ > /etc/init.d/sshd # chmod a+rx /etc/init.d/sshd # ln -s ../init.d/sshd /etc/rc2.d/S99sshd