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

Diff of /net-misc/openssh/openssh-3.5_p1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.17 Revision 1.18
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/Attic/openssh-3.5_p1-r1.ebuild,v 1.17 2003/09/26 06:05:29 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/Attic/openssh-3.5_p1-r1.ebuild,v 1.18 2003/10/29 03:17:56 pebenito Exp $
4 4
5inherit eutils 5inherit eutils
6 6
7# Make it more portable between straight releases 7# Make it more portable between straight releases
8# and _p? releases. 8# and _p? releases.
9PARCH=${P/_/} 9PARCH=${P/_/}
10S=${WORKDIR}/${PARCH} 10S=${WORKDIR}/${PARCH}
11DESCRIPTION="Port of OpenBSD's free SSH release" 11DESCRIPTION="Port of OpenBSD's free SSH release"
12HOMEPAGE="http://www.openssh.com/" 12HOMEPAGE="http://www.openssh.com/"
13SRC_URI="ftp://ftp.openbsd.org/pub/unix/OpenBSD/OpenSSH/portable/${PARCH}.tar.gz 13SRC_URI="ftp://ftp.openbsd.org/pub/unix/OpenBSD/OpenSSH/portable/${PARCH}.tar.gz"
14 selinux? ( http://www.coker.com.au/selinux/ssh/openssh_3.5p1-5.se1.diff.gz )"
15 14
16LICENSE="as-is" 15LICENSE="as-is"
17SLOT="0" 16SLOT="0"
18KEYWORDS="x86 ppc ~sparc alpha mips ~hppa arm" 17KEYWORDS="x86 ppc ~sparc alpha mips ~hppa arm"
19IUSE="ipv6 static pam tcpd kerberos selinux" 18IUSE="ipv6 static pam tcpd kerberos"
20 19
21# openssh recognizes when openssl has been slightly upgraded and refuses to run. 20# openssh recognizes when openssl has been slightly upgraded and refuses to run.
22# This new rev will use the new openssl. 21# This new rev will use the new openssl.
23RDEPEND="virtual/glibc 22RDEPEND="virtual/glibc
24 pam? ( >=sys-libs/pam-0.73 >=sys-apps/shadow-4.0.2-r2 ) 23 pam? ( >=sys-libs/pam-0.73 >=sys-apps/shadow-4.0.2-r2 )
25 kerberos? ( app-crypt/mit-krb5 ) 24 kerberos? ( app-crypt/mit-krb5 )
26 selinux? ( sys-apps/selinux-small )
27 >=dev-libs/openssl-0.9.6d 25 >=dev-libs/openssl-0.9.6d
28 sys-libs/zlib" 26 sys-libs/zlib"
29 27
30DEPEND="${RDEPEND} 28DEPEND="${RDEPEND}
31 dev-lang/perl 29 dev-lang/perl
34PROVIDE="virtual/ssh" 32PROVIDE="virtual/ssh"
35 33
36src_unpack() { 34src_unpack() {
37 unpack ${A} 35 unpack ${A}
38 cd ${S} 36 cd ${S}
39 use selinux && epatch ${DISTDIR}/openssh_3.5p1-5.se1.diff.gz
40 37
41 if [ `use alpha` ]; then 38 if [ `use alpha` ]; then
42 epatch ${FILESDIR}/${P}-gentoo-sshd-gcc3.patch || die 39 epatch ${FILESDIR}/${P}-gentoo-sshd-gcc3.patch || die
43 fi 40 fi
44} 41}
59 # KTH_KRB="yes" emerge openssh-3.5_p1-r1.ebuild 56 # KTH_KRB="yes" emerge openssh-3.5_p1-r1.ebuild
60 if [ ! -z $KTH_KRB ]; then 57 if [ ! -z $KTH_KRB ]; then
61 myconf="${myconf} --with-kerberos4=/usr/athena" 58 myconf="${myconf} --with-kerberos4=/usr/athena"
62 fi 59 fi
63 60
64 use selinux && CFLAGS="${CFLAGS} -DWITH_SELINUX"
65
66 ./configure \ 61 ./configure \
67 --prefix=/usr \ 62 --prefix=/usr \
68 --sysconfdir=/etc/ssh \ 63 --sysconfdir=/etc/ssh \
69 --mandir=/usr/share/man \ 64 --mandir=/usr/share/man \
70 --libexecdir=/usr/lib/misc \ 65 --libexecdir=/usr/lib/misc \
77 72
78 if [ "`use static`" ] 73 if [ "`use static`" ]
79 then 74 then
80 # statically link to libcrypto -- good for the boot cd 75 # statically link to libcrypto -- good for the boot cd
81 perl -pi -e "s|-lcrypto|/usr/lib/libcrypto.a|g" Makefile 76 perl -pi -e "s|-lcrypto|/usr/lib/libcrypto.a|g" Makefile
82 fi
83
84 if [ "`use selinux`" ]
85 then
86 #add -lsecure
87 sed "s:LIBS=\(.*\):LIBS=\1 -lsecure:" < Makefile > Makefile.new
88 mv Makefile.new Makefile
89 fi 77 fi
90 78
91 emake || die "compile problem" 79 emake || die "compile problem"
92} 80}
93 81

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20