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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Oct 10 13:51:28 2007 UTC (12 years, 2 months ago) by humpback
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
new revision that fixes #168584
(Portage version: 2.1.3.9)

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-r1.ebuild,v 1.5 2007/07/22 08:14:11 dberkholz 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 }
33
34 src_compile() {
35 econf \
36 $(use_with ipv6 ipv6) \
37 $(use_with X) \
38 $(use_with crypt gpg) \
39 || die "configure failed"
40 make || die "make failed"
41 }
42
43 src_install() {
44 # TODO: fix this crap which messes with $ROOT
45 if [ -e ${ROOT}/etc/ssh2/hostkey ] ; then
46 # this keeps the install from generating these keys again
47 insinto /etc/ssh2
48 doins ${ROOT}/etc/ssh2/hostkey{,.pub}
49 fperms go-rwx /etc/ssh2/hostkey
50 fi
51 #this is ugly but helps on some problems on fresh installs see bug #57915
52 addwrite /root/.ssh2
53 make install DESTDIR=${D} || die "install failed"
54 chmod 600 ${D}/etc/ssh2/sshd2_config
55 dodoc CHANGES FAQ HOWTO.anonymous.sftp README* SSH2.QUICKSTART
56
57 newpamd "${FILESDIR}"/pamd.sshd2 sshd2
58 newinitd "${FILESDIR}"/sshd2 sshd2
59
60 cd "${D}"/usr
61 use openssh && find bin sbin share/man -type l -exec rm '{}' \;
62 }

  ViewVC Help
Powered by ViewVC 1.1.20