diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-04-01 15:51:43 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-04-01 15:51:43 +0000 |
commit | 3715e7b544156f9c9f4c440c6d0f555b6fcd3e7c (patch) | |
tree | 5612d90635da6f9192af3fac68ff8a20b8f84c4f /net-misc/openssh | |
parent | xnview got punted (diff) | |
download | historical-3715e7b544156f9c9f4c440c6d0f555b6fcd3e7c.tar.gz historical-3715e7b544156f9c9f4c440c6d0f555b6fcd3e7c.tar.bz2 historical-3715e7b544156f9c9f4c440c6d0f555b6fcd3e7c.zip |
Version bump.
Package-Manager: portage-2.2_pre5
Diffstat (limited to 'net-misc/openssh')
-rw-r--r-- | net-misc/openssh/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/openssh/Manifest | 10 | ||||
-rw-r--r-- | net-misc/openssh/openssh-4.9_p1.ebuild | 166 |
3 files changed, 178 insertions, 5 deletions
diff --git a/net-misc/openssh/ChangeLog b/net-misc/openssh/ChangeLog index 8b5761262fae..1d08e8ab84d8 100644 --- a/net-misc/openssh/ChangeLog +++ b/net-misc/openssh/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/openssh # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v 1.295 2008/04/01 15:37:26 pebenito Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/ChangeLog,v 1.296 2008/04/01 15:51:43 vapier Exp $ + +*openssh-4.9_p1 (01 Apr 2008) + + 01 Apr 2008; Mike Frysinger <vapier@gentoo.org> +openssh-4.9_p1.ebuild: + Version bump. 01 Apr 2008; Chris PeBenito <pebenito@gentoo.org> +files/openssh-4.7p1-selinux.diff, openssh-4.7_p1-r5.ebuild, diff --git a/net-misc/openssh/Manifest b/net-misc/openssh/Manifest index 56d94631eaff..a3a8baad42a9 100644 --- a/net-misc/openssh/Manifest +++ b/net-misc/openssh/Manifest @@ -42,6 +42,7 @@ DIST openssh-4.7p1-hpn12v18.diff.gz 16094 RMD160 fec2096269a16e05667f931a073fd13 DIST openssh-4.7p1-hpn12v19.diff.gz 15122 RMD160 bf176a84578fac33cc249b49b1014625bb8e78ca SHA1 be45c4363a1d583cc8012138a0dd0c98246653da SHA256 60ba4bfd986f5ee21394387bc8ffd87bd1f2e16c5e8853b7896327faf1595bf3 DIST openssh-4.7p1-hpn13v1.diff.gz 23384 RMD160 8975e2af1043cf4f35e73d353faba292f8ff12a6 SHA1 5a1b7c29450084deef116cd718e67142c238d34e SHA256 5c2dfcfe3c8d3713af14dd401f9a34d239bcbfcf2c8261f91c0543f817fe8dbe DIST openssh-4.7p1.tar.gz 991119 RMD160 b828e79d3d1a931cb77651ec7d7276cf3ba22d90 SHA1 58357db9e64ba6382bef3d73d1d386fcdc0508f4 SHA256 d47133f0c6737d2889bf8da7bdf389fc2268d1c7fa3cd11a52451501eab548bc +DIST openssh-4.9p1.tar.gz 1011434 RMD160 0beb3c88da796bccd32b5962f716e91f969b1e59 SHA1 91575878883065bd777f82b47e0d481ac69ee7fe SHA256 4972125e4fd6d22c1ba5c7e92d2f31f9e3e1032fcf0a4b62ff261aec5fad8ced DIST openssh-lpk-4.4p1-0.3.7.patch 61187 RMD160 90b0bbe07a3617f6eecb9f77c1a38c5f4dd4dcaf SHA1 b1854a4391c5d11f1a5ab09059643bbaf2278009 SHA256 c74aa642b4b2eeceb0c3f554752d172f8d5a7cd30f2aae517e93ef3bf1bd24e7 DIST openssh-lpk-4.5p1-0.3.8-no-configure.patch 58327 RMD160 464eb3e29f77d2d1e9785ea7cbae5c6d6bb0aff5 SHA1 5020b325b845de131236a489f2bbf19da64aff6e SHA256 ffbd706fb543709d1be0d37af50de561ed9a4271508f0df3b951d6a1db5eb1eb DIST openssh-lpk-4.6p1-0.3.9.patch 61605 RMD160 1bf1830192c3eba43c66c3c6469740724cb1ecf2 SHA1 2d0d41f6913d6e899e58a4b569afa30aadf82092 SHA256 e12335e8bf020508ea3866db07b306f4c965e3f9de262c06f62fad494e93107e @@ -54,12 +55,13 @@ EBUILD openssh-4.7_p1-r20.ebuild 5362 RMD160 86d0510706c31ed7ba246fe3773f5b22627 EBUILD openssh-4.7_p1-r3.ebuild 4915 RMD160 476b83968de74e338684b195fd802a51e5ed41c4 SHA1 ab3ad38c5982893ecca9f8fbd2e2406b01c9406b SHA256 d3bf81a534bd09c6f64050f86cdc16d2322536c8532399b750dbe28ab43b9db3 EBUILD openssh-4.7_p1-r4.ebuild 4924 RMD160 7b8cf4cd131feecfd333871243233a714e68d91b SHA1 529fa15a45bebb268930ef901173579a3a801d2b SHA256 b566cc678a34530f17f0ef385c47e8867286f6647874e78c03fce995a571e551 EBUILD openssh-4.7_p1-r5.ebuild 5307 RMD160 241e4c58f4c8e9926b7a1851620867821b0f6f31 SHA1 939a921210630587207a637f68f0e8990c6c7765 SHA256 27e77f7db1f7093a32853bcf667c1c88686f579c0e14e744ffcfa502dd5b22a1 -MISC ChangeLog 46427 RMD160 8a5325f3daf653e3d520a87e9b8b37bb680afb52 SHA1 3a0a74bc30287240145d1c9b83d46a83a818f2fa SHA256 46e785bec29c2baec5c14b4513c733957a2af49d8e31a28ded17365a48f4b8c7 +EBUILD openssh-4.9_p1.ebuild 5247 RMD160 0a6c7951dc3f2202381d2b17d9e19938392836a1 SHA1 5eda04e95b317e34356d7dcb23a209fb756303f3 SHA256 d1ab6c28caaf59f3b1a3eb7049ec0d163f01c4f7e7a35459f228f97b57e3d618 +MISC ChangeLog 46547 RMD160 e54b5ff7a0021da07a51127c62f56ad67aaa541a SHA1 6415004f31183bcc3efe5f888cd2a4a9640b4495 SHA256 630d17f30e5db72dc3076dee23cae0723f279f54b1da7922282d6ff3be1deade MISC metadata.xml 1332 RMD160 9f96034724f474db823db616b97f7d00e9e32113 SHA1 e30379335b893109d9e299bd3aa066eb088c59cd SHA256 9fe068bf6625a11848277690f110289f37915a1a2237c3cfb69014fea5226c88 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) -iD8DBQFH8lbC1wYvhvBeaEYRAlS0AKCRHK6QACsBU32UPbul0S5QNLMMowCgrnyn -RWJmhCcA3GlxyTRtVIRMTTg= -=a010 +iD8DBQFH8lr/j9hvisErhMIRAv8pAJ996DJHHQexcbZbk2SwpzoS3PgJoQCaA4Ib +CXF7Gz/SszOZxn3OLONPuz8= +=QNkQ -----END PGP SIGNATURE----- diff --git a/net-misc/openssh/openssh-4.9_p1.ebuild b/net-misc/openssh/openssh-4.9_p1.ebuild new file mode 100644 index 000000000000..b1488f5e0b50 --- /dev/null +++ b/net-misc/openssh/openssh-4.9_p1.ebuild @@ -0,0 +1,166 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openssh/openssh-4.9_p1.ebuild,v 1.1 2008/04/01 15:51:43 vapier Exp $ + +inherit eutils flag-o-matic ccc multilib autotools pam + +# Make it more portable between straight releases +# and _p? releases. +PARCH=${P/_/} + +#X509_PATCH="${PARCH}+x509-6.1.diff.gz" +#LDAP_PATCH="${PARCH/openssh-4.9/openssh-lpk-4.6}-0.3.9.patch" +#HPN_PATCH="${PARCH}-hpn13v1.diff.gz" + +DESCRIPTION="Port of OpenBSD's free SSH release" +HOMEPAGE="http://www.openssh.org/" +SRC_URI="mirror://openbsd/OpenSSH/portable/${PARCH}.tar.gz + http://www.sxw.org.uk/computing/patches/openssh-4.7p1-gsskex-20070927.patch + ${LDAP_PATCH:+ldap? ( http://dev.inversepath.com/openssh-lpk/${LDAP_PATCH} )} + ${X509_PATCH:+X509? ( http://roumenpetrov.info/openssh/x509-6.1/${X509_PATCH} )} + ${HPN_PATCH:+hpn? ( http://www.psc.edu/networking/projects/hpn-ssh/${HPN_PATCH} )}" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="static pam tcpd kerberos skey selinux chroot X509 ldap smartcard hpn libedit X" + +RDEPEND="pam? ( virtual/pam ) + kerberos? ( virtual/krb5 ) + selinux? ( >=sys-libs/libselinux-1.28 ) + skey? ( >=app-admin/skey-1.1.5-r1 ) + ldap? ( net-nds/openldap ) + libedit? ( dev-libs/libedit ) + >=dev-libs/openssl-0.9.6d + >=sys-libs/zlib-1.2.3 + smartcard? ( dev-libs/opensc ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 ) + X? ( x11-apps/xauth ) + userland_GNU? ( sys-apps/shadow )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + virtual/os-headers + sys-devel/autoconf" +PROVIDE="virtual/ssh" + +S=${WORKDIR}/${PARCH} + +pkg_setup() { + # this sucks, but i'd rather have people unable to `emerge -u openssh` + # than not be able to log in to their server any more + maybe_fail() { [[ -z ${!2} ]] && use ${1} && echo ${1} ; } + local fail=" + $(maybe_fail X509 X509_PATCH) + $(maybe_fail ldap LDAP_PATCH) + " + fail=$(echo ${fail}) + if [[ -n ${fail} ]] ; then + eerror "Sorry, but this version does not yet support features" + eerror "that you requested: ${fail}" + eerror "Please mask ${PF} for now and check back later:" + eerror " # echo '=${CATEGORY}/${PF}' >> /etc/portage/package.mask" + die "booooo" + fi +} + +src_unpack() { + unpack ${PARCH}.tar.gz + cd "${S}" + + sed -i \ + -e '/_PATH_XAUTH/s:/usr/X11R6/bin/xauth:/usr/bin/xauth:' \ + pathnames.h || die + + use X509 && epatch "${DISTDIR}"/${X509_PATCH} "${FILESDIR}"/${PN}-4.7_p1-x509-hpn-glue.patch + use chroot && epatch "${FILESDIR}"/openssh-4.3_p1-chroot.patch + use smartcard && epatch "${FILESDIR}"/openssh-3.9_p1-opensc.patch + if ! use X509 ; then + if [[ -n ${LDAP_PATCH} ]] && use ldap ; then + epatch "${DISTDIR}"/${LDAP_PATCH} "${FILESDIR}"/${PN}-4.4_p1-ldap-hpn-glue.patch + epatch "${FILESDIR}"/${P}-lpk-64bit.patch #210110 + fi + #epatch "${DISTDIR}"/openssh-4.7p1-gsskex-20070927.patch #115553 + else + use ldap && ewarn "Sorry, X509 and ldap don't get along, disabling ldap" + fi + epatch "${FILESDIR}"/${PN}-4.7_p1-GSSAPI-dns.patch #165444 integrated into gsskex + [[ -n ${HPN_PATCH} ]] && use hpn && epatch "${DISTDIR}"/${HPN_PATCH} + epatch "${FILESDIR}"/${PN}-4.7p1-selinux.diff #191665 + + sed -i "s:-lcrypto:$(pkg-config --libs openssl):" configure{,.ac} || die + + eautoreconf +} + +src_compile() { + addwrite /dev/ptmx + addpredict /etc/skey/skeykeys #skey configure code triggers this + + local myconf="" + if use static ; then + append-ldflags -static + use pam && ewarn "Disabling pam support becuse of static flag" + myconf="${myconf} --without-pam" + else + myconf="${myconf} $(use_with pam)" + fi + + econf \ + --with-ldflags="${LDFLAGS}" \ + --disable-strip \ + --sysconfdir=/etc/ssh \ + --libexecdir=/usr/$(get_libdir)/misc \ + --datadir=/usr/share/openssh \ + --disable-suid-ssh \ + --with-privsep-path=/var/empty \ + --with-privsep-user=sshd \ + --with-md5-passwords \ + --with-ssl-engine \ + $(use_with ldap) \ + $(use_with libedit) \ + $(use_with kerberos kerberos5 /usr) \ + $(use_with tcpd tcp-wrappers) \ + $(use_with selinux) \ + $(use_with skey) \ + $(use_with smartcard opensc) \ + ${myconf} \ + || die "bad configure" + emake || die "compile problem" +} + +src_install() { + emake install-nokeys DESTDIR="${D}" || die + fperms 600 /etc/ssh/sshd_config + dobin contrib/ssh-copy-id + newinitd "${FILESDIR}"/sshd.rc6 sshd + newconfd "${FILESDIR}"/sshd.confd sshd + keepdir /var/empty + + newpamd "${FILESDIR}"/sshd.pam_include.1 sshd + use pam \ + && dosed "/^#UsePAM /s:.*:UsePAM yes:" /etc/ssh/sshd_config \ + && dosed "/^#PasswordAuthentication /s:.*:PasswordAuthentication no:" /etc/ssh/sshd_config + + doman contrib/ssh-copy-id.1 + dodoc ChangeLog CREDITS OVERVIEW README* TODO sshd_config + + diropts -m 0700 + dodir /etc/skel/.ssh +} + +pkg_postinst() { + enewgroup sshd 22 + enewuser sshd 22 -1 /var/empty sshd + + # help fix broken perms caused by older ebuilds. + # can probably cut this after the next stage release. + chmod u+x "${ROOT}"/etc/skel/.ssh >& /dev/null + + ewarn "Remember to merge your config files in /etc/ssh/ and then" + ewarn "restart sshd: '/etc/init.d/sshd restart'." + if use pam ; then + echo + ewarn "Please be aware users need a valid shell in /etc/passwd" + ewarn "in order to be allowed to login." + fi +} |