diff options
author | Filip Kobierski <fkobi@pm.me> | 2024-08-02 12:38:10 +0200 |
---|---|---|
committer | Petr Vaněk <arkamar@gentoo.org> | 2024-08-07 21:32:29 +0200 |
commit | ec86de6055d104bfdcbf39f62145efc483aa0c45 (patch) | |
tree | 4821e2b53b02ec5b554c1033b874d8d75a13c83d /net-mail | |
parent | net-mail/altermime: bump EAPI, fix pkgcheck issues (diff) | |
download | gentoo-ec86de6055d104bfdcbf39f62145efc483aa0c45.tar.gz gentoo-ec86de6055d104bfdcbf39f62145efc483aa0c45.tar.bz2 gentoo-ec86de6055d104bfdcbf39f62145efc483aa0c45.zip |
net-mail/mailfront: bump EAPI, drop empty IUSE
Signed-off-by: Filip Kobierski <fkobi@pm.me>
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/mailfront/mailfront-2.22-r1.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/net-mail/mailfront/mailfront-2.22-r1.ebuild b/net-mail/mailfront/mailfront-2.22-r1.ebuild new file mode 100644 index 000000000000..1ca496fbbd32 --- /dev/null +++ b/net-mail/mailfront/mailfront-2.22-r1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Mail server network protocol front-ends" +HOMEPAGE="https://untroubled.org/mailfront/" +SRC_URI="https://untroubled.org/mailfront/archive/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" + +DEPEND=">=dev-libs/bglibs-2.04 + >=net-libs/cvm-0.81" +RDEPEND="${DEPEND} + virtual/qmail + net-libs/cvm" + +src_configure() { + echo "${EPREFIX}/var/qmail" > conf-qmail || die + echo "/var/qmail/bin" > conf-bin || die + echo "/usr/$(get_libdir)/mailfront" > conf-modules || die + echo "/usr/include" > conf-include || die + echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die + echo "$(tc-getCC) ${CFLAGS} -fPIC -shared" > conf-ccso || die + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die +} + +src_install() { + emake install install_prefix="${ED}" + exeinto /var/qmail/supervise/qmail-smtpd + newexe "${FILESDIR}"/run-smtpfront run.mailfront + exeinto /var/qmail/supervise/qmail-pop3d + newexe "${FILESDIR}"/run-pop3front run.mailfront + + dodoc ANNOUNCEMENT ChangeLog NEWS README TODO VERSION + docinto html + dodoc *.html +} + +pkg_config() { + cd "${EROOT}"/var/qmail/supervise/qmail-smtpd/ || die + [[ -e run ]] && ( cp run run.qmail-smtpd.`date +%Y%m%d%H%M%S` || die ) + cp run.mailfront run || die + + cd "${EROOT}"/var/qmail/supervise/qmail-pop3d/ || die + [[ -e run ]] && ( cp run run.qmail-pop3d.`date +%Y%m%d%H%M%S` || die ) + cp run.mailfront run || die +} + +pkg_postinst() { + elog "Run" + elog "emerge --config '=${CATEGORY}/${PF}'" + elog "to update your run files (backups are created) in" + elog " /var/qmail/supervise/qmail-pop3d and" + elog " /var/qmail/supervise/qmail-smtpd" +} |