/[gentoo-x86]/net-misc/openssh/openssh-3.1_p1.ebuild
Gentoo

Contents of /net-misc/openssh/openssh-3.1_p1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 3 00:14:50 2002 UTC (17 years, 5 months ago) by lostlogic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
New revision for bugs 4169 4170 4193, removing all old versions as there are various security exploits that are known in them.

1 # Copyright 1999-2001 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # Maintainer: Daniel Robbins <drobbins@gentoo.org>
4 # $Header: /home/cvsroot/gentoo-x86/net-misc/openssh/openssh-3.1_p1.ebuild,v 1.1 2002/03/07 17:11:05 m0rpheus Exp $
5
6 # Make it more portable between straight releases
7 # and _p? releases.
8 PARCH=${P/_/}
9 S=${WORKDIR}/${PARCH}
10 DESCRIPTION="Port of OpenBSD's free SSH release"
11 SRC_URI="ftp://ftp.openbsd.org/pub/unix/OpenBSD/OpenSSH/portable/${PARCH}.tar.gz"
12 HOMEPAGE="http://www.openssh.com/"
13
14 #openssh recognizes when openssl has been slightly upgraded and refuses to run. This new rev
15 #will use the new openssl.
16 RDEPEND="virtual/glibc pam? ( >=sys-libs/pam-0.73 ) >=dev-libs/openssl-0.9.6c sys-libs/zlib "
17 DEPEND="${RDEPEND} sys-devel/perl sys-apps/groff tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
18
19 src_compile() {
20
21 local myconf
22 use tcpd || myconf="${myconf} --without-tcp-wrappers"
23 use tcpd && myconf="${myconf} --with-tcp-wrappers"
24 use pam || myconf="${myconf} --without-pam"
25 use pam && myconf="${myconf} --with-pam"
26
27 ./configure \
28 --prefix=/usr \
29 --sysconfdir=/etc/ssh \
30 --mandir=/usr/share/man \
31 --libexecdir=/usr/lib/misc \
32 --datadir=/usr/share/openssh \
33 --disable-suid-ssh \
34 --with-ipv4-default \
35 --host=${CHOST} ${myconf} || die "bad configure"
36
37 if [ "`use static`" ]
38 then
39 # statically link to libcrypto -- good for the boot cd
40 perl -pi -e "s|-lcrypto|/usr/lib/libcrypto.a|g" Makefile
41 fi
42
43 make || die " compile problem"
44 }
45
46 src_install() {
47
48 make install-files DESTDIR=${D} || die
49 dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config
50
51 insinto /etc/pam.d ; newins ${FILESDIR}/sshd.pam.rc6 sshd
52 exeinto /etc/init.d ; newexe ${FILESDIR}/sshd.rc6 sshd
53 }

  ViewVC Help
Powered by ViewVC 1.1.20