/[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.2 Revision 1.4
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.2 2005/03/15 06:54:57 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/Attic/openssh-4.0_p1.ebuild,v 1.4 2005/03/24 23:14:14 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.
95 95
96 emake || die "compile problem" 96 emake || die "compile problem"
97} 97}
98 98
99src_install() { 99src_install() {
100 make install-files DESTDIR="${D}" || die 100 make install-nokeys DESTDIR="${D}" || die
101 fperms 600 /etc/ssh/sshd_config 101 fperms 600 /etc/ssh/sshd_config
102 dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config 102 dobin contrib/ssh-copy-id
103 newpamd "${FILESDIR}"/sshd.pam sshd
104 newinitd "${FILESDIR}"/sshd.rc6 sshd 103 newinitd "${FILESDIR}"/sshd.rc6 sshd
105 keepdir /var/empty 104 keepdir /var/empty
105
106 newpamd "${FILESDIR}"/sshd.pam sshd
106 dosed "/^#Protocol /s:.*:Protocol 2:" /etc/ssh/sshd_config 107 dosed "/^#Protocol /s:.*:Protocol 2:" /etc/ssh/sshd_config
107 use pam \ 108 use pam \
108 && dosed "/^#UsePAM /s:.*:UsePAM yes:" /etc/ssh/sshd_config \ 109 && dosed "/^#UsePAM /s:.*:UsePAM yes:" /etc/ssh/sshd_config \
109 && dosed "/^#PasswordAuthentication /s:.*:PasswordAuthentication no:" /etc/ssh/sshd_config 110 && dosed "/^#PasswordAuthentication /s:.*:PasswordAuthentication no:" /etc/ssh/sshd_config
111
112 doman contrib/ssh-copy-id.1
113 dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config
110} 114}
111 115
112pkg_postinst() { 116pkg_postinst() {
113 enewgroup sshd 22 117 enewgroup sshd 22
114 enewuser sshd 22 /bin/false /var/empty sshd 118 enewuser sshd 22 /bin/false /var/empty sshd

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20