/[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.6
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.6 2005/05/20 13:02:08 flameeyes Exp $
4 4
5inherit eutils flag-o-matic ccc 5inherit eutils flag-o-matic ccc pam
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/_/}
10 10
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.2  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20