1 |
# Copyright 1999-2005 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/nxssh/nxssh-1.4.0-r1.ebuild,v 1.2 2005/02/17 12:54:15 stuart Exp $ |
4 |
|
5 |
MY_P="${PN}-${PV}-21" |
6 |
DESCRIPTION="Modified openssh client, used by nxclient" |
7 |
HOMEPAGE="http://www.nomachine.com/" |
8 |
SRC_URI="http://www.nomachine.com/download/nxsources/nxssh/${MY_P}.tar.gz" |
9 |
LICENSE="as-is" |
10 |
SLOT="0" |
11 |
KEYWORDS="x86 ~ppc" |
12 |
DEPEND=">=dev-libs/openssl-0.9.7d-r1 |
13 |
>=sys-libs/glibc-2.3.3.20040420-r1 |
14 |
>=sys-libs/zlib-1.2.1-r2 |
15 |
tcpd? ( sys-apps/tcp-wrappers ) |
16 |
pam? ( sys-libs/pam )" |
17 |
# Run-time dependencies, same as DEPEND if RDEPEND isn't defined: |
18 |
#RDEPEND="" |
19 |
IUSE="ipv6 pam tcpd" |
20 |
|
21 |
S=${WORKDIR}/${PN} |
22 |
|
23 |
src_compile() { |
24 |
local myconf |
25 |
|
26 |
use tcpd || myconf="${myconf} --without-tcp-wrappers" |
27 |
use tcpd && myconf="${myconf} --with-tcp-wrappers" |
28 |
use pam || myconf="${myconf} --without-pam" |
29 |
use pam && myconf="${myconf} --with-pam" |
30 |
use ipv6 || myconf="${myconf} --with-ipv4-default" |
31 |
|
32 |
./configure \ |
33 |
--prefix=/usr \ |
34 |
--sysconfdir=/etc/ssh \ |
35 |
--mandir=/usr/share/man \ |
36 |
--libexecdir=/usr/lib/misc \ |
37 |
--datadir=/usr/share/openssh \ |
38 |
--disable-suid-ssh \ |
39 |
--with-privsep-path=/var/empty \ |
40 |
--with-privsep-user=sshd \ |
41 |
--with-md5-passwords \ |
42 |
--host=${CHOST} ${myconf} || die "bad configure" |
43 |
|
44 |
emake || die "compile problem" |
45 |
} |
46 |
|
47 |
src_install() { |
48 |
exeinto /usr/NX/bin |
49 |
doexe nxssh |
50 |
} |