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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sat Dec 8 22:11:46 2001 UTC (17 years, 10 months ago) by drobbins
Branch: MAIN
Changes since 1.1: +4 -4 lines
${PN} -> ${PARCH}; we already have a ${PN}

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

  ViewVC Help
Powered by ViewVC 1.1.20