summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2014-06-13 05:21:37 +0000
committerEray Aslan <eras@gentoo.org>2014-06-13 05:21:37 +0000
commitb01a3a1790204a1b0cdaf0c07c864f976c1c7432 (patch)
tree168f87718616ea291348e27dad11870889c57574 /mail-mta
parentFix header (diff)
downloadhistorical-b01a3a1790204a1b0cdaf0c07c864f976c1c7432.tar.gz
historical-b01a3a1790204a1b0cdaf0c07c864f976c1c7432.tar.bz2
historical-b01a3a1790204a1b0cdaf0c07c864f976c1c7432.zip
Remove vulnerable versions
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0x77F1F175586A3B1F
Diffstat (limited to 'mail-mta')
-rw-r--r--mail-mta/sendmail/ChangeLog6
-rw-r--r--mail-mta/sendmail/Manifest34
-rw-r--r--mail-mta/sendmail/sendmail-8.14.7-r1.ebuild203
-rw-r--r--mail-mta/sendmail/sendmail-8.14.8.ebuild203
4 files changed, 20 insertions, 426 deletions
diff --git a/mail-mta/sendmail/ChangeLog b/mail-mta/sendmail/ChangeLog
index 25d42ed58550..38b40a1ba69d 100644
--- a/mail-mta/sendmail/ChangeLog
+++ b/mail-mta/sendmail/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-mta/sendmail
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.135 2014/06/08 10:55:21 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/ChangeLog,v 1.136 2014/06/13 05:21:25 eras Exp $
+
+ 13 Jun 2014; Eray Aslan <eras@gentoo.org> -sendmail-8.14.7-r1.ebuild,
+ -sendmail-8.14.8.ebuild:
+ Remove vulnerable versions
08 Jun 2014; Agostino Sarubbo <ago@gentoo.org> sendmail-8.14.9.ebuild:
Stable for x86, wrt bug #511760
diff --git a/mail-mta/sendmail/Manifest b/mail-mta/sendmail/Manifest
index e68266c11233..10d7c0fe6805 100644
--- a/mail-mta/sendmail/Manifest
+++ b/mail-mta/sendmail/Manifest
@@ -12,28 +12,24 @@ AUX sendmail.mc-r1 337 SHA256 030998957924318f582e84a44b45045616e6af4d3c37725945
AUX sendmail.service 353 SHA256 8238af44ac0baa8c39d38a047933c3dc66a015b7f93254b2e1033d0d211aa933 SHA512 3bf4d502c965c56c7d421b1a1b68ab49d42f61d7227bf91d56c527ed1ae1a604aead35a6b774f6e534e9b014f3f6d1e53c00c349df1f2b90a81f70b5d5948012 WHIRLPOOL e28c138c60cf68deda558ec433314ff1a698c761c88a35e0917db371437f35016c3414c73185bd58467bdee1b3d1f6e7da7307e3c350761e331d6e410c6a5fe8
AUX site.config.m4 564 SHA256 3a7d586f8dfc24f7ed53621c04374aeca91153ded80cf17411ce417a45aade44 SHA512 82d9bbb233e6ffbcef411f8a8184b47aea27f3dc0b41ace053e0107e05a5fe6929d9dd76d3d1baf0ce43be78dc46f40888ad0c93e4f126f6ce0c0372007a262d WHIRLPOOL 3eb5169eda91a67e62fd6ece0bb69bb9dbe3f7e210a40242a172a7b3e80952713170882f89ddbb1c49b261cdefce05992c61417560e6df9e7f0860a97cb5c0bb
AUX sm-client.service 418 SHA256 c70560eb85b32895dcb36fd398b3066a39597e2def33e1eead4f55f3059c82d6 SHA512 26e5a64790fd7106e45de0f4dfafb3b648094953bd1831a223ca7c60b7cb75b673fb554b426a6aa0e7dc200a134fd042b4ecc6795641cfddd82bd04e4c7ea324 WHIRLPOOL e6b176381beb18fc240154696d8056b1483a2ff97bb7d012bece388087dcb16adf2db3b626a717b001cea8ffe8cb81e527e2174ecd463ed452fd68e2ad96e12f
-DIST sendmail.8.14.7.tar.gz 2112670 SHA256 fa4ff9e67d1e5a42f353eedb207e08b38c0ac31030f7165866de2c520f508710 SHA512 872fef1be984ae8aecdf4299459de50fea86a3b3758e0aac01ea4307fa936a03e66d3ef8d1352cd21afe588b53b04a1cea6e099ba64a5edab5a31e25fb8e0bd3 WHIRLPOOL 82d7b85a130900bd18e43df182850c1fd589caa21e90c055592ebd89e9da6a6dfa35b2baed87b56ca7772b24bb8567266cfad7352167068aad405e3fcfe9202e
-DIST sendmail.8.14.8.tar.gz 2114959 SHA256 02eb69125fc19890fa922496a5230ebb32faedc8da670d8500a8ff37e4fcb0fe SHA512 16cda9ff2af325e661d2be0008bed27e170cfe75aeab2b0a56e5579046309509bed4415494dbfb831cc723ab3ffab03dcef2748c16bb0b8f7fe9b4891467b425 WHIRLPOOL 5916e9667ee0df144d8b8c84e2c0a0a38a197b90e53c4ca02fe13d6e44e9bbf8987fcb036c42a1d43f7ab75a7cd8b68f746d5b90af727ca3788a047bd40eac0a
DIST sendmail.8.14.9.tar.gz 2114293 SHA256 f5a497151abd8f341cca0736c3f9bd703d574d93146b2989689dff6d7a445d75 SHA512 a541fe687e9967fb87f2f6c6263ecc698aac42c6a52e81e7ee556f0c3d719b9c996dfccf10cc2e0e5c6d03dd8d3ce79b856b78ca049dd47665e38c77763fa424 WHIRLPOOL c1b290d66d9397bbe8041cd17cfc1fbc205c9d5439d89ee59c339e3febe605d964e7a50482101edec8f0b9cd6df38138e489869a5404dbfc2b7ba57dbeef1c55
-EBUILD sendmail-8.14.7-r1.ebuild 7030 SHA256 cf9b7b855e017894df81158996c8208d31a7c59527cf4f8124bac9aed9f128d1 SHA512 471f72aadc886bb8d815d07f005dd5da2b8ce31d0d7fcb82c0104028c5286106000b4fca7515e23a2254301e5e2fc41a9e91010bfd6fae5cf0046a46cd0159a8 WHIRLPOOL ddb73da0d08f9af50b46126416598f29f05647eb13246f837f65d524fd8ebd58e4fd8f9d46a092c4375af9cd7bbe330ca60ca65cf7d39a4c5da3ace2dfd57ba7
-EBUILD sendmail-8.14.8.ebuild 7128 SHA256 58f92cb35a21d87e12665d03e4ddb1305e93fa043add19e1244fb29587ac01fa SHA512 1f4a5d3bed5b4028750a2a2f7d2074e1a51a04f7870e469cdcc5ffd8cca3d3f715ca9d07436eab0be57c7c2fdc6273fe64c81887a5e71ba962ede360446e298b WHIRLPOOL fbac9462df07630ea4d398b2ca09a24945795309332a4659af0dbc94829814245e8aa7986d37dbfe9369e1f09ec8ce7587ff383d3d3ecd62315d8568936c5926
EBUILD sendmail-8.14.9.ebuild 7114 SHA256 618f612b1153595640ed907ffa20e240ebe6e6799bcf10784b802ae5b0b3478a SHA512 db2cc725b0a7ca04436ee6cbe74053c2f430850039e29312f1f7b71990fd116ac36cc5f3014b959f83898782c40a7ebc371d1d3466224e66f856acc5ace99b79 WHIRLPOOL 93f6c5d8c6d7ae445776af1989bec8ba429238dc0a6aed7f48c2535d669638239563deb9525025c6fbb8d30ffea0ba4a74f22980afddbd23b69b23070ec04ece
-MISC ChangeLog 26470 SHA256 c8a55de8114e003fb30cad3b3aabe766780902b6c7251a7b5dc51e44bc7234b2 SHA512 95a68e5c7c542c67c4b88b1422443cd2316c6e884d0c22f9b6a6cd01c7a3dec7fba5fb8dae77678a973af6290c9f68b2ae5aa6c876d8735d22b4666b329ec04d WHIRLPOOL 2da0efcd0be33558a72dd409ef7434bb9d43a5a4278263a4141ab423fcb780f5b66db0dabb86e2cd9b366cbffa29b53775230b210ae36da200ea9172b08d8465
+MISC ChangeLog 26600 SHA256 6de52ac0359283c85009824ed6790d10d0c2e15a1415086cc16906e747afb7f4 SHA512 8a8af43d9fcdb813b696897ab5532727b480918b8b396c56ec17dc219d55403a75a2ff0b9f74a72b17b7c9c41435f856c0f0a24bb7e6056cf8970a42673d197d WHIRLPOOL 063bbfbb6d719523de7be0b5c5cbfcfadceccd418135aac4cc6898fd5f3ed6a703e656a13fd4e5aed0deaf5dd8b4ab9a4739c36d6ae79a879413a73f96d9d9e1
MISC metadata.xml 162 SHA256 569031668e39895fb20829fb17a49a91a83e8f41b2195b0f04825c4340d2af6b SHA512 b706438a0eda682ad16d8e2217bd54d5fa9f8b305efc6e009d0bf523df159162afee0fae9107c5887e12bb64951bbee4c36c8f4744d008ba8fc2db4c01504fa2 WHIRLPOOL d1196dde03902f1b7eee5c0ad8e30243470e014ec8b6d56fe556125f636872345f0dec41e45f39fa14993db3db78a782efdcf26c3d50cdccd88f4f7c8b7dc67a
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.22 (GNU/Linux)
+Version: GnuPG v2
-iQIcBAEBCAAGBQJTlEEaAAoJELp701BxlEWfq10P/0VNw29rFyQbnmcBJUwhf+sD
-aHaO7KEC/RVPDfa9VJZfEi6JohNfmjgUFEDAapEfEclfumztlQ9Y7Iip3i5aWbCz
-uEbMYBsMjSvmVmqtdQX1Irf0D1m56baM/qZOPBtJPLb6Z4IEL0o5Q/po9xgnCApt
-skuiyi3djc/t6qb1UBwcyziR7r4/WNRZ0Sut/brjkhGchrsIR2SgcA9ASRdLiqku
-1Nz3sEW55Jp8PJPVR+G4XGdzd0oS9Yf2Qnr/mc2auXbPHgWBGYoQkLSqHqzGvLUv
-PdlBv1tfDgl7sPkqmuEa3bto9muBoj8MlQ6za3uFlCI1vUVlGStYKNXEldh66OXL
-zPV2un1qhH+k0R+1Ig2Wn+GvMWx4SZp2ZkydRouMYgkp/6wx4v29pGeTUwtplZML
-tXLrXGim9D2hs6LtQQBPzow7ktb8BjLyKY0Gr3eyCyIpH1fPx+BwnRRYx3r1hAxp
-2AGwnXAee8710qfy90UfTDGWu+fvz3o4XDqJm4esy87xx7IxApqkwA5VAq3PIlI5
-MRGO7MpFrykRYn9/cu6f/EgN7ZRBQu4Hxc1e2cv3EjJr+8VpCbe7SMHoDRrUAXFR
-7ND97YptIPczWgs6fD0UQpgZqXtXU/vVIG2o2Mke8+Up5EyqCX2VgqWFXHDeoNo4
-SRKpotHlViIbrFzlCCfV
-=Su3t
+iQIcBAEBCAAGBQJTmopfAAoJEHfx8XVYajsfuKQP/1noWjW881V01uXaKgQsZ/fH
+SaEpQrHiMRu7f4Zaxv84BuGeqjFTIz4dP6qjtMfFZ91LDix8QII/V6tSGfpPzZkq
+dX5PbjH0E22TjmsrvX8iqMYWP1OUpfKCalU28Lw0NUhyCElvvVUGi+nSRphf6f+f
+vx1ios3sFiljDJy/2doXGBK4YU/Fcc9CfFLSvmjp/0W7r9QESpSt6tG9BiD1Tsfo
+EyxR/ABS+B66CEMijKYpHaS/YekqFxGvtRTAlcbM9tD0cK69RKEu52eerokW+ndK
+aXKRZb8hrLg+i9XSiODp/d/fD1YsjkWUg2Z8S2QedseMeuD2njPxhD3CDiXFwpxg
+ZjDHnK6ozOZQUAziuv64rqt+lHHbHgYOr1RNObGz4vfYqFI8y9MvrMSql7MKAK1Y
+3QWgo+e2POYn61XQ4Dx3vu1QtfrrUiWqP8rF2KylDUmV/whSAIWH5LvOM0x9R5/l
+g3viECA/txBiizFGwDc87th9aCicE4bXcc9y7E4bWnJTLRoKKLxVGNLdZX/AwADU
+FFmbGiygALpWmbjPH3dHAyQLKZKmAsOknzns16MJaafaV8xdzPSEzIsgn3HuGCDC
+5mYSAaH5c1Fv352j4xn4CkUAdWMLlORLgs73dMn4O8V2BSz0nJoaWGbiFmVkKgFp
+w4p8O7lU5NjEWdMr2/1T
+=6LJw
-----END PGP SIGNATURE-----
diff --git a/mail-mta/sendmail/sendmail-8.14.7-r1.ebuild b/mail-mta/sendmail/sendmail-8.14.7-r1.ebuild
deleted file mode 100644
index 1f59f25557e5..000000000000
--- a/mail-mta/sendmail/sendmail-8.14.7-r1.ebuild
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.7-r1.ebuild,v 1.8 2013/12/22 13:19:13 ago Exp $
-
-EAPI="5"
-inherit eutils multilib systemd toolchain-funcs user
-
-DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
-HOMEPAGE="http://www.sendmail.org/"
-SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"
-
-LICENSE="Sendmail"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
-IUSE="ssl ldap sasl tcpd mbox ipv6 nis sockets"
-
-DEPEND="net-mail/mailbase
- sys-devel/m4
- sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
- tcpd? ( sys-apps/tcp-wrappers )
- ssl? ( dev-libs/openssl )
- ldap? ( net-nds/openldap )
- >=sys-libs/db-3.2
- !net-mail/vacation
- "
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00
- !mail-mta/courier
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp[mta]
- !mail-mta/netqmail
- !mail-mta/nullmailer
- !mail-mta/postfix
- !mail-mta/opensmtpd
- !mail-mta/qmail-ldap
- !<mail-mta/ssmtp-2.64-r2
- !>=mail-mta/ssmtp-2.64-r2[mta]"
-
-PDEPEND="!mbox? ( mail-filter/procmail )"
-
-# libmilter 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.
-LIBMILTER_VER=1.0.2
-
-pkg_setup() {
- enewgroup smmsp 209
- enewuser smmsp 209 -1 /var/spool/mqueue smmsp
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/"${PN}"-8.14.6-build-system.patch
- epatch "${FILESDIR}"/sendmail-delivered_hdr.patch
- epatch "${FILESDIR}"/libmilter-sharedlib.patch
- epatch "${FILESDIR}"/"${PN}"-8.14.5+db-5.0.patch
- epatch "${FILESDIR}"/sendmail-starttls-multi-crl.patch
-
- local confCC="$(tc-getCC)"
- local confCCOPTS="${CFLAGS}"
- local confLDOPTS="${LDFLAGS}"
- local confMAPDEF="-DMAP_REGEX"
- local conf_sendmail_LIBS=""
- use sasl && confLIBS="${confLIBS} -lsasl2" \
- && confENVDEF="${confENVDEF} -DSASL=2" \
- && confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
- && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
- use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
- && confLIBS="${confLIBS} -lwrap"
- use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
- && confENVDEF="${confENVDEF} -D_FFR_TLS_1" \
- && confLIBS="${confLIBS} -lssl -lcrypto" \
- && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
- use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
- && confLIBS="${confLIBS} -lldap -llber"
- use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
- use nis && confENVDEF="${confENVDEF} -DNIS"
- use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP"
- sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
- -e "s/@@confLDOPTS@@/${confLDOPTS}/" \
- -e "s/@@confCC@@/${confCC}/" \
- -e "s/@@confMAPDEF@@/${confMAPDEF}/" \
- -e "s/@@confENVDEF@@/${confENVDEF}/" \
- -e "s/@@confLIBS@@/${confLIBS}/" \
- -e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
- "${FILESDIR}"/site.config.m4 > devtools/Site/site.config.m4
-}
-
-src_compile() {
- sh Build || die "compilation failed in main Build script"
- pushd libmilter
- sh Build MILTER_SOVER=${LIBMILTER_VER} || die "libmilter compilation failed"
- popd
-}
-
-src_install () {
- local MY_LIBDIR=/usr/$(get_libdir)
- local MY_OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
- dodir /usr/bin ${MY_LIBDIR} /usr/include/libmilter
- dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
- dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
- keepdir /var/spool/{clientmqueue,mqueue}
- for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
- do
- make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
- LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
- MSPQOWN=root CFOWN=root CFGRP=root \
- install -C "${MY_OBJDIR}/${dir}" \
- || die "install failed"
- done
- for dir in rmail mail.local
- do
- make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
- LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
- MSPQOWN=root CFOWN=root CFGRP=root \
- force-install -C "${MY_OBJDIR}/${dir}" \
- || die "install failed"
- done
-
- make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
- LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
- MSPQOWN=root CFOWN=root CFGRP=root \
- MILTER_SOVER=${LIBMILTER_VER} \
- install -C "${MY_OBJDIR}/libmilter" \
- || die "install failed"
-
- fowners root:smmsp /usr/sbin/sendmail
- fperms 2555 /usr/sbin/sendmail
- fowners smmsp:smmsp /var/spool/clientmqueue
- fperms 770 /var/spool/clientmqueue
- fperms 700 /var/spool/mqueue
- dosym /usr/sbin/makemap /usr/bin/makemap
- dodoc FAQ KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
- newdoc sendmail/README README.sendmail
- newdoc sendmail/SECURITY SECURITY
- newdoc sendmail/TUNING TUNING
- newdoc smrsh/README README.smrsh
- newdoc libmilter/README README.libmilter
-
- newdoc cf/README README.cf
- newdoc cf/cf/README README.install-cf
- cp -pPR cf/* "${D}"/usr/share/sendmail-cf
-
- docinto contrib
- dodoc contrib/*
-
- insinto /etc/mail
- if use mbox
- then
- newins "${FILESDIR}"/sendmail.mc-r1 sendmail.mc
- else
- newins "${FILESDIR}"/sendmail-procmail.mc sendmail.mc
- fi
- m4 "${D}"/usr/share/sendmail-cf/m4/cf.m4 "${D}"/etc/mail/sendmail.mc \
- > "${D}"/etc/mail/sendmail.cf
- echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
- > "${D}"/etc/mail/submit.mc
- cat "${D}"/usr/share/sendmail-cf/cf/submit.mc >> "${D}"/etc/mail/submit.mc
- echo "# local-host-names - include all aliases for your machine here" \
- > "${D}"/etc/mail/local-host-names
- cat <<- EOF > "${D}"/etc/mail/trusted-users
- # trusted-users - users that can send mail as others without a warning
- # apache, mailman, majordomo, uucp are good candidates
- EOF
- cat <<- EOF > "${D}"/etc/mail/access
- # Check the /usr/share/doc/sendmail/README.cf file for a description
- # of the format of this file. (search for access_db in that file)
- # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
- # package.
- #
-
- EOF
- cat <<- EOF > "${D}"/etc/conf.d/sendmail
- # Config file for /etc/init.d/sendmail
- # add start-up options here
- SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
- CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
- KILL_OPTS="" # add -9/-15/your favorite evil SIG level here
-
- EOF
- if use sasl; then
- dodir /etc/sasl2
- cat <<- EOF > "${D}"/etc/sasl2/Sendmail.conf
- pwcheck_method: saslauthd
- mech_list: PLAIN LOGIN
-
- EOF
- fi
-
- doinitd "${FILESDIR}"/sendmail
- systemd_dounit "${FILESDIR}"/sendmail.service
- systemd_dounit "${FILESDIR}"/sm-client.service
-
- keepdir /usr/adm/sm.bin
-}
diff --git a/mail-mta/sendmail/sendmail-8.14.8.ebuild b/mail-mta/sendmail/sendmail-8.14.8.ebuild
deleted file mode 100644
index 7a12824d93c4..000000000000
--- a/mail-mta/sendmail/sendmail-8.14.8.ebuild
+++ /dev/null
@@ -1,203 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/sendmail/sendmail-8.14.8.ebuild,v 1.1 2014/01/29 04:05:27 radhermit Exp $
-
-EAPI="5"
-inherit eutils multilib systemd toolchain-funcs user
-
-DESCRIPTION="Widely-used Mail Transport Agent (MTA)"
-HOMEPAGE="http://www.sendmail.org/"
-SRC_URI="ftp://ftp.sendmail.org/pub/${PN}/${PN}.${PV}.tar.gz"
-
-LICENSE="Sendmail"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
-IUSE="ssl ldap sasl tcpd mbox ipv6 nis sockets"
-
-DEPEND="net-mail/mailbase
- sys-devel/m4
- sasl? ( >=dev-libs/cyrus-sasl-2.1.10 )
- tcpd? ( sys-apps/tcp-wrappers )
- ssl? ( dev-libs/openssl )
- ldap? ( net-nds/openldap )
- >=sys-libs/db-3.2
- !net-mail/vacation
- "
-RDEPEND="${DEPEND}
- >=net-mail/mailbase-0.00
- !mail-mta/courier
- !mail-mta/esmtp
- !mail-mta/exim
- !mail-mta/mini-qmail
- !mail-mta/msmtp[mta]
- !mail-mta/netqmail
- !mail-mta/nullmailer
- !mail-mta/postfix
- !mail-mta/opensmtpd
- !mail-mta/qmail-ldap
- !<mail-mta/ssmtp-2.64-r2
- !>=mail-mta/ssmtp-2.64-r2[mta]"
-
-PDEPEND="!mbox? ( mail-filter/procmail )"
-
-# libmilter 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.
-LIBMILTER_VER=1.0.2
-
-pkg_setup() {
- enewgroup smmsp 209
- enewuser smmsp 209 -1 /var/spool/mqueue smmsp
-}
-
-src_prepare() {
- epatch "${FILESDIR}"/"${PN}"-8.14.6-build-system.patch
- epatch "${FILESDIR}"/sendmail-delivered_hdr.patch
- epatch "${FILESDIR}"/libmilter-sharedlib.patch
- epatch "${FILESDIR}"/"${PN}"-8.14.5+db-5.0.patch
- epatch "${FILESDIR}"/sendmail-starttls-multi-crl.patch
-
- local confCC="$(tc-getCC)"
- local confCCOPTS="${CFLAGS}"
- local confLDOPTS="${LDFLAGS}"
- local confMAPDEF="-DMAP_REGEX"
- local conf_sendmail_LIBS=""
- use sasl && confLIBS="${confLIBS} -lsasl2" \
- && confENVDEF="${confENVDEF} -DSASL=2" \
- && confCCOPTS="${confCCOPTS} -I/usr/include/sasl" \
- && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lsasl2"
- use tcpd && confENVDEF="${confENVDEF} -DTCPWRAPPERS" \
- && confLIBS="${confLIBS} -lwrap"
- use ssl && confENVDEF="${confENVDEF} -DSTARTTLS -D_FFR_DEAL_WITH_ERROR_SSL" \
- && confENVDEF="${confENVDEF} -D_FFR_TLS_1" \
- && confLIBS="${confLIBS} -lssl -lcrypto" \
- && conf_sendmail_LIBS="${conf_sendmail_LIBS} -lssl -lcrypto"
- use ldap && confMAPDEF="${confMAPDEF} -DLDAPMAP" \
- && confLIBS="${confLIBS} -lldap -llber"
- use ipv6 && confENVDEF="${confENVDEF} -DNETINET6"
- use nis && confENVDEF="${confENVDEF} -DNIS"
- use sockets && confENVDEF="${confENVDEF} -DSOCKETMAP"
- sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
- -e "s/@@confLDOPTS@@/${confLDOPTS}/" \
- -e "s/@@confCC@@/${confCC}/" \
- -e "s/@@confMAPDEF@@/${confMAPDEF}/" \
- -e "s/@@confENVDEF@@/${confENVDEF}/" \
- -e "s/@@confLIBS@@/${confLIBS}/" \
- -e "s/@@conf_sendmail_LIBS@@/${conf_sendmail_LIBS}/" \
- "${FILESDIR}"/site.config.m4 > devtools/Site/site.config.m4
-}
-
-src_compile() {
- sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" || die "compilation failed in main Build script"
- pushd libmilter
- sh Build AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" MILTER_SOVER=${LIBMILTER_VER} || die "libmilter compilation failed"
- popd
-}
-
-src_install () {
- local MY_LIBDIR=/usr/$(get_libdir)
- local MY_OBJDIR="obj.`uname -s`.`uname -r`.`uname -m`"
- dodir /usr/bin ${MY_LIBDIR} /usr/include/libmilter
- dodir /usr/share/man/man{1,5,8} /usr/sbin /var/log /usr/share/sendmail-cf
- dodir /var/spool/{mqueue,clientmqueue} /etc/conf.d
- keepdir /var/spool/{clientmqueue,mqueue}
- for dir in libsmutil sendmail mailstats praliases smrsh makemap vacation editmap
- do
- make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
- LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
- MSPQOWN=root CFOWN=root CFGRP=root \
- install -C "${MY_OBJDIR}/${dir}" \
- || die "install failed"
- done
- for dir in rmail mail.local
- do
- make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
- LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
- MSPQOWN=root CFOWN=root CFGRP=root \
- force-install -C "${MY_OBJDIR}/${dir}" \
- || die "install failed"
- done
-
- make DESTDIR="${D}" LIBDIR="${MY_LIBDIR}" MANROOT=/usr/share/man/man \
- SBINOWN=root SBINGRP=root UBINOWN=root UBINGRP=root \
- MANOWN=root MANGRP=root INCOWN=root INCGRP=root \
- LIBOWN=root LIBGRP=root GBINOWN=root GBINGRP=root \
- MSPQOWN=root CFOWN=root CFGRP=root \
- MILTER_SOVER=${LIBMILTER_VER} \
- install -C "${MY_OBJDIR}/libmilter" \
- || die "install failed"
-
- fowners root:smmsp /usr/sbin/sendmail
- fperms 2555 /usr/sbin/sendmail
- fowners smmsp:smmsp /var/spool/clientmqueue
- fperms 770 /var/spool/clientmqueue
- fperms 700 /var/spool/mqueue
- dosym /usr/sbin/makemap /usr/bin/makemap
- dodoc FAQ KNOWNBUGS README RELEASE_NOTES doc/op/op.ps
- newdoc sendmail/README README.sendmail
- newdoc sendmail/SECURITY SECURITY
- newdoc sendmail/TUNING TUNING
- newdoc smrsh/README README.smrsh
- newdoc libmilter/README README.libmilter
-
- newdoc cf/README README.cf
- newdoc cf/cf/README README.install-cf
- cp -pPR cf/* "${D}"/usr/share/sendmail-cf
-
- docinto contrib
- dodoc contrib/*
-
- insinto /etc/mail
- if use mbox
- then
- newins "${FILESDIR}"/sendmail.mc-r1 sendmail.mc
- else
- newins "${FILESDIR}"/sendmail-procmail.mc sendmail.mc
- fi
- m4 "${D}"/usr/share/sendmail-cf/m4/cf.m4 "${D}"/etc/mail/sendmail.mc \
- > "${D}"/etc/mail/sendmail.cf
- echo "include(\`/usr/share/sendmail-cf/m4/cf.m4')dnl" \
- > "${D}"/etc/mail/submit.mc
- cat "${D}"/usr/share/sendmail-cf/cf/submit.mc >> "${D}"/etc/mail/submit.mc
- echo "# local-host-names - include all aliases for your machine here" \
- > "${D}"/etc/mail/local-host-names
- cat <<- EOF > "${D}"/etc/mail/trusted-users
- # trusted-users - users that can send mail as others without a warning
- # apache, mailman, majordomo, uucp are good candidates
- EOF
- cat <<- EOF > "${D}"/etc/mail/access
- # Check the /usr/share/doc/sendmail/README.cf file for a description
- # of the format of this file. (search for access_db in that file)
- # The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
- # package.
- #
-
- EOF
- cat <<- EOF > "${D}"/etc/conf.d/sendmail
- # Config file for /etc/init.d/sendmail
- # add start-up options here
- SENDMAIL_OPTS="-bd -q30m -L sm-mta" # default daemon mode
- CLIENTMQUEUE_OPTS="-Ac -q30m -L sm-cm" # clientmqueue
- KILL_OPTS="" # add -9/-15/your favorite evil SIG level here
-
- EOF
- if use sasl; then
- dodir /etc/sasl2
- cat <<- EOF > "${D}"/etc/sasl2/Sendmail.conf
- pwcheck_method: saslauthd
- mech_list: PLAIN LOGIN
-
- EOF
- fi
-
- doinitd "${FILESDIR}"/sendmail
- systemd_dounit "${FILESDIR}"/sendmail.service
- systemd_dounit "${FILESDIR}"/sm-client.service
-
- keepdir /usr/adm/sm.bin
-}