diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2008-04-06 17:11:21 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2008-04-06 17:11:21 +0000 |
commit | 0eb05f413d289613b2fbbf7c3076cebe068ff1f1 (patch) | |
tree | 1ad7864704a82173bb0bc0ead13158279f4efd43 | |
parent | use new qmail.eclass; ebuild cleanup (diff) | |
download | gentoo-2-0eb05f413d289613b2fbbf7c3076cebe068ff1f1.tar.gz gentoo-2-0eb05f413d289613b2fbbf7c3076cebe068ff1f1.tar.bz2 gentoo-2-0eb05f413d289613b2fbbf7c3076cebe068ff1f1.zip |
use new qmail.eclass; ebuild cleanup
(Portage version: 2.1.4.4)
-rw-r--r-- | net-mail/cmd5checkpw/ChangeLog | 10 | ||||
-rw-r--r-- | net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild | 72 | ||||
-rw-r--r-- | net-mail/cmd5checkpw/metadata.xml | 2 |
3 files changed, 81 insertions, 3 deletions
diff --git a/net-mail/cmd5checkpw/ChangeLog b/net-mail/cmd5checkpw/ChangeLog index b0b7a18385d1..a7d3546eaac8 100644 --- a/net-mail/cmd5checkpw/ChangeLog +++ b/net-mail/cmd5checkpw/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-mail/cmd5checkpw -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-mail/cmd5checkpw/ChangeLog,v 1.45 2007/02/22 01:40:28 peper Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/cmd5checkpw/ChangeLog,v 1.46 2008/04/06 17:11:21 hollow Exp $ + +*cmd5checkpw-0.30-r1 (06 Apr 2008) + + 06 Apr 2008; Benedikt Böhm <hollow@gentoo.org> metadata.xml, + +cmd5checkpw-0.30-r1.ebuild: + use new qmail.eclass; ebuild cleanup 22 Feb 2007; Piotr Jaroszyński <peper@gentoo.org> ChangeLog: Transition to Manifest2. diff --git a/net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild b/net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild new file mode 100644 index 000000000000..7178c47091ff --- /dev/null +++ b/net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-mail/cmd5checkpw/cmd5checkpw-0.30-r1.ebuild,v 1.1 2008/04/06 17:11:21 hollow Exp $ + +inherit eutils fixheadtails qmail + +MY_VER="030" + +DESCRIPTION="A checkpassword compatible authentication program that used CRAM-MD5 authentication mode." +SRC_URI="http://www.fehcom.de/qmail/auth/${PN}-${MY_VER}_tgz.bin" +HOMEPAGE="http://www.fehcom.de/qmail/smtpauth.html" + +LICENSE="as-is" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +DEPEND="" +RDEPEND="" + +pkg_setup() { + enewuser cmd5checkpw 212 -1 /dev/null bin + ewarn + ewarn "this version is in NO WAY COMPATIBLE with cmd5checkpw-0.2x" + ewarn "it actually receives the authentication credentials" + ewarn "in a different order then the old implementation" + ewarn "see bug #100693 for details" + ewarn "this version IS needed by >=qmail-1.03-r16" + ewarn +} + +src_unpack() { + mv "${DISTDIR}"/${PN}-${MY_VER}{_tgz.bin,.tar.gz} + unpack ${PN}-${MY_VER}.tar.gz + cd "${S}" + + epatch "${FILESDIR}"/euid_${MY_VER}.diff + epatch "${FILESDIR}"/reloc.diff + + 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/:" \ + -i Makefile + + ht_fix_file Makefile + + qmail_set_cc +} + +src_compile() { + emake || die +} + +src_install() { + insinto /etc + doins "${FILESDIR}"/poppasswd + + exeinto /bin + doexe cmd5checkpw + + doman cmd5checkpw.8 + + 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/metadata.xml b/net-mail/cmd5checkpw/metadata.xml index 210ce3ffc25e..0cb478b8c6ca 100644 --- a/net-mail/cmd5checkpw/metadata.xml +++ b/net-mail/cmd5checkpw/metadata.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<herd>qmail</herd> + <herd>qmail</herd> </pkgmetadata> |