commit:     748e1a7ac8b0073fe32f6e1b4d7cab42d43810e5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 18 19:36:08 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 18 19:36:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=748e1a7a

mail-filter/libmilter: add 1.0.2_p2

Signed-off-by: Sam James <sam <AT> gentoo.org>

 mail-filter/libmilter/Manifest                  |  1 +
 mail-filter/libmilter/libmilter-1.0.2_p2.ebuild | 89 +++++++++++++++++++++++++
 2 files changed, 90 insertions(+)

diff --git a/mail-filter/libmilter/Manifest b/mail-filter/libmilter/Manifest
index 88526081354..b38ddeefb19 100644
--- a/mail-filter/libmilter/Manifest
+++ b/mail-filter/libmilter/Manifest
@@ -1,3 +1,4 @@
 DIST sendmail.8.14.5.tar.gz 2092508 BLAKE2B 
3d90fa9778ebb42f2f334b35e46d0f24e8fcfd46fe69d6032f246c90fc998fbeb21e70c70bc454c688a76ea00c90ee9b5f0e5e0fc9b89b9f16fa9c814a825f9c
 SHA512 
178addd247f1c7c8ca90d70b9240db4cad4e55f0710d5df0fe979e5473a182d2035150c352836576a28bb2b9660b0d5ebfcd95269a156ac0d2c3dba3edb60452
 DIST sendmail.8.15.2.tar.gz 2207417 BLAKE2B 
3d9dfb5bc2b535e30ef2fc61333e12a9b1fc45a5d730d2bed1ef956adb574721833f87aeba0475705b76e0c7d6cf00f9a10025bffb0de6c6b4dae606eb2ec399
 SHA512 
04feb37316c13b66b1518596507a7da7c16cb0bf1abf10367f7fd888a428fadb093a9efa55342fa55b936c3f0cbdc63b9e2505cd99201a69a0c05b8ad65f49f9
 DIST sendmail.8.16.1.tar.gz 2236402 BLAKE2B 
80a9c2f1d04719099703e55f0a0c54fd638cf69b72839d358ae6863c95c9e0965d1b7fdd5b1807bec1ffdf87bca0c7c9ba91060962e6de5da5bf14422f6279ea
 SHA512 
d7d4aac3c6d7505782abdb166204901b8b51cac000d610dfe40eda9eef7441a073af9e8e0b14c8719b07b445f55a1e2c28ac63d663d0daa7f1eafc5a101788b2
+DIST sendmail.8.17.1.tar.gz 2284027 BLAKE2B 
4cbbc2bb536a48ea27994721e9dfefff7739ef1c825bbc0397202e600d8dad8f9a2572a777204693cf9630f767865d50566f0827be6b52be41c1e25532cb394c
 SHA512 
ae42343fb06c09f2db5d919d602afc4241914387dfdae0f15e0967dda3be25bf1d3a4637b57266763679646a3cea6aa07e6453266fd9b7358c1a09ec2b627a15

diff --git a/mail-filter/libmilter/libmilter-1.0.2_p2.ebuild 
b/mail-filter/libmilter/libmilter-1.0.2_p2.ebuild
new file mode 100644
index 00000000000..ef84d62af4d
--- /dev/null
+++ b/mail-filter/libmilter/libmilter-1.0.2_p2.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+# Note: please bump this together with mail-mta/sendmail
+
+inherit toolchain-funcs
+
+# This library is part of sendmail, but it does not share the version number 
with it.
+# In order to find the right libmilter version number, check SMFI_VERSION 
definition
+# that can be found in ${S}/include/libmilter/mfapi.h (see also SM_LM_VRS_* 
defines).
+# For example, version 1.0.1 has a SMFI_VERSION of 0x01000001.
+SENDMAIL_VER=8.17.1
+
+DESCRIPTION="The Sendmail Filter API (Milter)"
+HOMEPAGE="http://www.sendmail.org/";
+SRC_URI="ftp://ftp.sendmail.org/pub/sendmail/sendmail.${SENDMAIL_VER}.tar.gz";
+S="${WORKDIR}/sendmail-${SENDMAIL_VER}"
+
+LICENSE="Sendmail"
+# We increment _pN when a new sendmail tarball comes out
+# We change the actual "main version" (1.0.2 at time of writing) when the 
version
+# of libmilter included in the tarball changes.
+SLOT="0/$(ver_cut 1-3)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="ipv6 poll"
+
+RDEPEND="!<mail-mta/sendmail-8.16.1"
+
+# build system patch copied from sendmail ebuild
+PATCHES=(
+       "${FILESDIR}"/sendmail-8.16.1-build-system.patch
+       "${FILESDIR}"/${PN}-sharedlib.patch
+)
+
+src_prepare() {
+       default
+
+       local ENVDEF="-DNETUNIX -DNETINET -DHAS_GETHOSTBYNAME2=1"
+
+       use ipv6 && ENVDEF+=" -DNETINET6"
+       use poll && ENVDEF+=" -DSM_CONF_POLL=1"
+
+       if use elibc_musl; then
+               use ipv6 && ENVDEF+=" -DNEEDSGETIPNODE"
+
+               eapply "${FILESDIR}"/${PN}-musl-stack-size.patch
+               eapply "${FILESDIR}"/${PN}-musl-disable-cdefs.patch
+       fi
+
+       sed -e "s|@@CC@@|$(tc-getCC)|" \
+               -e "s|@@CFLAGS@@|${CFLAGS}|" \
+               -e "s|@@ENVDEF@@|${ENVDEF}|" \
+               -e "s|@@LDFLAGS@@|${LDFLAGS}|" \
+               "${FILESDIR}"/gentoo.config.m4 > devtools/Site/site.config.m4 \
+               || die "failed to generate site.config.m4"
+}
+
+src_compile() {
+       emake -j1 -C libmilter AR="$(tc-getAR)" MILTER_SOVER=${PV}
+}
+
+src_install() {
+       dodir /usr/$(get_libdir)
+
+       local emakeargs=(
+               DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)"
+               MANROOT=/usr/share/man/man
+               SBINOWN=root SBINGRP=0 UBINOWN=root UBINGRP=0
+               LIBOWN=root LIBGRP=0 GBINOWN=root GBINGRP=0
+               MANOWN=root MANGRP=0 INCOWN=root INCGRP=0
+               MSPQOWN=root CFOWN=root CFGRP=0
+               MILTER_SOVER="$(ver_cut 1-3)"
+       )
+       emake -C obj.*/libmilter "${emakeargs[@]}" install
+
+       dodoc libmilter/README
+
+       docinto html
+       dodoc -r libmilter/docs/.
+
+       if [[ ${PV} != $(ver_cut 1-3) ]] ; then
+               # See comment above ${SLOT} definition above.
+               dosym ${PN}.so.$(ver_cut 1-3) /usr/$(get_libdir)/${PN}.so.${PV}
+       fi
+
+       find "${ED}" -name '*.a' -delete || die
+}

Reply via email to