/[gentoo-x86]/net-misc/ssh/ssh-3.2.9.1-r2.ebuild
Gentoo

Contents of /net-misc/ssh/ssh-3.2.9.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Thu Nov 20 04:48:53 2008 UTC (11 years ago) by darkside
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
remove from tree by treecleaners, masked for years 'pending removal' bug #139969

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/ssh/ssh-3.2.9.1-r2.ebuild,v 1.1 2007/10/10 13:51:28 humpback Exp $
4
5 inherit eutils pam
6
7 DESCRIPTION="SSH.COM free for Non-Commercial Use ssh version"
8 HOMEPAGE="http://www.ssh.com/"
9 SRC_URI="ftp://ftp.ssh.com/pub/ssh/${P}.tar.gz"
10
11 LICENSE="ssh"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="X ipv6 crypt openssh"
15
16 RDEPEND="X? ( x11-libs/libSM
17 x11-libs/libXext )
18 !openssh? ( !virtual/ssh )"
19 DEPEND="${RDEPEND}
20 X? ( x11-proto/xextproto )"
21 PROVIDE="virtual/ssh"
22
23 pkg_setup() {
24 enewgroup sshd 22
25 enewuser sshd 22 -1 /var/empty sshd
26 }
27
28 src_unpack() {
29 unpack ${A}
30 cd "${WORKDIR}"
31 epatch "${FILESDIR}"/patch-readline.diff
32 cd "${S}"
33 epatch "${FILESDIR}"/sshfilexfers.diff
34 }
35
36 src_compile() {
37 econf \
38 $(use_with ipv6 ipv6) \
39 $(use_with X) \
40 $(use_with crypt gpg) \
41 || die "configure failed"
42 make || die "make failed"
43 }
44
45 src_install() {
46 # TODO: fix this crap which messes with $ROOT
47 if [ -e ${ROOT}/etc/ssh2/hostkey ] ; then
48 # this keeps the install from generating these keys again
49 insinto /etc/ssh2
50 doins ${ROOT}/etc/ssh2/hostkey{,.pub}
51 fperms go-rwx /etc/ssh2/hostkey
52 fi
53 #this is ugly but helps on some problems on fresh installs see bug #57915
54 addwrite /root/.ssh2
55 make install DESTDIR=${D} || die "install failed"
56 chmod 600 ${D}/etc/ssh2/sshd2_config
57 dodoc CHANGES FAQ HOWTO.anonymous.sftp README* SSH2.QUICKSTART
58
59 newpamd "${FILESDIR}"/pamd.sshd2 sshd2
60 newinitd "${FILESDIR}"/sshd2 sshd2
61
62 cd "${D}"/usr
63 use openssh && find bin sbin share/man -type l -exec rm '{}' \;
64 }

  ViewVC Help
Powered by ViewVC 1.1.20