RIGHT:[[フリーソフトウェアのコンパイル]]
//
// OpenSSH
//
*プラットフォーム
-Solaris 8 07/03
-gcc-3.3.2
-LD_RUN_PATH=/usr/local/lib:/usr/local/ssl/lib
-PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/ccs/bin:/usr/ucb
//------------
*必要なもの
-zlib-1.2.1
-openssl-0.9.7c
-openssh-3.8p1
-tcp_wrappers_7.6.tar.gz
//
*zlib-1.2.1
% ./configure --shared
% make
# make install
//
*openssl-0.9.7c
% ./config shared zlib-dynamic
% make
% make test
# make install
//
*tcp_wrappers
以下のパッチをあてる
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
//
*openssh-3.7.1p2
# 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