1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
10 DESCRIPTION="A checkpassword compatible authentication program that used CRAM-MD5 authentication mode"
11 SRC_URI="https://www.fehcom.de/qmail/auth/${PN}-${MY_VER}_tgz.bin -> ${P}.tar.gz"
12 HOMEPAGE="https://www.fehcom.de/qmail/smtpauth.html"
14 LICENSE="public-domain RSA"
16 KEYWORDS="~alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86"
19 DEPEND="acct-user/cmd5checkpw"
23 if has_version "<net-mail/cmd5checkpw-0.30"; then
25 ewarn "this version is in NO WAY COMPATIBLE with cmd5checkpw-0.2x"
26 ewarn "it actually receives the authentication credentials"
27 ewarn "in a different order then the old implementation"
28 ewarn "see bug #100693 for details"
29 ewarn "this version IS needed by >=qmail-1.03-r16"
35 "${FILESDIR}"/euid_${MY_VER}.diff
36 "${FILESDIR}"/reloc.diff
46 emake CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS} -o cmd5checkpw"
51 insopts -m 400 -o cmd5checkpw
52 doins "${FILESDIR}"/poppasswd
55 exeopts -o cmd5checkpw -m 4755
63 chmod 400 "${EROOT}"/etc/poppasswd || die
64 chown cmd5checkpw "${EROOT}"/etc/poppasswd || die