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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Jul 3 00:14:51 2002 UTC (17 years, 5 months ago) by lostlogic
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
New revision for bugs 4169 4170 4193, removing all old versions as there are various security exploits that are known in them.

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License, v2 or later
3 # $Header: /home/cvsroot/gentoo-x86/net-misc/openssh/openssh-3.3_p1.ebuild,v 1.1 2002/06/23 01:35:06 woodchip Exp $
4
5 DESCRIPTION="Port of OpenBSD's free SSH release"
6 HOMEPAGE="http://www.openssh.com/"
7
8 # openssh recognizes when openssl has been slightly upgraded and refuses to run.
9 # This new rev will use the new openssl.
10 RDEPEND="virtual/glibc
11 pam? ( >=sys-libs/pam-0.73 >=sys-apps/shadow-4.0.2-r2 )
12 >=dev-libs/openssl-0.9.6d
13 sys-libs/zlib"
14
15 DEPEND="${RDEPEND}
16 sys-devel/perl
17 sys-apps/groff
18 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )"
19
20 # Make it more portable between straight releases
21 # and _p? releases.
22 PARCH=${P/_/}
23
24 SRC_URI="ftp://ftp.openbsd.org/pub/unix/OpenBSD/OpenSSH/portable/${PARCH}.tar.gz"
25 S=${WORKDIR}/${PARCH}
26
27 LICENSE="as-is"
28 SLOT="0"
29
30 pkg_setup() {
31 if ! groupmod sshd; then
32 groupadd -g 90 sshd || die "problem adding group sshd"
33 fi
34
35 if ! id sshd; then
36 useradd -g sshd -s /dev/null -d /var/empty -c "sshd" sshd
37 assert "problem adding user sshd"
38 fi
39 }
40
41 src_compile() {
42 local myconf
43 use tcpd || myconf="${myconf} --without-tcp-wrappers"
44 use tcpd && myconf="${myconf} --with-tcp-wrappers"
45 use pam || myconf="${myconf} --without-pam"
46 use pam && myconf="${myconf} --with-pam"
47 use ipv6 || myconf="${myconf} --with-ipv4-default"
48
49 ./configure \
50 --prefix=/usr \
51 --sysconfdir=/etc/ssh \
52 --mandir=/usr/share/man \
53 --libexecdir=/usr/lib/misc \
54 --datadir=/usr/share/openssh \
55 --disable-suid-ssh \
56 --with-privsep-path=/var/empty \
57 --with-privsep-user=sshd \
58 --host=${CHOST} ${myconf} || die "bad configure"
59
60 if [ "`use static`" ]
61 then
62 # statically link to libcrypto -- good for the boot cd
63 perl -pi -e "s|-lcrypto|/usr/lib/libcrypto.a|g" Makefile
64 fi
65
66 make || die " compile problem"
67 }
68
69 src_install() {
70 make install-files DESTDIR=${D} || die
71 dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config
72 insinto /etc/pam.d ; newins ${FILESDIR}/sshd.pam sshd
73 exeinto /etc/init.d ; newexe ${FILESDIR}/sshd.rc6 sshd
74 }
75
76 pkg_postinst() {
77 # empty dir for the new priv separation auth chroot..
78 install -d -m0755 -o root -g root ${ROOT}/var/empty
79
80 einfo
81 einfo "Remember to merge your config files in /etc/ssh!"
82 einfo
83 }

  ViewVC Help
Powered by ViewVC 1.1.20