Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/openssh: ChangeLog openssh-4.9_p1-r1.ebuild openssh-4.9_p1.ebuild
Date: Wed, 02 Apr 2008 15:42:33
Message-Id: E1Jh56b-00080T-Vl@stork.gentoo.org
1 vapier 08/04/02 15:42:29
2
3 Modified: ChangeLog
4 Added: openssh-4.9_p1-r1.ebuild
5 Removed: openssh-4.9_p1.ebuild
6 Log:
7 Add updated X509/hpn patches.
8 (Portage version: 2.2_pre5)
9
10 Revision Changes Path
11 1.301 net-misc/openssh/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openssh/ChangeLog?rev=1.301&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openssh/ChangeLog?rev=1.301&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openssh/ChangeLog?r1=1.300&r2=1.301
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v
20 retrieving revision 1.300
21 retrieving revision 1.301
22 diff -u -r1.300 -r1.301
23 --- ChangeLog 2 Apr 2008 11:44:20 -0000 1.300
24 +++ ChangeLog 2 Apr 2008 15:42:29 -0000 1.301
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/openssh
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v 1.300 2008/04/02 11:44:20 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v 1.301 2008/04/02 15:42:29 vapier Exp $
30 +
31 +*openssh-4.9_p1-r1 (02 Apr 2008)
32 +
33 + 02 Apr 2008; Mike Frysinger <vapier@g.o>
34 + +files/openssh-4.9_p1-x509-hpn-glue.patch, -openssh-4.9_p1.ebuild,
35 + +openssh-4.9_p1-r1.ebuild:
36 + Add updated X509/hpn patches.
37
38 02 Apr 2008; Raúl Porcel <armin76@g.o> openssh-4.7_p1-r6.ebuild:
39 alpha/ia64/sparc stable wrt security #215702
40
41
42
43 1.1 net-misc/openssh/openssh-4.9_p1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openssh/openssh-4.9_p1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/openssh/openssh-4.9_p1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: openssh-4.9_p1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-4.9_p1-r1.ebuild,v 1.1 2008/04/02 15:42:29 vapier Exp $
53
54 inherit eutils flag-o-matic ccc multilib autotools pam
55
56 # Make it more portable between straight releases
57 # and _p? releases.
58 PARCH=${P/_/}
59
60 X509_PATCH="${PARCH}+x509-6.1.1.diff.gz"
61 #LDAP_PATCH="${PARCH/openssh-4.9/openssh-lpk-4.6}-0.3.9.patch"
62 HPN_PATCH="${PARCH}-hpn13v2.diff.gz"
63
64 DESCRIPTION="Port of OpenBSD's free SSH release"
65 HOMEPAGE="http://www.openssh.org/"
66 SRC_URI="mirror://openbsd/OpenSSH/portable/${PARCH}.tar.gz
67 http://www.sxw.org.uk/computing/patches/openssh-4.7p1-gsskex-20070927.patch
68 ${LDAP_PATCH:+ldap? ( http://dev.inversepath.com/openssh-lpk/${LDAP_PATCH} )}
69 ${X509_PATCH:+X509? ( http://roumenpetrov.info/openssh/x509-6.1.1/${X509_PATCH} )}
70 ${HPN_PATCH:+hpn? ( http://www.psc.edu/networking/projects/hpn-ssh/${HPN_PATCH} )}"
71
72 LICENSE="as-is"
73 SLOT="0"
74 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
75 IUSE="static pam tcpd kerberos skey selinux chroot X509 ldap smartcard hpn libedit X"
76
77 RDEPEND="pam? ( virtual/pam )
78 kerberos? ( virtual/krb5 )
79 selinux? ( >=sys-libs/libselinux-1.28 )
80 skey? ( >=app-admin/skey-1.1.5-r1 )
81 ldap? ( net-nds/openldap )
82 libedit? ( dev-libs/libedit )
83 >=dev-libs/openssl-0.9.6d
84 >=sys-libs/zlib-1.2.3
85 smartcard? ( dev-libs/opensc )
86 tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
87 X? ( x11-apps/xauth )
88 userland_GNU? ( sys-apps/shadow )"
89 DEPEND="${RDEPEND}
90 dev-util/pkgconfig
91 virtual/os-headers
92 sys-devel/autoconf"
93 PROVIDE="virtual/ssh"
94
95 S=${WORKDIR}/${PARCH}
96
97 pkg_setup() {
98 # this sucks, but i'd rather have people unable to `emerge -u openssh`
99 # than not be able to log in to their server any more
100 maybe_fail() { [[ -z ${!2} ]] && use ${1} && echo ${1} ; }
101 local fail="
102 $(maybe_fail X509 X509_PATCH)
103 $(maybe_fail ldap LDAP_PATCH)
104 "
105 fail=$(echo ${fail})
106 if [[ -n ${fail} ]] ; then
107 eerror "Sorry, but this version does not yet support features"
108 eerror "that you requested: ${fail}"
109 eerror "Please mask ${PF} for now and check back later:"
110 eerror " # echo '=${CATEGORY}/${PF}' >> /etc/portage/package.mask"
111 die "booooo"
112 fi
113 }
114
115 src_unpack() {
116 unpack ${PARCH}.tar.gz
117 cd "${S}"
118
119 sed -i \
120 -e '/_PATH_XAUTH/s:/usr/X11R6/bin/xauth:/usr/bin/xauth:' \
121 pathnames.h || die
122
123 use X509 && epatch "${DISTDIR}"/${X509_PATCH} "${FILESDIR}"/${PN}-4.9_p1-x509-hpn-glue.patch
124 use chroot && epatch "${FILESDIR}"/openssh-4.3_p1-chroot.patch
125 use smartcard && epatch "${FILESDIR}"/openssh-3.9_p1-opensc.patch
126 if ! use X509 ; then
127 if [[ -n ${LDAP_PATCH} ]] && use ldap ; then
128 epatch "${DISTDIR}"/${LDAP_PATCH} "${FILESDIR}"/${PN}-4.4_p1-ldap-hpn-glue.patch
129 epatch "${FILESDIR}"/${P}-lpk-64bit.patch #210110
130 fi
131 #epatch "${DISTDIR}"/openssh-4.7p1-gsskex-20070927.patch #115553
132 else
133 use ldap && ewarn "Sorry, X509 and ldap don't get along, disabling ldap"
134 fi
135 epatch "${FILESDIR}"/${PN}-4.7_p1-GSSAPI-dns.patch #165444 integrated into gsskex
136 [[ -n ${HPN_PATCH} ]] && use hpn && epatch "${DISTDIR}"/${HPN_PATCH}
137 epatch "${FILESDIR}"/${PN}-4.7p1-selinux.diff #191665
138
139 sed -i "s:-lcrypto:$(pkg-config --libs openssl):" configure{,.ac} || die
140
141 eautoreconf
142 }
143
144 src_compile() {
145 addwrite /dev/ptmx
146 addpredict /etc/skey/skeykeys #skey configure code triggers this
147
148 local myconf=""
149 if use static ; then
150 append-ldflags -static
151 use pam && ewarn "Disabling pam support becuse of static flag"
152 myconf="${myconf} --without-pam"
153 else
154 myconf="${myconf} $(use_with pam)"
155 fi
156
157 econf \
158 --with-ldflags="${LDFLAGS}" \
159 --disable-strip \
160 --sysconfdir=/etc/ssh \
161 --libexecdir=/usr/$(get_libdir)/misc \
162 --datadir=/usr/share/openssh \
163 --disable-suid-ssh \
164 --with-privsep-path=/var/empty \
165 --with-privsep-user=sshd \
166 --with-md5-passwords \
167 --with-ssl-engine \
168 $(use_with ldap) \
169 $(use_with libedit) \
170 $(use_with kerberos kerberos5 /usr) \
171 $(use_with tcpd tcp-wrappers) \
172 $(use_with selinux) \
173 $(use_with skey) \
174 $(use_with smartcard opensc) \
175 ${myconf} \
176 || die "bad configure"
177 emake || die "compile problem"
178 }
179
180 src_install() {
181 emake install-nokeys DESTDIR="${D}" || die
182 fperms 600 /etc/ssh/sshd_config
183 dobin contrib/ssh-copy-id
184 newinitd "${FILESDIR}"/sshd.rc6 sshd
185 newconfd "${FILESDIR}"/sshd.confd sshd
186 keepdir /var/empty
187
188 newpamd "${FILESDIR}"/sshd.pam_include.1 sshd
189 use pam \
190 && dosed "/^#UsePAM /s:.*:UsePAM yes:" /etc/ssh/sshd_config \
191 && dosed "/^#PasswordAuthentication /s:.*:PasswordAuthentication no:" /etc/ssh/sshd_config
192
193 doman contrib/ssh-copy-id.1
194 dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config
195
196 diropts -m 0700
197 dodir /etc/skel/.ssh
198 }
199
200 pkg_postinst() {
201 enewgroup sshd 22
202 enewuser sshd 22 -1 /var/empty sshd
203
204 # help fix broken perms caused by older ebuilds.
205 # can probably cut this after the next stage release.
206 chmod u+x "${ROOT}"/etc/skel/.ssh >& /dev/null
207
208 ewarn "Remember to merge your config files in /etc/ssh/ and then"
209 ewarn "restart sshd: '/etc/init.d/sshd restart'."
210 if use pam ; then
211 echo
212 ewarn "Please be aware users need a valid shell in /etc/passwd"
213 ewarn "in order to be allowed to login."
214 fi
215 }
216
217
218
219 --
220 gentoo-commits@l.g.o mailing list