diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-11-10 13:21:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-11-10 13:21:36 +0000 |
commit | 77398e424e45d9e98c1cef3c43bdadb9d56e81ef (patch) | |
tree | 5aeffd3fc7b92fc615bd2c222fa8831aeda1925b /net-mail/cmd5checkpw/cmd5checkpw-0.30-r2.ebuild | |
parent | bd4aeefe33e63f613512604e47bfca7b2187697d (diff) |
gentoo resync : 10.11.2019
Diffstat (limited to 'net-mail/cmd5checkpw/cmd5checkpw-0.30-r2.ebuild')
-rw-r--r-- | net-mail/cmd5checkpw/cmd5checkpw-0.30-r2.ebuild | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/net-mail/cmd5checkpw/cmd5checkpw-0.30-r2.ebuild b/net-mail/cmd5checkpw/cmd5checkpw-0.30-r2.ebuild new file mode 100644 index 000000000000..3a0b96995a45 --- /dev/null +++ b/net-mail/cmd5checkpw/cmd5checkpw-0.30-r2.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit fixheadtails + +MY_VER=$(ver_rs 1- "") + +DESCRIPTION="A checkpassword compatible authentication program that used CRAM-MD5 authentication mode" +SRC_URI="https://www.fehcom.de/qmail/auth/${PN}-${MY_VER}_tgz.bin -> ${P}.tar.gz" +HOMEPAGE="https://www.fehcom.de/qmail/smtpauth.html" + +LICENSE="public-domain RSA" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="" + +DEPEND="acct-user/cmd5checkpw" +RDEPEND="${DEPEND}" + +pkg_setup() { + if has_version "<net-mail/cmd5checkpw-0.30"; then + 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 + fi +} + +PATCHES=( + "${FILESDIR}"/euid_${MY_VER}.diff + "${FILESDIR}"/reloc.diff +) + +src_prepare() { + default + + ht_fix_file Makefile +} + +src_compile() { + emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -o cmd5checkpw" +} + +src_install() { + insinto /etc + insopts -m 400 -o cmd5checkpw + doins "${FILESDIR}"/poppasswd + + exeinto /usr/bin + exeopts -o cmd5checkpw -m 4755 + doexe cmd5checkpw + + doman cmd5checkpw.8 + einstalldocs +} + +pkg_postinst() { + chmod 400 "${EROOT}"/etc/poppasswd || die + chown cmd5checkpw "${EROOT}"/etc/poppasswd || die +} |