# OpenSSH, http://www.openssh.org

name=openssh
version=3.4p1
source=($name-$version.tar.gz sshd.pam)

build() {
    cd $name-$version
    ./configure --prefix=/usr --sysconfdir=/etc/ssh --localstatedir=/var \
    --with-md5-passwords --enable-shadow --with-pam --build=i386-root-linux
    make
    make DESTDIR=$PKG install
    strip $PKG/usr/bin/*
    strip $PKG/usr/sbin/*
    strip $PKG/usr/libexec/*
    rm -f $PKG/usr/man/man1/slogin.1
    gzip -9 $PKG/usr/man/man?/*
    ln -s ssh.1.gz $PKG/usr/man/man1/slogin.1.gz
    mkdir -p $PKG/etc/pam.d
    cp ../sshd.pam $PKG/etc/pam.d/sshd
    chown root.root $PKG/etc/pam.d -R
}
