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

Diff of /net-misc/openssh/openssh-4.0_p1.ebuild

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

Revision 1.1 Revision 1.5
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
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-4.0_p1.ebuild,v 1.1 2005/03/15 00:23:22 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/Attic/openssh-4.0_p1.ebuild,v 1.5 2005/05/02 21:54:35 vapier Exp $
4 4
5inherit eutils flag-o-matic ccc 5inherit eutils flag-o-matic ccc
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.
17SRC_URI="mirror://openbsd/OpenSSH/portable/${PARCH}.tar.gz 17SRC_URI="mirror://openbsd/OpenSSH/portable/${PARCH}.tar.gz
18 X509? ( http://roumenpetrov.info/openssh/x509-5.1/${X509_PATCH} )" 18 X509? ( http://roumenpetrov.info/openssh/x509-5.1/${X509_PATCH} )"
19 19
20LICENSE="as-is" 20LICENSE="as-is"
21SLOT="0" 21SLOT="0"
22KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86" 22KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
23IUSE="ipv6 static pam tcpd kerberos skey selinux chroot X509 ldap smartcard nocxx sftplogging" 23IUSE="ipv6 static pam tcpd kerberos skey selinux chroot X509 ldap smartcard nocxx sftplogging"
24 24
25RDEPEND="pam? ( >=sys-libs/pam-0.73 >=sys-apps/shadow-4.0.2-r2 ) 25RDEPEND="pam? ( >=sys-libs/pam-0.73 >=sys-apps/shadow-4.0.2-r2 )
26 kerberos? ( virtual/krb5 ) 26 kerberos? ( virtual/krb5 )
27 selinux? ( sys-libs/libselinux ) 27 selinux? ( sys-libs/libselinux )
77 fi 77 fi
78 78
79 use ipv6 || myconf="${myconf} --with-ipv4-default" 79 use ipv6 || myconf="${myconf} --with-ipv4-default"
80 80
81 econf \ 81 econf \
82 --disable-strip \
82 --sysconfdir=/etc/ssh \ 83 --sysconfdir=/etc/ssh \
83 --libexecdir=/usr/$(get_libdir)/misc \ 84 --libexecdir=/usr/$(get_libdir)/misc \
84 --datadir=/usr/share/openssh \ 85 --datadir=/usr/share/openssh \
85 --disable-suid-ssh \ 86 --disable-suid-ssh \
86 --with-privsep-path=/var/empty \ 87 --with-privsep-path=/var/empty \
95 96
96 emake || die "compile problem" 97 emake || die "compile problem"
97} 98}
98 99
99src_install() { 100src_install() {
100 make install-files DESTDIR="${D}" || die 101 make install-nokeys DESTDIR="${D}" || die
101 fperms 600 /etc/ssh/sshd_config 102 fperms 600 /etc/ssh/sshd_config
102 dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config 103 dobin contrib/ssh-copy-id
103 newpamd "${FILESDIR}"/sshd.pam sshd
104 newinitd "${FILESDIR}"/sshd.rc6 sshd 104 newinitd "${FILESDIR}"/sshd.rc6 sshd
105 keepdir /var/empty 105 keepdir /var/empty
106
107 newpamd "${FILESDIR}"/sshd.pam sshd
106 dosed "/^#Protocol /s:.*:Protocol 2:" /etc/ssh/sshd_config 108 dosed "/^#Protocol /s:.*:Protocol 2:" /etc/ssh/sshd_config
107 use pam \ 109 use pam \
108 && dosed "/^#UsePAM /s:.*:UsePAM yes:" /etc/ssh/sshd_config \ 110 && dosed "/^#UsePAM /s:.*:UsePAM yes:" /etc/ssh/sshd_config \
109 && dosed "/^#PasswordAuthentication /s:.*:PasswordAuthentication no:" /etc/ssh/sshd_config 111 && dosed "/^#PasswordAuthentication /s:.*:PasswordAuthentication no:" /etc/ssh/sshd_config
112
113 doman contrib/ssh-copy-id.1
114 dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config
110} 115}
111 116
112pkg_postinst() { 117pkg_postinst() {
113 enewgroup sshd 22 118 enewgroup sshd 22
114 enewuser sshd 22 /bin/false /var/empty sshd 119 enewuser sshd 22 /bin/false /var/empty sshd

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20