From 9500e252393588d289331e579814d9dd0ce65663 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Tue, 15 Mar 2005 08:34:16 +0000 Subject: Bug #85288: no lazy bindings for setuid code. Package-Manager: portage-2.0.51.19 --- net-mail/cmd5checkpw/ChangeLog | 8 ++- net-mail/cmd5checkpw/Manifest | 10 ++-- net-mail/cmd5checkpw/cmd5checkpw-0.22-r3.ebuild | 64 ++++++++++++++++++++++ .../cmd5checkpw/files/digest-cmd5checkpw-0.22-r3 | 1 + 4 files changed, 78 insertions(+), 5 deletions(-) create mode 100644 net-mail/cmd5checkpw/cmd5checkpw-0.22-r3.ebuild create mode 100644 net-mail/cmd5checkpw/files/digest-cmd5checkpw-0.22-r3 (limited to 'net-mail/cmd5checkpw') diff --git a/net-mail/cmd5checkpw/ChangeLog b/net-mail/cmd5checkpw/ChangeLog index b8f77a471566..3f848c46fb5c 100644 --- a/net-mail/cmd5checkpw/ChangeLog +++ b/net-mail/cmd5checkpw/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-mail/cmd5checkpw # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cmd5checkpw/ChangeLog,v 1.23 2005/02/21 16:39:03 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-mail/cmd5checkpw/ChangeLog,v 1.24 2005/03/15 08:34:16 robbat2 Exp $ + +*cmd5checkpw-0.22-r3 (15 Mar 2005) + + 15 Mar 2005; Robin H. Johnson + +cmd5checkpw-0.22-r3.ebuild: + Bug #85288: no lazy bindings for setuid code. 21 Feb 2005; Aron Griffis cmd5checkpw-0.22-r2.ebuild: diff --git a/net-mail/cmd5checkpw/Manifest b/net-mail/cmd5checkpw/Manifest index 5ff954079bc8..7a3a1e911764 100644 --- a/net-mail/cmd5checkpw/Manifest +++ b/net-mail/cmd5checkpw/Manifest @@ -1,8 +1,10 @@ -MD5 eecef52161d2dd369c448a6292e7d440 ChangeLog 2772 +MD5 bf38629e78ff602efb52fba1f05bd508 cmd5checkpw-0.22-r3.ebuild 1562 +MD5 855083cb17e18016a59cc5cb3bbe9539 cmd5checkpw-0.22-r2.ebuild 1508 +MD5 6e66126dad5f506b07e6c9c860d3ee77 ChangeLog 2940 MD5 aacd8f2db592426a19a8f21256399c34 cmd5checkpw-0.22-r1.ebuild 1399 MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161 -MD5 855083cb17e18016a59cc5cb3bbe9539 cmd5checkpw-0.22-r2.ebuild 1508 -MD5 ad1486139852e253c71bccd1c53083ba files/digest-cmd5checkpw-0.22-r1 67 MD5 a3bc1c985b3e114b9e1a4b9a8b7810da files/poppasswd 84 -MD5 ad1486139852e253c71bccd1c53083ba files/digest-cmd5checkpw-0.22-r2 67 MD5 970ef1c2abdda72f534516f43e89f20a files/euid.diff 931 +MD5 ad1486139852e253c71bccd1c53083ba files/digest-cmd5checkpw-0.22-r1 67 +MD5 ad1486139852e253c71bccd1c53083ba files/digest-cmd5checkpw-0.22-r2 67 +MD5 ad1486139852e253c71bccd1c53083ba files/digest-cmd5checkpw-0.22-r3 67 diff --git a/net-mail/cmd5checkpw/cmd5checkpw-0.22-r3.ebuild b/net-mail/cmd5checkpw/cmd5checkpw-0.22-r3.ebuild new file mode 100644 index 000000000000..ddd2d68bb092 --- /dev/null +++ b/net-mail/cmd5checkpw/cmd5checkpw-0.22-r3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/cmd5checkpw/cmd5checkpw-0.22-r3.ebuild,v 1.1 2005/03/15 08:34:16 robbat2 Exp $ + +inherit eutils gcc + +DESCRIPTION="A checkpassword compatible authentication program that used CRAM-MD5 authentication mode." +SRC_URI="http://members.elysium.pl/brush/cmd5checkpw/dist/${P}.tar.gz" +HOMEPAGE="http://members.elysium.pl/brush/cmd5checkpw/" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="virtual/libc" + +douser() { + enewuser cmd5checkpw 212 /bin/false /dev/null bin +} + +pkg_preinst() { + douser +} + +pkg_setup() { + douser +} + +src_unpack() { + unpack "${A}" + cd "${S}" + + epatch ${FILESDIR}/euid.diff || die 'Applying euid.diff failed' +} + +src_compile() { + cp Makefile Makefile.orig + sed \ + -e "s:-c -g -Wall -O3:${CFLAGS}:" \ + -e "s:cp cmd5checkpw /bin/:cp cmd5checkpw \${D}/bin/:" \ + -e "s:cp cmd5checkpw.8 /usr/man/man8/:cp cmd5checkpw.8 \${D}/usr/share/man/man8/:" \ + -e "/^LDFLAGS/ a LDFLAGS+='-Wl,-z,now'" \ + < Makefile.orig > Makefile + cd ${S} + echo "$(gcc-getCC) ${CFLAGS}" > conf-cc + echo "$(gcc-getCC) ${LDFLAGS}" > conf-ld + make || die +} + +src_install() { + dodir /etc /bin /usr/share/man/man8 + insinto /etc + doins ${FILESDIR}/poppasswd + make install + fowners cmd5checkpw /etc/poppasswd /bin/cmd5checkpw + fperms 400 /etc/poppasswd + fperms u+s /bin/cmd5checkpw +} + +pkg_postinst() { + chmod 400 ${ROOT}/etc/poppasswd + chown cmd5checkpw ${ROOT}/etc/poppasswd +} diff --git a/net-mail/cmd5checkpw/files/digest-cmd5checkpw-0.22-r3 b/net-mail/cmd5checkpw/files/digest-cmd5checkpw-0.22-r3 new file mode 100644 index 000000000000..53de5a450fbb --- /dev/null +++ b/net-mail/cmd5checkpw/files/digest-cmd5checkpw-0.22-r3 @@ -0,0 +1 @@ +MD5 40092caf3608cbc8bd23220b2b28cb52 cmd5checkpw-0.22.tar.gz 24323 -- cgit v1.2.3-65-gdbad