blob: c7997f5c09662679587ba23e2973807ced28fd6f (
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
44
45
46
47
48
|
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: System Team <system@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-3.0_p1-r6.ebuild,v 1.1 2001/11/09 04:10:42 woodchip Exp $
P=openssh-3.0p1
S=${WORKDIR}/${P}
DESCRIPTION="Port of OpenBSD's free SSH release"
SRC_URI="ftp://ftp.openbsd.org/pub/unix/OpenBSD/OpenSSH/portable/${P}.tar.gz"
HOMEPAGE="http://www.openssh.com/"
RDEPEND="virtual/glibc
pam? ( >=sys-libs/pam-0.73 )
>=dev-libs/openssl-0.9.6
sys-libs/zlib"
DEPEND="${RDEPEND} sys-devel/perl sys-apps/groff
tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
src_compile() {
local myconf
use tcpd || myconf="${myconf} --without-tcp-wrappers"
use tcpd && myconf="${myconf} --with-tcp-wrappers"
use pam || myconf="${myconf} --without-pam"
use pam && myconf="${myconf} --with-pam"
./configure \
--prefix=/usr \
--sysconfdir=/etc/ssh \
--mandir=/usr/share/man \
--libexecdir=/usr/lib/misc \
--datadir=/usr/share/openssh \
--disable-suid-ssh \
--with-ipv4-default \
--host=${CHOST} ${myconf} || die "bad configure"
make || die " compile problem"
}
src_install() {
make install-files DESTDIR=${D} || die
dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config
insinto /etc/pam.d ; newins ${FILESDIR}/sshd.pam.rc6 sshd
exeinto /etc/init.d ; newexe ${FILESDIR}/sshd.rc6 sshd
}
|