summaryrefslogtreecommitdiff
blob: 14faea2e8c4a40c3d61c40c0ac3b545c52976fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-2.1.1p4.ebuild,v 1.2 2000/08/16 04:38:20 drobbins Exp $

P=openssh-2.1.1p4
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Port of OpenBSD's free SSH release"
SRC_URI="ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/"${A}
HOMEPAGE="http://www.openssh.com/"

src_compile() {
    ./configure --prefix=/usr --sysconfdir=/etc/ssh \
	--libexecdir=/usr/libexec --mandir=/usr/man \
	--enable-gnome-askpass \
	--with-tcp-wrappers --with-ipv4-default --host=${CHOST}                          
    make
}

src_unpack() {
    unpack ${A}
    cd ${S}
#    patch -p0 < contrib/chroot.diff
}

src_install() {                               
    make manpages install-files DESTDIR=${D} 
    prepman
    dodoc ChangeLog COPYING.* CREDITS OVERVIEW README* TODO UPGRADING
    dodir /etc/rc.d/init.d/
    cp ${O}/files/sshd ${D}/etc/rc.d/init.d/sshd
}

pkg_config() {

  # Make ssh start at boot
  echo "Generating symlinks"
  ${ROOT}/usr/sbin/rc-update add sshd

}