diff options
author | Fabian Groffen <grobian@gentoo.org> | 2011-08-03 19:19:12 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2011-08-03 19:19:12 +0000 |
commit | e30c43fc68d908094602bdbab31d596598274e7d (patch) | |
tree | 2de2f36ee69dc568896f5ff52ed798a745fc90fc /mail-mta | |
parent | Use --updaterev instead of --rev, thanks to Michał Górny (mgorny@gentoo.org... (diff) | |
download | historical-e30c43fc68d908094602bdbab31d596598274e7d.tar.gz historical-e30c43fc68d908094602bdbab31d596598274e7d.tar.bz2 historical-e30c43fc68d908094602bdbab31d596598274e7d.zip |
Add patch to allow cross-compilation (bug #266591), add support for multiple exim instances to the init script (bug #376569). Remove old and vulnerable versions.
Package-Manager: portage-2.2.01.19011-prefix/cvs/Darwin powerpc
Diffstat (limited to 'mail-mta')
-rw-r--r-- | mail-mta/exim/ChangeLog | 10 | ||||
-rw-r--r-- | mail-mta/exim/Manifest | 26 | ||||
-rw-r--r-- | mail-mta/exim/exim-4.74-r1.ebuild | 329 | ||||
-rw-r--r-- | mail-mta/exim/exim-4.74-r2.ebuild | 329 | ||||
-rw-r--r-- | mail-mta/exim/exim-4.75-r1.ebuild | 327 | ||||
-rw-r--r-- | mail-mta/exim/exim-4.76-r1.ebuild (renamed from mail-mta/exim/exim-4.75.ebuild) | 87 | ||||
-rw-r--r-- | mail-mta/exim/files/exim-4.43-r2-localscan_dlopen.patch | 259 | ||||
-rw-r--r-- | mail-mta/exim/files/exim-4.74-makefile-command-envs.patch | 59 | ||||
-rw-r--r-- | mail-mta/exim/files/exim-4.74-makefile-posix.patch | 86 | ||||
-rw-r--r-- | mail-mta/exim/files/exim-4.74-pcre.patch | 29 | ||||
-rw-r--r-- | mail-mta/exim/files/exim-4.75-CVE-2011-1764.patch | 33 | ||||
-rw-r--r-- | mail-mta/exim/files/exim-4.76-crosscompile.patch | 15 | ||||
-rw-r--r-- | mail-mta/exim/files/exim.rc7 | 30 |
13 files changed, 116 insertions, 1503 deletions
diff --git a/mail-mta/exim/ChangeLog b/mail-mta/exim/ChangeLog index 7b8b83bffb97..a184911e43af 100644 --- a/mail-mta/exim/ChangeLog +++ b/mail-mta/exim/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for mail-mta/exim # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v 1.204 2011/07/04 10:28:12 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/ChangeLog,v 1.205 2011/08/03 19:19:12 grobian Exp $ + +*exim-4.76-r1 (03 Aug 2011) + + 03 Aug 2011; Fabian Groffen <grobian@gentoo.org> +exim-4.76-r1.ebuild, + +files/exim-4.76-crosscompile.patch, +files/exim.rc7: + Add patch to allow cross-compilation (bug #266591), add support for multiple + exim instances to the init script (bug #376569). Remove old and + vulnerable versions. 04 Jul 2011; Fabian Groffen <grobian@gentoo.org> exim-4.76.ebuild, +files/exim-4.76-as-needed.patch: diff --git a/mail-mta/exim/Manifest b/mail-mta/exim/Manifest index d088bba0c228..0a781c7b5865 100644 --- a/mail-mta/exim/Manifest +++ b/mail-mta/exim/Manifest @@ -1,29 +1,31 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX auth_conf.sub 790 RMD160 5d6a71cf9fb593fc34ddce8dc421fcd843356c82 SHA1 5744531af5ee282ae29bdbb4e89fbee16c0034a7 SHA256 d0631d487f115c07a178d48bc7168cd16d7b22c8879b1e926923152cde95ba78 AUX exim-4.14-tail.patch 446 RMD160 685e27ff995710f3b8d77d8785b04503170e7e27 SHA1 d52b5d10656ead546beda128068ed2f9dbc67200 SHA256 74d1044bb94e167180fd8f8aba7449ca3d2b09b1ce170a1a2e4e54ca0cd660da AUX exim-4.20-maildir.patch 478 RMD160 50c6a1dd6ae3f7bb1776696d3d0d7a161c351fce SHA1 c8287f7e44d93b0ca8761b8f7111974cfe1280a5 SHA256 2704c4db67bb7c58c2421656d942f533d1eedf1df187e76297ab72d2c2a2fb4c -AUX exim-4.43-r2-localscan_dlopen.patch 9236 RMD160 d33f7bcf72f947e8d1a3d917713630100c175491 SHA1 e4239a1bf0261f99491b4a29b26bbe8d9beffbd8 SHA256 3ec15d2dfdf251c70647c3def09711385f23983eceeecb6ec9d42b39f54b198d AUX exim-4.69-r1.27021.patch 1447 RMD160 79269b955efee9c4bb99fc99cc026ec1b48f9712 SHA1 6c00bf72b31e51973efef2308f109ff90e077815 SHA256 dc81115be1324cf2d61ff2e2393462bd31aa63551a8b58d9dac39293bec058d5 AUX exim-4.74-localscan_dlopen.patch 9280 RMD160 486890be5fe99a0cdc81a200183237aeff2cb7f5 SHA1 33f250057cd926d4495dde1134ff9adcf3963d06 SHA256 dcd44f552e9b9b79facc988c9efad3ab1609a4e4209e9276323f49d1ea00e462 -AUX exim-4.74-makefile-command-envs.patch 2157 RMD160 d84238bfc27c2b43e125416480824a06055b2eda SHA1 14c6cc1ca8e90ce32b9daa9c9349029d16e8db10 SHA256 78d37ada9eca81e5af0ff8d0b72ee50ac10f82e96febd9a0df21ac4dd04b3a87 -AUX exim-4.74-makefile-posix.patch 2481 RMD160 16dd801d493052bac75dad5681d690c13ae7997b SHA1 66403644bdd439246e0dcba5fb9845d285fe0308 SHA256 8c298b869556ba3f84256081acb23e487f9e56509da1c3153915bfd6bae3f7cc -AUX exim-4.74-pcre.patch 901 RMD160 9092fddcbe708324edf97c61e5054ad96cc2e9b6 SHA1 9e95c060806bd58b988d792e6b2a09df498cac5d SHA256 aa5dddba316473be96deaab4ecbc1ed391e231eeabcc78b47ac2baad75184a31 AUX exim-4.74-radius-db-ENV-clash.patch 667 RMD160 8c71dce1c622bc80580cc81b5a5c2646fe18f222 SHA1 d29358b74b3ad1e921f652e04e064ced59a4361d SHA256 a4150c9b73203dd284faa646a67e39f431d07c6a378af8fabc97a4ad9e078437 -AUX exim-4.75-CVE-2011-1764.patch 1292 RMD160 6b676c2b15bc9e1f7656397e1dcab98ca79c5869 SHA1 d63bd68da6414f9af279d4a98137a438fe24649b SHA256 169b20a7038570621062074e54d6f18c1852eed0af3ad39a3c4c37dcd27a790c AUX exim-4.75-makefile-freebsd.patch 1206 RMD160 a0e394d04a1ff7a4caf09fb0a078dbf1f04da7dc SHA1 12bd58038523d87d943796139310e9236c593acb SHA256 f219c59168cf591bde202ab32586b09c52eab695feb00d64e288fe9b1e45086a AUX exim-4.76-as-needed.patch 926 RMD160 df9807c874073d245a1687f437134f448e5e87ed SHA1 308604b690744077adca4d4fca26658d65652356 SHA256 7cd6f5b736aa7bd3759779b85f3796816ee844311219442877a7124d2150fff4 +AUX exim-4.76-crosscompile.patch 462 RMD160 3f8bb3b3ea76b0d0f73b0f18dc6767788761b14a SHA1 30d3a0d7d5f08609f4d684d7f9c405c30c2ccdb6 SHA256 25ba013858b0fc239e24166554c1e28832d3d25801b53ca633f289bc4ae72b8e AUX exim-4.76-dsn.patch 822 RMD160 4daa5e72ae8617cb8ad233450dd8c52f939af1a4 SHA1 91d44aa2ef34b718ea640c053a33d767996d6d9f SHA256 2b36099285ff271f1c6db189435ebe3c2d3f3e8407ac11a041c7ea21b1997463 AUX exim.confd 62 RMD160 d8dcabf184ffb9066ad45c3e77cce1ec0392a143 SHA1 c56feda3c3193fad26852310da8ef24ef91f60f6 SHA256 668f912565a59926957090c6143f669f0e9de2cf441507d3c05fcd046865b401 AUX exim.logrotate 193 RMD160 af18b62c88fd86b421abe487a232f26bf5287dd5 SHA1 c12f3b44de8a51dd41c4dbf2179a2b0f9d4cbaf4 SHA256 41930f48d934dea0ad14a868c591fe1c47a5f6403d66f8a2d5f4092cd13f8b5c AUX exim.rc6 731 RMD160 07036a18cf072edb4a44b2ecdee21274542d1740 SHA1 bc92933d66befc68906bf9a5b83091c606323c1e SHA256 7c13ad60d4c6c9a29071aff8b68e81a6dd513b018cf0774e446c1afc3dcdc3c4 -DIST exim-4.74.tar.bz2 1588636 RMD160 53fec0a4e44e10b5c48da73e77a8555cedc31641 SHA1 b981c2a519194d0812c88f07b441181737ca37ee SHA256 e55b51c87e0be920f7f5aee830261566a4def8820f318d14a822fe2ae2ff8e40 -DIST exim-4.75.tar.bz2 1600867 RMD160 2dfea8750cc95d057c0b804c0379f69fbed927a9 SHA1 e3196a9035f433c380bb2cec4cbbcfd7ad6c00b3 SHA256 dc6ef216dcf5b44b6c43f00a3ccb16c4b22e1cb2a414e324df22e991fd490ded +AUX exim.rc7 797 RMD160 b5e0ac3b67bdb46ab8372b18a8924bfabe520d08 SHA1 fd0b79ceca26b6c96f93f644773dd20135ce0857 SHA256 24b985089f197ad523178fded0ba6b21561a2260874690d51f9a6a3769667313 DIST exim-4.76.tar.bz2 1605832 RMD160 b619e6e6674584c97ae0503911e95e1016407c34 SHA1 b0df27b0407eef2d79e130597916cde18f2bbe30 SHA256 4625b0fb916835ae60a73311a8956267fa1248e888f584c337a5b7df20174e95 DIST exim_469_dsn_1_3.patch 40222 RMD160 c744d6b5b388716e423529eda5b807aa8b9da2eb SHA1 3d1d7115dd80a974d40febbdef844d87860b8729 SHA256 605c520ea79507fd387772796c62303c5a49d1dc47b744b4267301096eedd49a DIST system_filter.exim.gz 3075 RMD160 47bcc6de402d896b73fd01d7f0d3c3ecbad9cf0b SHA1 384d138d8612f3a80b2b68f272b43cd69bc4411a SHA256 3a3471b486a09e0a0153f7b520e1eaf26d21b97d73ea8348bdc593c00eb1e437 -EBUILD exim-4.74-r1.ebuild 10444 RMD160 439ae1edecb5574bfc162c04f32856f4751712bd SHA1 32c013c84826d867554e5bfa1122e565cfbd3309 SHA256 820328ddbb652b6a0c30aef66c9cf3c71394b6837833a99c5b5d1a861e3a3fdc -EBUILD exim-4.74-r2.ebuild 10448 RMD160 f864ecaad8a329f93d6f65354eb9c24c1505cc9a SHA1 3cf4b693f404dc903c386a1ef3882a04dc7bf75f SHA256 69401dd653880d72972844346b705754f006ae4ced1e5be4547179e91b2c0ea8 -EBUILD exim-4.75-r1.ebuild 10388 RMD160 f67430e2325f6dcf8541dcfd209f1b14184c6132 SHA1 ea6d66c314bfd3a0b376012d02dbfe12b4edeadb SHA256 1861b473b3e2aa48348f8deae486d4f2702611513e877e7ca67d69bc93a285da -EBUILD exim-4.75.ebuild 10287 RMD160 b77ebd1519b26f97965159ec0208370c2224a6b0 SHA1 fec2250cdc652c40042433b43269049ed98a64e1 SHA256 0fc8df2f0b8d936d368ae21aa3e4c7508cab38bf75ee41b2897b8a457e7144ce +EBUILD exim-4.76-r1.ebuild 10419 RMD160 08693ae53cf2ecf1c4da7801a4af6001da5c5bc4 SHA1 45b7fc34c2c1598e18f67285aa7d1fabfed2fbbe SHA256 0892ec6c900826a34df31a675a80b42f3e2316dac1c09b154982fa541ee622cb EBUILD exim-4.76.ebuild 10316 RMD160 930cdf30324c6ad0d95d7dfa5017a2ef516b3a60 SHA1 67fe0632a088ba539c40baf0c0d6d0a143c1fb69 SHA256 733501c20911916e0bf6ec584921d7a6c23de8b29a5b149400636a9ef233b773 -MISC ChangeLog 41457 RMD160 9c06ca2d2fa05e40a6fb78a84a569a7ddc38879a SHA1 e442d1b7973234ad2c43efabc704b576a7705bb2 SHA256 40d56b685807df013e0ca45967d0f1a794daca1b60b731c055ba9a75dcef1877 +MISC ChangeLog 41785 RMD160 32f79c2896d0bc24ac6ba91a23e9465a70a30351 SHA1 53d9de4cb83d4f5169c361c6e182988471331d33 SHA256 a040f7083cacc016dc487b1920fc84d937487807b7c02509f84f3b06c30ecc33 MISC metadata.xml 1745 RMD160 9a78e06e7038d79e2eb1e08017a2a5e6b53aa63f SHA1 892aff75716b8b21fda4d61289cc388ce0b7a3d1 SHA256 6c25800686eeb918e03fbe6caa54c38512c843e8eca3a2db8783289a9b12bea5 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (Darwin) + +iEYEARECAAYFAk45nywACgkQX3X2B8XHTokgmwCfXg069CVRZcuE0c23RPlmE/b3 +h+kAn2Q0ODjyXclR6GebmMNG6ZeJTAdp +=W3Rp +-----END PGP SIGNATURE----- diff --git a/mail-mta/exim/exim-4.74-r1.ebuild b/mail-mta/exim/exim-4.74-r1.ebuild deleted file mode 100644 index 33fe66a0ad84..000000000000 --- a/mail-mta/exim/exim-4.74-r1.ebuild +++ /dev/null @@ -1,329 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.74-r1.ebuild,v 1.10 2011/04/22 16:07:44 flameeyes Exp $ - -EAPI="3" - -inherit eutils toolchain-funcs multilib pam - -IUSE="tcpd ssl postgres mysql ldap pam exiscan-acl lmtp ipv6 sasl dnsdb perl mbx X nis syslog spf srs gnutls sqlite dovecot-sasl radius maildir +dkim dcc dsn" - -DSN_EXIM_V=469 -DSN_V=1_3 - -DESCRIPTION="A highly configurable, drop-in replacement for sendmail" -SRC_URI="ftp://ftp.exim.org/pub/exim/exim4/${P}.tar.bz2 - mirror://gentoo/system_filter.exim.gz - dsn? ( mirror://sourceforge/eximdsn/eximdsn-patch-1.3/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch )" -HOMEPAGE="http://www.exim.org/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86" - -DEPEND=">=sys-apps/sed-4.0.5 - >=sys-libs/db-3.2 - dev-libs/libpcre - perl? ( sys-devel/libperl ) - pam? ( virtual/pam ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - gnutls? ( net-libs/gnutls - dev-libs/libtasn1 ) - ldap? ( >=net-nds/openldap-2.0.7 ) - mysql? ( virtual/mysql ) - postgres? ( dev-db/postgresql-base ) - sasl? ( >=dev-libs/cyrus-sasl-2.1.14 ) - spf? ( >=mail-filter/libspf2-1.2.5-r1 ) - srs? ( mail-filter/libsrs_alt ) - X? ( x11-proto/xproto - x11-libs/libX11 - x11-libs/libXmu - x11-libs/libXt - x11-libs/libXaw - ) - sqlite? ( dev-db/sqlite ) - radius? ( net-dialup/radiusclient ) - virtual/libiconv - " - # added X check for #57206 -RDEPEND="${DEPEND} - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/mini-qmail - !mail-mta/msmtp - !mail-mta/nbsmtp - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/qmail-ldap - !mail-mta/sendmail - !<mail-mta/ssmtp-2.64-r2 - !>=mail-mta/ssmtp-2.64-r2[mta] - !net-mail/mailwrapper - >=net-mail/mailbase-0.00-r5 - virtual/logger - dcc? ( mail-filter/dcc ) - " - -src_prepare() { - epatch "${FILESDIR}"/exim-4.14-tail.patch - epatch "${FILESDIR}"/exim-4.43-r2-localscan_dlopen.patch - epatch "${FILESDIR}"/exim-4.69-r1.27021.patch - epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426 - # from upstream - epatch "${FILESDIR}"/${P}-pcre.patch - epatch "${FILESDIR}"/${P}-makefile-posix.patch - epatch "${FILESDIR}"/${P}-makefile-command-envs.patch - - use maildir && epatch "${FILESDIR}"/exim-4.20-maildir.patch - use dsn && epatch "${DISTDIR}"/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch -} - -src_configure() { - local myconf - - sed -i "/SYSTEM_ALIASES_FILE/ s'SYSTEM_ALIASES_FILE'${EPREFIX}/etc/mail/aliases'" "${S}"/src/configure.default - cp "${S}"/src/configure.default "${S}"/src/configure.default.orig - - sed -e "48i\CFLAGS=${CFLAGS}" \ - -e "s:# AUTH_CRAM_MD5=yes:AUTH_CRAM_MD5=yes:" \ - -e "s:# AUTH_PLAINTEXT=yes:AUTH_PLAINTEXT=yes:" \ - -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ - -e "s:COMPRESS_COMMAND=/usr/bin/gzip:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ - -e "s:ZCAT_COMMAND=/usr/bin/zcat:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:CONFIGURE_FILE=/usr/exim/configure:CONFIGURE_FILE=${EPREFIX}/etc/exim/exim.conf:" \ - -e "s:EXIM_MONITOR=eximon.bin:# EXIM_MONITOR=eximon.bin:" \ - -e "s:# INFO_DIRECTORY=/usr/local/info:INFO_DIRECTORY=${EPREFIX}/usr/share/info:" \ - -e "s:# LOG_FILE_PATH=/var/log/exim_%slog:LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log:" \ - -e "s:# PID_FILE_PATH=/var/lock/exim.pid:PID_FILE_PATH=${EPREFIX}/var/run/exim.pid:" \ - -e "s:# SPOOL_DIRECTORY=/var/spool/exim:SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim:" \ - -e "s:# SUPPORT_MAILDIR=yes:SUPPORT_MAILDIR=yes:" \ - -e "s:# SUPPORT_MAILSTORE=yes:SUPPORT_MAILSTORE=yes:" \ - -e "s:EXIM_USER=:EXIM_USER=mail:" \ - -e "s:# AUTH_SPA=yes:AUTH_SPA=yes:" \ - -e "s:^ZCAT_COMMAND.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:# LOOKUP_PASSWD=yes:LOOKUP_PASSWD=yes:" \ - src/EDITME > Local/Makefile - - # exiscan-acl is now integrated - enable it when use-flag set - if use exiscan-acl; then - sed -i "s:# WITH_CONTENT_SCAN=yes:WITH_CONTENT_SCAN=yes:" Local/Makefile - sed -i "s:# WITH_OLD_DEMIME=yes:WITH_OLD_DEMIME=yes:" Local/Makefile - elif (use spf || use srs ) then - eerror SPF and SRS support require exiscan-acl to be enabled, please add - eerror to your USE settings. - exit 1 - fi - - if use spf; then - myconf="${myconf} -lspf2" - sed -i "s:# EXPERIMENTAL_SPF=yes:EXPERIMENTAL_SPF=yes:" Local/Makefile - mycflags="${mycflags} -DEXPERIMENTAL_SPF" - fi - if use srs; then - myconf="${myconf} -lsrs_alt" - sed -i "s:# EXPERIMENTAL_SRS=yes:EXPERIMENTAL_SRS=yes:" Local/Makefile - fi - - cd Local - # enable optional exim_monitor support via X use flag bug #46778 - if use X; then - einfo "Configuring eximon" - cp ../exim_monitor/EDITME eximon.conf - sed -i "s:# EXIM_MONITOR=eximon.bin:EXIM_MONITOR=eximon.bin:" Makefile - fi - if use perl; then - sed -i "s:# EXIM_PERL=perl.o:EXIM_PERL=perl.o:" Makefile - fi - # mbox useflag renamed, see bug #110741 - if use mbx; then - sed -i "s:# SUPPORT_MBX=yes:SUPPORT_MBX=yes:" Makefile - fi - if use pam; then - sed -i "s:# \(SUPPORT_PAM=yes\):\1:" Makefile - myconf="${myconf} -lpam" - fi - if use sasl; then - sed -i "s:# CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/state/saslauthd/mux:CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/lib/sasl2/mux:" Makefile - sed -i "s:# AUTH_CYRUS_SASL=yes:AUTH_CYRUS_SASL=yes:" Makefile - myconf="${myconf} -lsasl2" - fi - if use tcpd; then - sed -i "s:# \(USE_TCP_WRAPPERS=yes\):\1:" Makefile - myconf="${myconf} -lwrap" - fi - if use lmtp; then - sed -i "s:# \(TRANSPORT_LMTP=yes\):\1:" Makefile - fi - if use ipv6; then - echo "HAVE_IPV6=YES" >> Makefile - # to fix bug #41196 - echo "IPV6_USE_INET_PTON=yes" >> Makefile - fi - if use dovecot-sasl; then - sed -i "s:# AUTH_DOVECOT=yes:AUTH_DOVECOT=yes:" Makefile - fi - if use radius; then - myconf="${myconf} -lradiusclient" - sed -i "s:# RADIUS_CONFIG_FILE=/etc/radiusclient/radiusclient.conf:RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf:" Makefile - sed -i "s:# RADIUS_LIB_TYPE=RADIUSCLIENT$:RADIUS_LIB_TYPE=RADIUSCLIENT:" Makefile - fi - echo "EXTRALIBS=${myconf} ${LDFLAGS}" >> Makefile - - # make iconv usage explicit - echo "HAVE_ICONV=yes" >> Makefile - # if we use libiconv, now is the time to tell so - use !elibc_glibc && echo "EXTRALIBS_EXIM=-liconv" >> Makefile - - cd "${S}" - if use ssl; then - sed -i \ - -e "s:# \(SUPPORT_TLS=yes\):\1:" Local/Makefile - if use gnutls; then - sed -i \ - -e "s:# \(USE_GNUTLS=yes\):\1:" \ - -e "s:# \(TLS_LIBS=-lgnutls -ltasn1 -lgcrypt\):\1:" Local/Makefile - else - sed -i \ - -e "s:# \(TLS_LIBS=-lssl -lcrypto\):\1:" Local/Makefile - fi - fi - - LOOKUP_INCLUDE= - LOOKUP_LIBS= - - if use ldap; then - sed -i \ - -e "s:# \(LOOKUP_LDAP=yes\):\1:" \ - -e "s:# \(LDAP_LIB_TYPE=OPENLDAP2\):\1:" Local/Makefile - LOOKUP_INCLUDE="-I${EROOT}usr/include/ldap" - LOOKUP_LIBS="-lldap -llber" - fi - - if use mysql; then - sed -i "s:# LOOKUP_MYSQL=yes:LOOKUP_MYSQL=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/mysql" - LOOKUP_LIBS="$LOOKUP_LIBS -lmysqlclient" - fi - - if use postgres; then - sed -i "s:# LOOKUP_PGSQL=yes:LOOKUP_PGSQL=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/postgresql" - LOOKUP_LIBS="$LOOKUP_LIBS -lpq" - fi - - if use sqlite; then - sed -i "s:# LOOKUP_SQLITE=yes: LOOKUP_SQLITE=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/sqlite" - LOOKUP_LIBS="$LOOKUP_LIBS -lsqlite3" - fi - - if [[ -n ${LOOKUP_INCLUDE} ]]; then - sed -i "s:# LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include:LOOKUP_INCLUDE=$LOOKUP_INCLUDE:" \ - Local/Makefile - fi - - if [[ -n ${LOOKUP_LIBS} ]]; then - sed -i "s:# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds -lsqlite3:LOOKUP_LIBS=$LOOKUP_LIBS:" \ - Local/Makefile - fi - - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile - - sed -i "s:# LOOKUP_DSEARCH=yes:LOOKUP_DSEARCH=yes:" Local/Makefile - - if use dnsdb; then - sed -i "s:# LOOKUP_DNSDB=yes:LOOKUP_DNSDB=yes:" Local/Makefile - fi - sed -i "s:# LOOKUP_CDB=yes:LOOKUP_CDB=yes:" Local/Makefile - - if use nis; then - sed -i -e "s:# LOOKUP_NIS=yes:LOOKUP_NIS=yes:" \ - -e "s:# LOOKUP_NISPLUS=yes:LOOKUP_NISPLUS=yes:" Local/Makefile - fi - if use syslog; then - sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Local/Makefile - fi - if ! use dkim; then - # DKIM is enabled by default. We have to explicitly disable it. - echo "DISABLE_DKIM=yes">> Local/Makefile - fi - if use dcc; then - echo "EXPERIMENTAL_DCC=yes">> Local/Makefile - fi - if use dsn; then - sed -i -e "s:#define SUPPORT_DSN:define SUPPORT_DSN:" Local/Makefile - fi - - # use the "native" interface to the DBM library - echo "USE_DB=yes" >> Local/Makefile -} - -src_compile() { - emake -j1 CC="$(tc-getCC)" FULLECHO='' || die "make failed" -} - -src_install () { - cd "${S}"/build-exim-gentoo - exeinto /usr/sbin - doexe exim - if use X; then - doexe eximon.bin - doexe eximon - fi - fperms 4755 /usr/sbin/exim - - dodir /usr/bin /usr/sbin /usr/lib - - dosym exim /usr/sbin/sendmail - dosym exim /usr/sbin/rsmtp - dosym exim /usr/sbin/rmail - dosym /usr/sbin/exim /usr/bin/mailq - dosym /usr/sbin/exim /usr/bin/newaliases - dosym /usr/sbin/sendmail /usr/lib/sendmail - - exeinto /usr/sbin - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ - convert4r3 convert4r4 exipick - do - doexe $i - done - - dodoc "${S}"/doc/* - doman "${S}"/doc/exim.8 - use dsn && dodoc "${S}"/README.DSN - - # conf files - insinto /etc/exim - newins "${S}"/src/configure.default.orig exim.conf.dist - if use exiscan-acl; then - newins "${S}"/src/configure.default exim.conf.exiscan-acl - fi - doins "${WORKDIR}"/system_filter.exim - doins "${FILESDIR}"/auth_conf.sub - - pamd_mimic system-auth exim auth account - - insinto /etc/logrotate.d - newins "${FILESDIR}/exim.logrotate" exim - - newinitd "${FILESDIR}"/exim.rc6 exim - - newconfd "${FILESDIR}"/exim.confd exim - - DIROPTIONS="--mode=0750 --owner=mail --group=mail" - dodir /var/log/${PN} -} - -pkg_postinst() { - einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter." - einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub for using smtp auth." - einfo "Please create ${EROOT}etc/exim/exim.conf from ${EROOT}etc/exim/exim.conf.dist." - if use dcc ; then - einfo "DCC support is experimental, you can find some limited" - einfo "documentation at the bottom of this prerelease message:" - einfo "http://article.gmane.org/gmane.mail.exim.devel/3579" - fi -} diff --git a/mail-mta/exim/exim-4.74-r2.ebuild b/mail-mta/exim/exim-4.74-r2.ebuild deleted file mode 100644 index a08301ab2ea5..000000000000 --- a/mail-mta/exim/exim-4.74-r2.ebuild +++ /dev/null @@ -1,329 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.74-r2.ebuild,v 1.3 2011/04/22 16:07:44 flameeyes Exp $ - -EAPI="3" - -inherit eutils toolchain-funcs multilib pam - -IUSE="tcpd ssl postgres mysql ldap pam exiscan-acl lmtp ipv6 sasl dnsdb perl mbx X nis syslog spf srs gnutls sqlite dovecot-sasl radius maildir +dkim dcc dsn" - -DSN_EXIM_V=469 -DSN_V=1_3 - -DESCRIPTION="A highly configurable, drop-in replacement for sendmail" -SRC_URI="ftp://ftp.exim.org/pub/exim/exim4/${P}.tar.bz2 - mirror://gentoo/system_filter.exim.gz - dsn? ( mirror://sourceforge/eximdsn/eximdsn-patch-1.3/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch )" -HOMEPAGE="http://www.exim.org/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" - -DEPEND=">=sys-apps/sed-4.0.5 - >=sys-libs/db-3.2 - dev-libs/libpcre - perl? ( sys-devel/libperl ) - pam? ( virtual/pam ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - gnutls? ( net-libs/gnutls - dev-libs/libtasn1 ) - ldap? ( >=net-nds/openldap-2.0.7 ) - mysql? ( virtual/mysql ) - postgres? ( dev-db/postgresql-base ) - sasl? ( >=dev-libs/cyrus-sasl-2.1.14 ) - spf? ( >=mail-filter/libspf2-1.2.5-r1 ) - srs? ( mail-filter/libsrs_alt ) - X? ( x11-proto/xproto - x11-libs/libX11 - x11-libs/libXmu - x11-libs/libXt - x11-libs/libXaw - ) - sqlite? ( dev-db/sqlite ) - radius? ( net-dialup/radiusclient ) - virtual/libiconv - " - # added X check for #57206 -RDEPEND="${DEPEND} - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/mini-qmail - !mail-mta/msmtp - !mail-mta/nbsmtp - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/qmail-ldap - !mail-mta/sendmail - !<mail-mta/ssmtp-2.64-r2 - !>=mail-mta/ssmtp-2.64-r2[mta] - !net-mail/mailwrapper - >=net-mail/mailbase-0.00-r5 - virtual/logger - dcc? ( mail-filter/dcc ) - " - -src_prepare() { - epatch "${FILESDIR}"/exim-4.14-tail.patch - epatch "${FILESDIR}"/exim-4.74-localscan_dlopen.patch - epatch "${FILESDIR}"/exim-4.69-r1.27021.patch - epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426 - # from upstream - epatch "${FILESDIR}"/${P}-pcre.patch - epatch "${FILESDIR}"/${P}-makefile-posix.patch - epatch "${FILESDIR}"/${P}-makefile-command-envs.patch - - use maildir && epatch "${FILESDIR}"/exim-4.20-maildir.patch - use dsn && epatch "${DISTDIR}"/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch -} - -src_configure() { - local myconf - - sed -i "/SYSTEM_ALIASES_FILE/ s'SYSTEM_ALIASES_FILE'${EPREFIX}/etc/mail/aliases'" "${S}"/src/configure.default - cp "${S}"/src/configure.default "${S}"/src/configure.default.orig - - sed -e "48i\CFLAGS=${CFLAGS}" \ - -e "s:# AUTH_CRAM_MD5=yes:AUTH_CRAM_MD5=yes:" \ - -e "s:# AUTH_PLAINTEXT=yes:AUTH_PLAINTEXT=yes:" \ - -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ - -e "s:COMPRESS_COMMAND=/usr/bin/gzip:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ - -e "s:ZCAT_COMMAND=/usr/bin/zcat:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:CONFIGURE_FILE=/usr/exim/configure:CONFIGURE_FILE=${EPREFIX}/etc/exim/exim.conf:" \ - -e "s:EXIM_MONITOR=eximon.bin:# EXIM_MONITOR=eximon.bin:" \ - -e "s:# INFO_DIRECTORY=/usr/local/info:INFO_DIRECTORY=${EPREFIX}/usr/share/info:" \ - -e "s:# LOG_FILE_PATH=/var/log/exim_%slog:LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log:" \ - -e "s:# PID_FILE_PATH=/var/lock/exim.pid:PID_FILE_PATH=${EPREFIX}/var/run/exim.pid:" \ - -e "s:# SPOOL_DIRECTORY=/var/spool/exim:SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim:" \ - -e "s:# SUPPORT_MAILDIR=yes:SUPPORT_MAILDIR=yes:" \ - -e "s:# SUPPORT_MAILSTORE=yes:SUPPORT_MAILSTORE=yes:" \ - -e "s:EXIM_USER=:EXIM_USER=mail:" \ - -e "s:# AUTH_SPA=yes:AUTH_SPA=yes:" \ - -e "s:^ZCAT_COMMAND.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:# LOOKUP_PASSWD=yes:LOOKUP_PASSWD=yes:" \ - src/EDITME > Local/Makefile - - # exiscan-acl is now integrated - enable it when use-flag set - if use exiscan-acl; then - sed -i "s:# WITH_CONTENT_SCAN=yes:WITH_CONTENT_SCAN=yes:" Local/Makefile - sed -i "s:# WITH_OLD_DEMIME=yes:WITH_OLD_DEMIME=yes:" Local/Makefile - elif (use spf || use srs ) then - eerror SPF and SRS support require exiscan-acl to be enabled, please add - eerror to your USE settings. - exit 1 - fi - - if use spf; then - myconf="${myconf} -lspf2" - sed -i "s:# EXPERIMENTAL_SPF=yes:EXPERIMENTAL_SPF=yes:" Local/Makefile - mycflags="${mycflags} -DEXPERIMENTAL_SPF" - fi - if use srs; then - myconf="${myconf} -lsrs_alt" - sed -i "s:# EXPERIMENTAL_SRS=yes:EXPERIMENTAL_SRS=yes:" Local/Makefile - fi - - cd Local - # enable optional exim_monitor support via X use flag bug #46778 - if use X; then - einfo "Configuring eximon" - cp ../exim_monitor/EDITME eximon.conf - sed -i "s:# EXIM_MONITOR=eximon.bin:EXIM_MONITOR=eximon.bin:" Makefile - fi - if use perl; then - sed -i "s:# EXIM_PERL=perl.o:EXIM_PERL=perl.o:" Makefile - fi - # mbox useflag renamed, see bug #110741 - if use mbx; then - sed -i "s:# SUPPORT_MBX=yes:SUPPORT_MBX=yes:" Makefile - fi - if use pam; then - sed -i "s:# \(SUPPORT_PAM=yes\):\1:" Makefile - myconf="${myconf} -lpam" - fi - if use sasl; then - sed -i "s:# CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/state/saslauthd/mux:CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/lib/sasl2/mux:" Makefile - sed -i "s:# AUTH_CYRUS_SASL=yes:AUTH_CYRUS_SASL=yes:" Makefile - myconf="${myconf} -lsasl2" - fi - if use tcpd; then - sed -i "s:# \(USE_TCP_WRAPPERS=yes\):\1:" Makefile - myconf="${myconf} -lwrap" - fi - if use lmtp; then - sed -i "s:# \(TRANSPORT_LMTP=yes\):\1:" Makefile - fi - if use ipv6; then - echo "HAVE_IPV6=YES" >> Makefile - # to fix bug #41196 - echo "IPV6_USE_INET_PTON=yes" >> Makefile - fi - if use dovecot-sasl; then - sed -i "s:# AUTH_DOVECOT=yes:AUTH_DOVECOT=yes:" Makefile - fi - if use radius; then - myconf="${myconf} -lradiusclient" - sed -i "s:# RADIUS_CONFIG_FILE=/etc/radiusclient/radiusclient.conf:RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf:" Makefile - sed -i "s:# RADIUS_LIB_TYPE=RADIUSCLIENT$:RADIUS_LIB_TYPE=RADIUSCLIENT:" Makefile - fi - echo "EXTRALIBS=${myconf} ${LDFLAGS}" >> Makefile - - # make iconv usage explicit - echo "HAVE_ICONV=yes" >> Makefile - # if we use libiconv, now is the time to tell so - use !elibc_glibc && echo "EXTRALIBS_EXIM=-liconv" >> Makefile - - cd "${S}" - if use ssl; then - sed -i \ - -e "s:# \(SUPPORT_TLS=yes\):\1:" Local/Makefile - if use gnutls; then - sed -i \ - -e "s:# \(USE_GNUTLS=yes\):\1:" \ - -e "s:# \(TLS_LIBS=-lgnutls -ltasn1 -lgcrypt\):\1:" Local/Makefile - else - sed -i \ - -e "s:# \(TLS_LIBS=-lssl -lcrypto\):\1:" Local/Makefile - fi - fi - - LOOKUP_INCLUDE= - LOOKUP_LIBS= - - if use ldap; then - sed -i \ - -e "s:# \(LOOKUP_LDAP=yes\):\1:" \ - -e "s:# \(LDAP_LIB_TYPE=OPENLDAP2\):\1:" Local/Makefile - LOOKUP_INCLUDE="-I${EROOT}usr/include/ldap" - LOOKUP_LIBS="-lldap -llber" - fi - - if use mysql; then - sed -i "s:# LOOKUP_MYSQL=yes:LOOKUP_MYSQL=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/mysql" - LOOKUP_LIBS="$LOOKUP_LIBS -lmysqlclient" - fi - - if use postgres; then - sed -i "s:# LOOKUP_PGSQL=yes:LOOKUP_PGSQL=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/postgresql" - LOOKUP_LIBS="$LOOKUP_LIBS -lpq" - fi - - if use sqlite; then - sed -i "s:# LOOKUP_SQLITE=yes: LOOKUP_SQLITE=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/sqlite" - LOOKUP_LIBS="$LOOKUP_LIBS -lsqlite3" - fi - - if [[ -n ${LOOKUP_INCLUDE} ]]; then - sed -i "s:# LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include:LOOKUP_INCLUDE=$LOOKUP_INCLUDE:" \ - Local/Makefile - fi - - if [[ -n ${LOOKUP_LIBS} ]]; then - sed -i "s:# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds -lsqlite3:LOOKUP_LIBS=$LOOKUP_LIBS:" \ - Local/Makefile - fi - - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile - - sed -i "s:# LOOKUP_DSEARCH=yes:LOOKUP_DSEARCH=yes:" Local/Makefile - - if use dnsdb; then - sed -i "s:# LOOKUP_DNSDB=yes:LOOKUP_DNSDB=yes:" Local/Makefile - fi - sed -i "s:# LOOKUP_CDB=yes:LOOKUP_CDB=yes:" Local/Makefile - - if use nis; then - sed -i -e "s:# LOOKUP_NIS=yes:LOOKUP_NIS=yes:" \ - -e "s:# LOOKUP_NISPLUS=yes:LOOKUP_NISPLUS=yes:" Local/Makefile - fi - if use syslog; then - sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Local/Makefile - fi - if ! use dkim; then - # DKIM is enabled by default. We have to explicitly disable it. - echo "DISABLE_DKIM=yes">> Local/Makefile - fi - if use dcc; then - echo "EXPERIMENTAL_DCC=yes">> Local/Makefile - fi - if use dsn; then - sed -i -e "s:#define SUPPORT_DSN:define SUPPORT_DSN:" Local/Makefile - fi - - # use the "native" interface to the DBM library - echo "USE_DB=yes" >> Local/Makefile -} - -src_compile() { - emake -j1 CC="$(tc-getCC)" FULLECHO='' || die "make failed" -} - -src_install () { - cd "${S}"/build-exim-gentoo - exeinto /usr/sbin - doexe exim - if use X; then - doexe eximon.bin - doexe eximon - fi - fperms 4755 /usr/sbin/exim - - dodir /usr/bin /usr/sbin /usr/lib - - dosym exim /usr/sbin/sendmail - dosym exim /usr/sbin/rsmtp - dosym exim /usr/sbin/rmail - dosym /usr/sbin/exim /usr/bin/mailq - dosym /usr/sbin/exim /usr/bin/newaliases - dosym /usr/sbin/sendmail /usr/lib/sendmail - - exeinto /usr/sbin - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ - convert4r3 convert4r4 exipick - do - doexe $i - done - - dodoc "${S}"/doc/* - doman "${S}"/doc/exim.8 - use dsn && dodoc "${S}"/README.DSN - - # conf files - insinto /etc/exim - newins "${S}"/src/configure.default.orig exim.conf.dist - if use exiscan-acl; then - newins "${S}"/src/configure.default exim.conf.exiscan-acl - fi - doins "${WORKDIR}"/system_filter.exim - doins "${FILESDIR}"/auth_conf.sub - - pamd_mimic system-auth exim auth account - - insinto /etc/logrotate.d - newins "${FILESDIR}/exim.logrotate" exim - - newinitd "${FILESDIR}"/exim.rc6 exim - - newconfd "${FILESDIR}"/exim.confd exim - - DIROPTIONS="--mode=0750 --owner=mail --group=mail" - dodir /var/log/${PN} -} - -pkg_postinst() { - einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter." - einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub for using smtp auth." - einfo "Please create ${EROOT}etc/exim/exim.conf from ${EROOT}etc/exim/exim.conf.dist." - if use dcc ; then - einfo "DCC support is experimental, you can find some limited" - einfo "documentation at the bottom of this prerelease message:" - einfo "http://article.gmane.org/gmane.mail.exim.devel/3579" - fi -} diff --git a/mail-mta/exim/exim-4.75-r1.ebuild b/mail-mta/exim/exim-4.75-r1.ebuild deleted file mode 100644 index 4146c88a8926..000000000000 --- a/mail-mta/exim/exim-4.75-r1.ebuild +++ /dev/null @@ -1,327 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.75-r1.ebuild,v 1.5 2011/05/09 18:44:02 jer Exp $ - -EAPI="3" - -inherit eutils toolchain-funcs multilib pam - -IUSE="tcpd ssl postgres mysql ldap pam exiscan-acl lmtp ipv6 sasl dnsdb perl mbx X nis syslog spf srs gnutls sqlite dovecot-sasl radius maildir +dkim dcc dsn" - -DSN_EXIM_V=469 -DSN_V=1_3 - -DESCRIPTION="A highly configurable, drop-in replacement for sendmail" -SRC_URI="ftp://ftp.exim.org/pub/exim/exim4/${P}.tar.bz2 - mirror://gentoo/system_filter.exim.gz - dsn? ( mirror://sourceforge/eximdsn/eximdsn-patch-1.3/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch )" -HOMEPAGE="http://www.exim.org/" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="~alpha amd64 hppa ~ia64 ~ppc ~ppc64 ~sparc x86" - -DEPEND=">=sys-apps/sed-4.0.5 - >=sys-libs/db-3.2 - dev-libs/libpcre - perl? ( sys-devel/libperl ) - pam? ( virtual/pam ) - tcpd? ( sys-apps/tcp-wrappers ) - ssl? ( >=dev-libs/openssl-0.9.6 ) - gnutls? ( net-libs/gnutls - dev-libs/libtasn1 ) - ldap? ( >=net-nds/openldap-2.0.7 ) - mysql? ( virtual/mysql ) - postgres? ( dev-db/postgresql-base ) - sasl? ( >=dev-libs/cyrus-sasl-2.1.14 ) - spf? ( >=mail-filter/libspf2-1.2.5-r1 ) - srs? ( mail-filter/libsrs_alt ) - X? ( x11-proto/xproto - x11-libs/libX11 - x11-libs/libXmu - x11-libs/libXt - x11-libs/libXaw - ) - sqlite? ( dev-db/sqlite ) - radius? ( net-dialup/radiusclient ) - virtual/libiconv - " - # added X check for #57206 -RDEPEND="${DEPEND} - !mail-mta/courier - !mail-mta/esmtp - !mail-mta/mini-qmail - !mail-mta/msmtp - !mail-mta/nbsmtp - !mail-mta/netqmail - !mail-mta/nullmailer - !mail-mta/postfix - !mail-mta/qmail-ldap - !mail-mta/sendmail - !<mail-mta/ssmtp-2.64-r2 - !>=mail-mta/ssmtp-2.64-r2[mta] - !net-mail/mailwrapper - >=net-mail/mailbase-0.00-r5 - virtual/logger - dcc? ( mail-filter/dcc ) - " - -src_prepare() { - epatch "${FILESDIR}"/exim-4.14-tail.patch - epatch "${FILESDIR}"/exim-4.74-localscan_dlopen.patch - epatch "${FILESDIR}"/exim-4.69-r1.27021.patch - epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426 - epatch "${FILESDIR}"/exim-4.75-CVE-2011-1764.patch - epatch "${FILESDIR}"/exim-4.75-makefile-freebsd.patch - - use maildir && epatch "${FILESDIR}"/exim-4.20-maildir.patch - use dsn && epatch "${DISTDIR}"/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch -} - -src_configure() { - local myconf - - sed -i "/SYSTEM_ALIASES_FILE/ s'SYSTEM_ALIASES_FILE'${EPREFIX}/etc/mail/aliases'" "${S}"/src/configure.default - cp "${S}"/src/configure.default "${S}"/src/configure.default.orig - - sed -e "48i\CFLAGS=${CFLAGS}" \ - -e "s:# AUTH_CRAM_MD5=yes:AUTH_CRAM_MD5=yes:" \ - -e "s:# AUTH_PLAINTEXT=yes:AUTH_PLAINTEXT=yes:" \ - -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ - -e "s:COMPRESS_COMMAND=/usr/bin/gzip:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ - -e "s:ZCAT_COMMAND=/usr/bin/zcat:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:CONFIGURE_FILE=/usr/exim/configure:CONFIGURE_FILE=${EPREFIX}/etc/exim/exim.conf:" \ - -e "s:EXIM_MONITOR=eximon.bin:# EXIM_MONITOR=eximon.bin:" \ - -e "s:# INFO_DIRECTORY=/usr/local/info:INFO_DIRECTORY=${EPREFIX}/usr/share/info:" \ - -e "s:# LOG_FILE_PATH=/var/log/exim_%slog:LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log:" \ - -e "s:# PID_FILE_PATH=/var/lock/exim.pid:PID_FILE_PATH=${EPREFIX}/var/run/exim.pid:" \ - -e "s:# SPOOL_DIRECTORY=/var/spool/exim:SPOOL_DIRECTORY=${EPREFIX}/var/spool/exim:" \ - -e "s:# SUPPORT_MAILDIR=yes:SUPPORT_MAILDIR=yes:" \ - -e "s:# SUPPORT_MAILSTORE=yes:SUPPORT_MAILSTORE=yes:" \ - -e "s:EXIM_USER=:EXIM_USER=mail:" \ - -e "s:# AUTH_SPA=yes:AUTH_SPA=yes:" \ - -e "s:^ZCAT_COMMAND.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ - -e "s:# LOOKUP_PASSWD=yes:LOOKUP_PASSWD=yes:" \ - src/EDITME > Local/Makefile - - # exiscan-acl is now integrated - enable it when use-flag set - if use exiscan-acl; then - sed -i "s:# WITH_CONTENT_SCAN=yes:WITH_CONTENT_SCAN=yes:" Local/Makefile - sed -i "s:# WITH_OLD_DEMIME=yes:WITH_OLD_DEMIME=yes:" Local/Makefile - elif (use spf || use srs ) then - eerror SPF and SRS support require exiscan-acl to be enabled, please add - eerror to your USE settings. - exit 1 - fi - - if use spf; then - myconf="${myconf} -lspf2" - sed -i "s:# EXPERIMENTAL_SPF=yes:EXPERIMENTAL_SPF=yes:" Local/Makefile - mycflags="${mycflags} -DEXPERIMENTAL_SPF" - fi - if use srs; then - myconf="${myconf} -lsrs_alt" - sed -i "s:# EXPERIMENTAL_SRS=yes:EXPERIMENTAL_SRS=yes:" Local/Makefile - fi - - cd Local - # enable optional exim_monitor support via X use flag bug #46778 - if use X; then - einfo "Configuring eximon" - cp ../exim_monitor/EDITME eximon.conf - sed -i "s:# EXIM_MONITOR=eximon.bin:EXIM_MONITOR=eximon.bin:" Makefile - fi - if use perl; then - sed -i "s:# EXIM_PERL=perl.o:EXIM_PERL=perl.o:" Makefile - fi - # mbox useflag renamed, see bug #110741 - if use mbx; then - sed -i "s:# SUPPORT_MBX=yes:SUPPORT_MBX=yes:" Makefile - fi - if use pam; then - sed -i "s:# \(SUPPORT_PAM=yes\):\1:" Makefile - myconf="${myconf} -lpam" - fi - if use sasl; then - sed -i "s:# CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/state/saslauthd/mux:CYRUS_SASLAUTHD_SOCKET=${EPREFIX}/var/lib/sasl2/mux:" Makefile - sed -i "s:# AUTH_CYRUS_SASL=yes:AUTH_CYRUS_SASL=yes:" Makefile - myconf="${myconf} -lsasl2" - fi - if use tcpd; then - sed -i "s:# \(USE_TCP_WRAPPERS=yes\):\1:" Makefile - myconf="${myconf} -lwrap" - fi - if use lmtp; then - sed -i "s:# \(TRANSPORT_LMTP=yes\):\1:" Makefile - fi - if use ipv6; then - echo "HAVE_IPV6=YES" >> Makefile - # to fix bug #41196 - echo "IPV6_USE_INET_PTON=yes" >> Makefile - fi - if use dovecot-sasl; then - sed -i "s:# AUTH_DOVECOT=yes:AUTH_DOVECOT=yes:" Makefile - fi - if use radius; then - myconf="${myconf} -lradiusclient" - sed -i "s:# RADIUS_CONFIG_FILE=/etc/radiusclient/radiusclient.conf:RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf:" Makefile - sed -i "s:# RADIUS_LIB_TYPE=RADIUSCLIENT$:RADIUS_LIB_TYPE=RADIUSCLIENT:" Makefile - fi - echo "EXTRALIBS=${myconf} ${LDFLAGS}" >> Makefile - - # make iconv usage explicit - echo "HAVE_ICONV=yes" >> Makefile - # if we use libiconv, now is the time to tell so - use !elibc_glibc && echo "EXTRALIBS_EXIM=-liconv" >> Makefile - - cd "${S}" - if use ssl; then - sed -i \ - -e "s:# \(SUPPORT_TLS=yes\):\1:" Local/Makefile - if use gnutls; then - sed -i \ - -e "s:# \(USE_GNUTLS=yes\):\1:" \ - -e "s:# \(TLS_LIBS=-lgnutls -ltasn1 -lgcrypt\):\1:" Local/Makefile - else - sed -i \ - -e "s:# \(TLS_LIBS=-lssl -lcrypto\):\1:" Local/Makefile - fi - fi - - LOOKUP_INCLUDE= - LOOKUP_LIBS= - - if use ldap; then - sed -i \ - -e "s:# \(LOOKUP_LDAP=yes\):\1:" \ - -e "s:# \(LDAP_LIB_TYPE=OPENLDAP2\):\1:" Local/Makefile - LOOKUP_INCLUDE="-I${EROOT}usr/include/ldap" - LOOKUP_LIBS="-lldap -llber" - fi - - if use mysql; then - sed -i "s:# LOOKUP_MYSQL=yes:LOOKUP_MYSQL=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/mysql" - LOOKUP_LIBS="$LOOKUP_LIBS -lmysqlclient" - fi - - if use postgres; then - sed -i "s:# LOOKUP_PGSQL=yes:LOOKUP_PGSQL=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/postgresql" - LOOKUP_LIBS="$LOOKUP_LIBS -lpq" - fi - - if use sqlite; then - sed -i "s:# LOOKUP_SQLITE=yes: LOOKUP_SQLITE=yes:" Local/Makefile - LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/sqlite" - LOOKUP_LIBS="$LOOKUP_LIBS -lsqlite3" - fi - - if [[ -n ${LOOKUP_INCLUDE} ]]; then - sed -i "s:# LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include:LOOKUP_INCLUDE=$LOOKUP_INCLUDE:" \ - Local/Makefile - fi - - if [[ -n ${LOOKUP_LIBS} ]]; then - sed -i "s:# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds -lsqlite3:LOOKUP_LIBS=$LOOKUP_LIBS:" \ - Local/Makefile - fi - - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile - - sed -i "s:# LOOKUP_DSEARCH=yes:LOOKUP_DSEARCH=yes:" Local/Makefile - - if use dnsdb; then - sed -i "s:# LOOKUP_DNSDB=yes:LOOKUP_DNSDB=yes:" Local/Makefile - fi - sed -i "s:# LOOKUP_CDB=yes:LOOKUP_CDB=yes:" Local/Makefile - - if use nis; then - sed -i -e "s:# LOOKUP_NIS=yes:LOOKUP_NIS=yes:" \ - -e "s:# LOOKUP_NISPLUS=yes:LOOKUP_NISPLUS=yes:" Local/Makefile - fi - if use syslog; then - sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Local/Makefile - fi - if ! use dkim; then - # DKIM is enabled by default. We have to explicitly disable it. - echo "DISABLE_DKIM=yes">> Local/Makefile - fi - if use dcc; then - echo "EXPERIMENTAL_DCC=yes">> Local/Makefile - fi - if use dsn; then - sed -i -e "s:#define SUPPORT_DSN:define SUPPORT_DSN:" Local/Makefile - fi - - # use the "native" interface to the DBM library - echo "USE_DB=yes" >> Local/Makefile -} - -src_compile() { - emake -j1 CC="$(tc-getCC)" FULLECHO='' || die "make failed" -} - -src_install () { - cd "${S}"/build-exim-gentoo - exeinto /usr/sbin - doexe exim - if use X; then - doexe eximon.bin - doexe eximon - fi - fperms 4755 /usr/sbin/exim - - dodir /usr/bin /usr/sbin /usr/lib - - dosym exim /usr/sbin/sendmail - dosym exim /usr/sbin/rsmtp - dosym exim /usr/sbin/rmail - dosym /usr/sbin/exim /usr/bin/mailq - dosym /usr/sbin/exim /usr/bin/newaliases - dosym /usr/sbin/sendmail /usr/lib/sendmail - - exeinto /usr/sbin - for i in exicyclog exim_dbmbuild exim_dumpdb exim_fixdb exim_lock \ - exim_tidydb exinext exiwhat exigrep eximstats exiqsumm exiqgrep \ - convert4r3 convert4r4 exipick - do - doexe $i - done - - dodoc "${S}"/doc/* - doman "${S}"/doc/exim.8 - use dsn && dodoc "${S}"/README.DSN - - # conf files - insinto /etc/exim - newins "${S}"/src/configure.default.orig exim.conf.dist - if use exiscan-acl; then - newins "${S}"/src/configure.default exim.conf.exiscan-acl - fi - doins "${WORKDIR}"/system_filter.exim - doins "${FILESDIR}"/auth_conf.sub - - pamd_mimic system-auth exim auth account - - insinto /etc/logrotate.d - newins "${FILESDIR}/exim.logrotate" exim - - newinitd "${FILESDIR}"/exim.rc6 exim - - newconfd "${FILESDIR}"/exim.confd exim - - DIROPTIONS="--mode=0750 --owner=mail --group=mail" - dodir /var/log/${PN} -} - -pkg_postinst() { - einfo "${EROOT}etc/exim/system_filter.exim is a sample system_filter." - einfo "${EROOT}etc/exim/auth_conf.sub contains the configuration sub for using smtp auth." - einfo "Please create ${EROOT}etc/exim/exim.conf from ${EROOT}etc/exim/exim.conf.dist." - if use dcc ; then - einfo "DCC support is experimental, you can find some limited" - einfo "documentation at the bottom of this prerelease message:" - einfo "http://article.gmane.org/gmane.mail.exim.devel/3579" - fi -} diff --git a/mail-mta/exim/exim-4.75.ebuild b/mail-mta/exim/exim-4.76-r1.ebuild index 5f2ff7954b46..8853a02391c8 100644 --- a/mail-mta/exim/exim-4.75.ebuild +++ b/mail-mta/exim/exim-4.76-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.75.ebuild,v 1.2 2011/04/22 16:07:44 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/exim-4.76-r1.ebuild,v 1.1 2011/08/03 19:19:12 grobian Exp $ EAPI="3" @@ -51,7 +51,8 @@ RDEPEND="${DEPEND} !mail-mta/courier !mail-mta/esmtp !mail-mta/mini-qmail - !mail-mta/msmtp + !<mail-mta/msmtp-1.4.19-r1 + !>=mail-mta/msmtp-1.4.19-r1[mta] !mail-mta/nbsmtp !mail-mta/netqmail !mail-mta/nullmailer @@ -71,9 +72,17 @@ src_prepare() { epatch "${FILESDIR}"/exim-4.74-localscan_dlopen.patch epatch "${FILESDIR}"/exim-4.69-r1.27021.patch epatch "${FILESDIR}"/exim-4.74-radius-db-ENV-clash.patch # 287426 + epatch "${FILESDIR}"/exim-4.75-makefile-freebsd.patch + epatch "${FILESDIR}"/exim-4.76-as-needed.patch # 352265 + epatch "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591 use maildir && epatch "${FILESDIR}"/exim-4.20-maildir.patch - use dsn && epatch "${DISTDIR}"/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch + + if use dsn ; then + cp "${DISTDIR}"/exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch . || die + epatch "${FILESDIR}"/${P}-dsn.patch + epatch exim_${DSN_EXIM_V}_dsn_${DSN_V}.patch + fi } src_configure() { @@ -82,14 +91,11 @@ src_configure() { sed -i "/SYSTEM_ALIASES_FILE/ s'SYSTEM_ALIASES_FILE'${EPREFIX}/etc/mail/aliases'" "${S}"/src/configure.default cp "${S}"/src/configure.default "${S}"/src/configure.default.orig + sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile + sed -e "48i\CFLAGS=${CFLAGS}" \ - -e "s:# AUTH_CRAM_MD5=yes:AUTH_CRAM_MD5=yes:" \ - -e "s:# AUTH_PLAINTEXT=yes:AUTH_PLAINTEXT=yes:" \ -e "s:BIN_DIRECTORY=/usr/exim/bin:BIN_DIRECTORY=${EPREFIX}/usr/sbin:" \ - -e "s:COMPRESS_COMMAND=/usr/bin/gzip:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ - -e "s:ZCAT_COMMAND=/usr/bin/zcat:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ -e "s:CONFIGURE_FILE=/usr/exim/configure:CONFIGURE_FILE=${EPREFIX}/etc/exim/exim.conf:" \ - -e "s:EXIM_MONITOR=eximon.bin:# EXIM_MONITOR=eximon.bin:" \ -e "s:# INFO_DIRECTORY=/usr/local/info:INFO_DIRECTORY=${EPREFIX}/usr/share/info:" \ -e "s:# LOG_FILE_PATH=/var/log/exim_%slog:LOG_FILE_PATH=${EPREFIX}/var/log/exim/exim_%s.log:" \ -e "s:# PID_FILE_PATH=/var/lock/exim.pid:PID_FILE_PATH=${EPREFIX}/var/run/exim.pid:" \ @@ -98,14 +104,20 @@ src_configure() { -e "s:# SUPPORT_MAILSTORE=yes:SUPPORT_MAILSTORE=yes:" \ -e "s:EXIM_USER=:EXIM_USER=mail:" \ -e "s:# AUTH_SPA=yes:AUTH_SPA=yes:" \ - -e "s:^ZCAT_COMMAND.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ + -e "s:# AUTH_CRAM_MD5=yes:AUTH_CRAM_MD5=yes:" \ + -e "s:# AUTH_PLAINTEXT=yes:AUTH_PLAINTEXT=yes:" \ -e "s:# LOOKUP_PASSWD=yes:LOOKUP_PASSWD=yes:" \ + -e "s:EXIM_MONITOR=eximon.bin:# EXIM_MONITOR=eximon.bin:" \ + -e "s:ZCAT_COMMAND=.*$:ZCAT_COMMAND=${EPREFIX}/bin/zcat:" \ + -e "s:COMPRESS_COMMAND=.*$:COMPRESS_COMMAND=${EPREFIX}/bin/gzip:" \ src/EDITME > Local/Makefile + cd Local + # exiscan-acl is now integrated - enable it when use-flag set if use exiscan-acl; then - sed -i "s:# WITH_CONTENT_SCAN=yes:WITH_CONTENT_SCAN=yes:" Local/Makefile - sed -i "s:# WITH_OLD_DEMIME=yes:WITH_OLD_DEMIME=yes:" Local/Makefile + sed -i "s:# WITH_CONTENT_SCAN=yes:WITH_CONTENT_SCAN=yes:" Makefile + sed -i "s:# WITH_OLD_DEMIME=yes:WITH_OLD_DEMIME=yes:" Makefile elif (use spf || use srs ) then eerror SPF and SRS support require exiscan-acl to be enabled, please add eerror to your USE settings. @@ -114,15 +126,14 @@ src_configure() { if use spf; then myconf="${myconf} -lspf2" - sed -i "s:# EXPERIMENTAL_SPF=yes:EXPERIMENTAL_SPF=yes:" Local/Makefile + sed -i "s:# EXPERIMENTAL_SPF=yes:EXPERIMENTAL_SPF=yes:" Makefile mycflags="${mycflags} -DEXPERIMENTAL_SPF" fi if use srs; then myconf="${myconf} -lsrs_alt" - sed -i "s:# EXPERIMENTAL_SRS=yes:EXPERIMENTAL_SRS=yes:" Local/Makefile + sed -i "s:# EXPERIMENTAL_SRS=yes:EXPERIMENTAL_SRS=yes:" Makefile fi - cd Local # enable optional exim_monitor support via X use flag bug #46778 if use X; then einfo "Configuring eximon" @@ -150,7 +161,7 @@ src_configure() { myconf="${myconf} -lwrap" fi if use lmtp; then - sed -i "s:# \(TRANSPORT_LMTP=yes\):\1:" Makefile + sed -i "s:# TRANSPORT_LMTP=yes:TRANSPORT_LMTP=yes:" Makefile fi if use ipv6; then echo "HAVE_IPV6=YES" >> Makefile @@ -165,24 +176,23 @@ src_configure() { sed -i "s:# RADIUS_CONFIG_FILE=/etc/radiusclient/radiusclient.conf:RADIUS_CONFIG_FILE=${EPREFIX}/etc/radiusclient/radiusclient.conf:" Makefile sed -i "s:# RADIUS_LIB_TYPE=RADIUSCLIENT$:RADIUS_LIB_TYPE=RADIUSCLIENT:" Makefile fi - echo "EXTRALIBS=${myconf} ${LDFLAGS}" >> Makefile + echo "EXTRALIBS=${myconf}" >> Makefile # make iconv usage explicit echo "HAVE_ICONV=yes" >> Makefile # if we use libiconv, now is the time to tell so use !elibc_glibc && echo "EXTRALIBS_EXIM=-liconv" >> Makefile - cd "${S}" if use ssl; then sed -i \ - -e "s:# \(SUPPORT_TLS=yes\):\1:" Local/Makefile + -e "s:# \(SUPPORT_TLS=yes\):\1:" Makefile if use gnutls; then sed -i \ -e "s:# \(USE_GNUTLS=yes\):\1:" \ - -e "s:# \(TLS_LIBS=-lgnutls -ltasn1 -lgcrypt\):\1:" Local/Makefile + -e "s:# \(TLS_LIBS=-lgnutls -ltasn1 -lgcrypt\):\1:" Makefile else sed -i \ - -e "s:# \(TLS_LIBS=-lssl -lcrypto\):\1:" Local/Makefile + -e "s:# \(TLS_LIBS=-lssl -lcrypto\):\1:" Makefile fi fi @@ -192,72 +202,71 @@ src_configure() { if use ldap; then sed -i \ -e "s:# \(LOOKUP_LDAP=yes\):\1:" \ - -e "s:# \(LDAP_LIB_TYPE=OPENLDAP2\):\1:" Local/Makefile + -e "s:# \(LDAP_LIB_TYPE=OPENLDAP2\):\1:" Makefile LOOKUP_INCLUDE="-I${EROOT}usr/include/ldap" LOOKUP_LIBS="-lldap -llber" fi if use mysql; then - sed -i "s:# LOOKUP_MYSQL=yes:LOOKUP_MYSQL=yes:" Local/Makefile + sed -i "s:# LOOKUP_MYSQL=yes:LOOKUP_MYSQL=yes:" Makefile LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/mysql" LOOKUP_LIBS="$LOOKUP_LIBS -lmysqlclient" fi if use postgres; then - sed -i "s:# LOOKUP_PGSQL=yes:LOOKUP_PGSQL=yes:" Local/Makefile + sed -i "s:# LOOKUP_PGSQL=yes:LOOKUP_PGSQL=yes:" Makefile LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/postgresql" LOOKUP_LIBS="$LOOKUP_LIBS -lpq" fi if use sqlite; then - sed -i "s:# LOOKUP_SQLITE=yes: LOOKUP_SQLITE=yes:" Local/Makefile + sed -i "s:# LOOKUP_SQLITE=yes: LOOKUP_SQLITE=yes:" Makefile LOOKUP_INCLUDE="$LOOKUP_INCLUDE -I${EROOT}usr/include/sqlite" LOOKUP_LIBS="$LOOKUP_LIBS -lsqlite3" fi if [[ -n ${LOOKUP_INCLUDE} ]]; then sed -i "s:# LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include:LOOKUP_INCLUDE=$LOOKUP_INCLUDE:" \ - Local/Makefile + Makefile fi if [[ -n ${LOOKUP_LIBS} ]]; then sed -i "s:# LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds -lsqlite3:LOOKUP_LIBS=$LOOKUP_LIBS:" \ - Local/Makefile + Makefile fi - sed -i -e 's/^buildname=.*/buildname=exim-gentoo/g' Makefile - - sed -i "s:# LOOKUP_DSEARCH=yes:LOOKUP_DSEARCH=yes:" Local/Makefile + sed -i "s:# LOOKUP_DSEARCH=yes:LOOKUP_DSEARCH=yes:" Makefile if use dnsdb; then - sed -i "s:# LOOKUP_DNSDB=yes:LOOKUP_DNSDB=yes:" Local/Makefile + sed -i "s:# LOOKUP_DNSDB=yes:LOOKUP_DNSDB=yes:" Makefile fi - sed -i "s:# LOOKUP_CDB=yes:LOOKUP_CDB=yes:" Local/Makefile + sed -i "s:# LOOKUP_CDB=yes:LOOKUP_CDB=yes:" Makefile if use nis; then sed -i -e "s:# LOOKUP_NIS=yes:LOOKUP_NIS=yes:" \ - -e "s:# LOOKUP_NISPLUS=yes:LOOKUP_NISPLUS=yes:" Local/Makefile + -e "s:# LOOKUP_NISPLUS=yes:LOOKUP_NISPLUS=yes:" Makefile fi if use syslog; then - sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Local/Makefile + sed -i "s:LOG_FILE_PATH=/var/log/exim/exim_%s.log:LOG_FILE_PATH=syslog:" Makefile fi if ! use dkim; then # DKIM is enabled by default. We have to explicitly disable it. - echo "DISABLE_DKIM=yes">> Local/Makefile + echo "DISABLE_DKIM=yes">> Makefile fi if use dcc; then - echo "EXPERIMENTAL_DCC=yes">> Local/Makefile + echo "EXPERIMENTAL_DCC=yes">> Makefile fi if use dsn; then - sed -i -e "s:#define SUPPORT_DSN:define SUPPORT_DSN:" Local/Makefile + sed -i -e "s:#define SUPPORT_DSN:define SUPPORT_DSN:" Makefile fi # use the "native" interface to the DBM library - echo "USE_DB=yes" >> Local/Makefile + echo "USE_DB=yes" >> Makefile } src_compile() { - emake -j1 CC="$(tc-getCC)" FULLECHO='' || die "make failed" + emake -j1 CC="$(tc-getCC)" HOSTCC="$(tc-getCC $CBUILD)" FULLECHO='' \ + || die "make failed" } src_install () { @@ -305,7 +314,7 @@ src_install () { insinto /etc/logrotate.d newins "${FILESDIR}/exim.logrotate" exim - newinitd "${FILESDIR}"/exim.rc6 exim + newinitd "${FILESDIR}"/exim.rc7 exim newconfd "${FILESDIR}"/exim.confd exim diff --git a/mail-mta/exim/files/exim-4.43-r2-localscan_dlopen.patch b/mail-mta/exim/files/exim-4.43-r2-localscan_dlopen.patch deleted file mode 100644 index 146606a1fd0c..000000000000 --- a/mail-mta/exim/files/exim-4.43-r2-localscan_dlopen.patch +++ /dev/null @@ -1,259 +0,0 @@ -diff -Naur exim-4.32/src/EDITME exim-4.32-dlopen/src/EDITME ---- src/EDITME 2004-04-15 08:27:01.000000000 +0000 -+++ src/EDITME 2004-05-06 16:15:47.000000000 +0000 -@@ -505,6 +505,21 @@ - - - #------------------------------------------------------------------------------ -+# On systems which support dynamic loading of shared libraries, Exim can -+# load a local_scan function specified in its config file instead of having -+# to be recompiled with the desired local_scan function. For a full -+# description of the API to this function, see the Exim specification. -+ -+DLOPEN_LOCAL_SCAN=yes -+ -+# If you set DLOPEN_LOCAL_SCAN, then you need to include -rdynamic in the -+# linker flags. Without it, the loaded .so won't be able to access any -+# functions from exim. -+ -+LFLAGS=-rdynamic -ldl -+ -+ -+#------------------------------------------------------------------------------ - # The default distribution of Exim contains only the plain text form of the - # documentation. Other forms are available separately. If you want to install - # the documentation in "info" format, first fetch the Texinfo documentation -diff -Naur exim-4.32/src/config.h.defaults exim-4.32-dlopen/src/config.h.defaults ---- src/config.h.defaults 2004-04-15 08:27:01.000000000 +0000 -+++ src/config.h.defaults 2004-05-06 16:16:30.000000000 +0000 -@@ -20,6 +20,8 @@ - #define AUTH_PLAINTEXT - #define AUTH_SPA - -+#define DLOPEN_LOCAL_SCAN -+ - #define BIN_DIRECTORY - - #define CONFIGURE_FILE -diff -Naur exim-4.32/src/globals.c exim-4.32-dlopen/src/globals.c ---- src/globals.c 2004-04-15 08:27:01.000000000 +0000 -+++ src/globals.c 2004-05-06 16:17:07.000000000 +0000 -@@ -109,6 +109,10 @@ - uschar *tls_verify_hosts = NULL; - #endif - -+#ifdef DLOPEN_LOCAL_SCAN -+uschar *local_scan_path = NULL; -+#endif -+ - - /* Input-reading functions for messages, so we can use special ones for - incoming TCP/IP. The defaults use stdin. We never need these for any -diff -Naur exim-4.32/src/globals.h exim-4.32-dlopen/src/globals.h ---- src/globals.h 2004-04-15 08:27:01.000000000 +0000 -+++ src/globals.h 2004-05-06 16:17:50.000000000 +0000 -@@ -73,6 +73,9 @@ - extern uschar *tls_verify_hosts; /* Mandatory client verification */ - #endif - -+#ifdef DLOPEN_LOCAL_SCAN -+extern uschar *local_scan_path; /* Path to local_scan() library */ -+#endif - - /* Input-reading functions for messages, so we can use special ones for - incoming TCP/IP. */ -diff -Naur exim-4.32/src/local_scan.c exim-4.32-dlopen/src/local_scan.c ---- src/local_scan.c 2004-04-15 08:27:01.000000000 +0000 -+++ src/local_scan.c 2004-05-06 16:21:57.000000000 +0000 -@@ -5,60 +5,131 @@ - /* Copyright (c) University of Cambridge 1995 - 2004 */ - /* See the file NOTICE for conditions of use and distribution. */ - -+#include "exim.h" - --/****************************************************************************** --This file contains a template local_scan() function that just returns ACCEPT. --If you want to implement your own version, you should copy this file to, say --Local/local_scan.c, and edit the copy. To use your version instead of the --default, you must set -- --LOCAL_SCAN_SOURCE=Local/local_scan.c -- --in your Local/Makefile. This makes it easy to copy your version for use with --subsequent Exim releases. -- --For a full description of the API to this function, see the Exim specification. --******************************************************************************/ -- -- --/* This is the only Exim header that you should include. The effect of --including any other Exim header is not defined, and may change from release to --release. Use only the documented interface! */ -- --#include "local_scan.h" -- -- --/* This is a "do-nothing" version of a local_scan() function. The arguments --are: -- -- fd The file descriptor of the open -D file, which contains the -- body of the message. The file is open for reading and -- writing, but modifying it is dangerous and not recommended. -- -- return_text A pointer to an unsigned char* variable which you can set in -- order to return a text string. It is initialized to NULL. -- --The return values of this function are: -- -- LOCAL_SCAN_ACCEPT -- The message is to be accepted. The return_text argument is -- saved in $local_scan_data. -- -- LOCAL_SCAN_REJECT -- The message is to be rejected. The returned text is used -- in the rejection message. -- -- LOCAL_SCAN_TEMPREJECT -- This specifies a temporary rejection. The returned text -- is used in the rejection message. --*/ -+#ifdef DLOPEN_LOCAL_SCAN -+#include <dlfcn.h> -+static int (*local_scan_fn)(int fd, uschar **return_text) = NULL; -+static int load_local_scan_library(void); -+#endif - - int - local_scan(int fd, uschar **return_text) - { - fd = fd; /* Keep picky compilers happy */ - return_text = return_text; --return LOCAL_SCAN_ACCEPT; -+#ifdef DLOPEN_LOCAL_SCAN -+/* local_scan_path is defined AND not the empty string */ -+if (local_scan_path && *local_scan_path) -+ { -+ if (!local_scan_fn) -+ { -+ if (!load_local_scan_library()) -+ { -+ char *base_msg , *error_msg , *final_msg ; -+ int final_length = -1 ; -+ -+ base_msg=US"Local configuration error - local_scan() library failure\n"; -+ error_msg = dlerror() ; -+ -+ final_length = strlen(base_msg) + strlen(error_msg) + 1 ; -+ final_msg = (char*)malloc( final_length*sizeof(char) ) ; -+ *final_msg = '\0' ; -+ -+ strcat( final_msg , base_msg ) ; -+ strcat( final_msg , error_msg ) ; -+ -+ *return_text = final_msg ; -+ return LOCAL_SCAN_TEMPREJECT; -+ } -+ } -+ return local_scan_fn(fd, return_text); -+ } -+else -+#endif -+ return LOCAL_SCAN_ACCEPT; -+} -+ -+#ifdef DLOPEN_LOCAL_SCAN -+ -+static int load_local_scan_library(void) -+{ -+/* No point in keeping local_scan_lib since we'll never dlclose() anyway */ -+void *local_scan_lib = NULL; -+int (*local_scan_version_fn)(void); -+int vers_maj; -+int vers_min; -+ -+local_scan_lib = dlopen(local_scan_path, RTLD_NOW); -+if (!local_scan_lib) -+ { -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library open failed - " -+ "message temporarily rejected"); -+ return FALSE; -+ } -+ -+local_scan_version_fn = dlsym(local_scan_lib, "local_scan_version_major"); -+if (!local_scan_version_fn) -+ { -+ dlclose(local_scan_lib); -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain " -+ "local_scan_version_major() function - message temporarily rejected"); -+ return FALSE; -+ } -+ -+/* The major number is increased when the ABI is changed in a non -+ backward compatible way. */ -+vers_maj = local_scan_version_fn(); -+ -+local_scan_version_fn = dlsym(local_scan_lib, "local_scan_version_minor"); -+if (!local_scan_version_fn) -+ { -+ dlclose(local_scan_lib); -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain " -+ "local_scan_version_minor() function - message temporarily rejected"); -+ return FALSE; -+ } -+ -+/* The minor number is increased each time a new feature is added (in a -+ way that doesn't break backward compatibility) -- Marc */ -+vers_min = local_scan_version_fn(); -+ -+ -+if (vers_maj != LOCAL_SCAN_ABI_VERSION_MAJOR) -+ { -+ dlclose(local_scan_lib); -+ local_scan_lib = NULL; -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() has an incompatible major" -+ "version number, you need to recompile your module for this version" -+ "of exim (The module was compiled for version %d.%d and this exim provides" -+ "ABI version %d.%d)", vers_maj, vers_min, LOCAL_SCAN_ABI_VERSION_MAJOR, -+ LOCAL_SCAN_ABI_VERSION_MINOR); -+ return FALSE; -+ } -+else if (vers_min > LOCAL_SCAN_ABI_VERSION_MINOR) -+ { -+ dlclose(local_scan_lib); -+ local_scan_lib = NULL; -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() has an incompatible minor" -+ "version number, you need to recompile your module for this version" -+ "of exim (The module was compiled for version %d.%d and this exim provides" -+ "ABI version %d.%d)", vers_maj, vers_min, LOCAL_SCAN_ABI_VERSION_MAJOR, -+ LOCAL_SCAN_ABI_VERSION_MINOR); -+ return FALSE; -+ } -+ -+local_scan_fn = dlsym(local_scan_lib, "local_scan"); -+if (!local_scan_fn) -+ { -+ dlclose(local_scan_lib); -+ log_write(0, LOG_MAIN|LOG_REJECT, "local_scan() library doesn't contain " -+ "local_scan() function - message temporarily rejected"); -+ return FALSE; -+ } -+ -+return TRUE; - } - -+#endif /* DLOPEN_LOCAL_SCAN */ -+ - /* End of local_scan.c */ -diff -Naur exim-4.32/src/readconf.c exim-4.32-dlopen/src/readconf.c ---- src/readconf.c 2004-04-15 08:27:01.000000000 +0000 -+++ src/readconf.c 2004-05-06 16:23:12.000000000 +0000 -@@ -223,6 +223,9 @@ - { "local_from_prefix", opt_stringptr, &local_from_prefix }, - { "local_from_suffix", opt_stringptr, &local_from_suffix }, - { "local_interfaces", opt_stringptr, &local_interfaces }, -+#ifdef DLOPEN_LOCAL_SCAN -+ { "local_scan_path", opt_stringptr, &local_scan_path }, -+#endif - { "local_scan_timeout", opt_time, &local_scan_timeout }, - { "local_sender_retain", opt_bool, &local_sender_retain }, - { "localhost_number", opt_stringptr, &host_number_string }, diff --git a/mail-mta/exim/files/exim-4.74-makefile-command-envs.patch b/mail-mta/exim/files/exim-4.74-makefile-command-envs.patch deleted file mode 100644 index 30a1091f9f60..000000000000 --- a/mail-mta/exim/files/exim-4.74-makefile-command-envs.patch +++ /dev/null @@ -1,59 +0,0 @@ -From: Phil Pennock <pdp@exim.org> -Date: Fri, 28 Jan 2011 00:07:05 +0000 (-0500) -Subject: Permit make values to be indented or in env. -X-Git-Url: http://git.exim.org/exim.git/commitdiff_plain/0cc9542ab26b35cba3a5523acb8991eb18ce0656 - -Permit make values to be indented or in env. - -It appears some make(1)s are not complaining about variables defined -with leading whitespace on the line. Permit that where we can, for the -lookups, but it's not tenable for CFLAGS_DYNAMIC. - -Some people are specifying knobs on the make command-line, so we get -them via the environment. - -Tested: indented LOOKUP_CDB and commented out LOOKUP_DNSDB, supplying it -via { make LOOKUP_DNSDB=yes }. { exim -d --version } shows both are -built-in, no results from { fgrep DNSDB build-*/Makefile }. ---- - -diff --git a/src/scripts/lookups-Makefile b/src/scripts/lookups-Makefile -index dd0472b..d5c450e 100755 ---- a/src/scripts/lookups-Makefile -+++ b/src/scripts/lookups-Makefile -@@ -21,6 +21,9 @@ tab=' ' - # We always do something now, since there should always be a lookup, - # and now we need to run in order to put the OBJ=$(OBJ)+ rules in. - -+# nb: do not permit leading whitespace for this, as CFLAGS_DYNAMIC is exported -+# to the lookups subdir via a line with leading whitespace which otherwise -+# matches - if grep -q "^CFLAGS_DYNAMIC[ $tab]*=" "$defs_source" - then - # we have a definition, we're good to go -@@ -32,14 +35,23 @@ fi - - tmp="$target.t" - -+# For the want_ checks, we need to let the user override values from the make -+# command-line, not just check the Makefile. -+ - want_dynamic() { - local dyn_name="$1" -- grep -q "^LOOKUP_${dyn_name}[ $tab]*=[ $tab]*2" "$defs_source" -+ local re="LOOKUP_${dyn_name}[ $tab]*=[ $tab]*2" -+ env | grep -q "^$re" -+ if [ $? -eq 0 ]; then return 0; fi -+ grep -q "^[ $tab]*$re" "$defs_source" - } - - want_at_all() { - local want_name="$1" -- grep -q "^LOOKUP_${want_name}[ $tab]*=[ $tab]*." "$defs_source" -+ local re="LOOKUP_${want_name}[ $tab]*=[ $tab]*." -+ env | grep -q "^$re" -+ if [ $? -eq 0 ]; then return 0; fi -+ grep -q "^[ $tab]*$re" "$defs_source" - } - - # The values of these variables will be emitted into the Makefile. diff --git a/mail-mta/exim/files/exim-4.74-makefile-posix.patch b/mail-mta/exim/files/exim-4.74-makefile-posix.patch deleted file mode 100644 index 54cf0388a2f7..000000000000 --- a/mail-mta/exim/files/exim-4.74-makefile-posix.patch +++ /dev/null @@ -1,86 +0,0 @@ -From: Tony Finch <dot@dotat.at> -Date: Thu, 27 Jan 2011 16:26:36 +0000 (+0000) -Subject: Fix portability of Makefiles to HP-UX and other non-extended makes. -X-Git-Url: http://git.exim.org/exim.git/commitdiff_plain/159f52d231c010cbc4e149502b7f906293233f94 - -Fix portability of Makefiles to HP-UX and other non-extended makes. ---- - -diff --git a/src/scripts/lookups-Makefile b/src/scripts/lookups-Makefile -index 2c4dc96..dd0472b 100755 ---- a/src/scripts/lookups-Makefile -+++ b/src/scripts/lookups-Makefile -@@ -19,7 +19,7 @@ tag_marker='MAGIC-TAG-MODS-OBJ-RULES-GO-HERE' - tab=' ' - - # We always do something now, since there should always be a lookup, --# and now we need to run in order to put the OBJ+= rules in. -+# and now we need to run in order to put the OBJ=$(OBJ)+ rules in. - - if grep -q "^CFLAGS_DYNAMIC[ $tab]*=" "$defs_source" - then -@@ -42,6 +42,11 @@ want_at_all() { - grep -q "^LOOKUP_${want_name}[ $tab]*=[ $tab]*." "$defs_source" - } - -+# The values of these variables will be emitted into the Makefile. -+ -+MODS="" -+OBJ="" -+ - emit_module_rule() { - local lookup_name="$1" - local mod_name -@@ -59,13 +64,13 @@ emit_module_rule() { - echo >&2 "Inhibited dynamic modules prevents building dynamic $lookup_name" - exit 1 - fi -- echo "MODS += ${mod_name}.so" -+ MODS="${MODS} ${mod_name}.so" - grep "^LOOKUP_${lookup_name}_" "$defs_source" - echo "LOOKUP_${mod_name}_INCLUDE = \$(LOOKUP_${lookup_name}_INCLUDE)" - echo "LOOKUP_${mod_name}_LIBS = \$(LOOKUP_${lookup_name}_LIBS)" - elif want_at_all "$lookup_name" - then -- echo "OBJ += ${mod_name}.o" -+ OBJ="${OBJ} ${mod_name}.o" - fi - } - -@@ -83,9 +88,18 @@ done - - if want_at_all LDAP - then -- echo "OBJ += ldap.o" -+ OBJ="${OBJ} ldap.o" - fi - -+# Because the variable is EXPERIMENTAL_SPF and not LOOKUP_SPF we -+# always include spf.o and compile a dummy if EXPERIMENTAL_SPF is not -+# defined. -+ -+OBJ="${OBJ} spf.o" -+ -+echo "MODS = $MODS" -+echo "OBJ = $OBJ" -+ - sed -n "/$tag_marker/,\$p" < "$input" - - exec >&5 -diff --git a/src/src/lookups/Makefile b/src/src/lookups/Makefile -index 623f24f..2495348 100644 ---- a/src/src/lookups/Makefile -+++ b/src/src/lookups/Makefile -@@ -8,12 +8,6 @@ - # This is called from the main make file, after cd'ing - # to the lookups subdirectory. - --# because the variable is EXPERIMENTAL_SPF and not LOOKUP_SPF --# we put this one here by default and compile a dummy if --# EXPERIMENTAL_SPF is not defined --OBJ=spf.o --MODS= -- - # MAGIC-TAG-MODS-OBJ-RULES-GO-HERE - - diff --git a/mail-mta/exim/files/exim-4.74-pcre.patch b/mail-mta/exim/files/exim-4.74-pcre.patch deleted file mode 100644 index 361b03e75290..000000000000 --- a/mail-mta/exim/files/exim-4.74-pcre.patch +++ /dev/null @@ -1,29 +0,0 @@ -From: Nigel Metheringham <nigel@exim.org> -Date: Wed, 26 Jan 2011 11:04:32 +0000 (+0000) -Subject: Workround compile error with old PCRE versions -X-Git-Url: http://git.exim.org/exim.git/commitdiff_plain/aa097c4c00f62487128d74f65c521f9e877b184f - -Workround compile error with old PCRE versions - -Fixes bug #1073 ---- - -diff --git a/src/src/exim.c b/src/src/exim.c -index e236975..b3035ca 100644 ---- a/src/src/exim.c -+++ b/src/src/exim.c -@@ -931,8 +931,13 @@ DEBUG(D_any) do { - " Runtime: %s\n", - PCRE_MAJOR, PCRE_MINOR, - /* PRE_PRERELEASE is either defined and empty or a string. -- * This should work: */ -+ * unless its an ancient version of PCRE in which case it -+ * is not defined */ -+#ifdef PCRE_PRERELEASE - PCRE_PRERELEASE "", -+#else -+ "", -+#endif - pcre_version()); - - init_lookup_list(); diff --git a/mail-mta/exim/files/exim-4.75-CVE-2011-1764.patch b/mail-mta/exim/files/exim-4.75-CVE-2011-1764.patch deleted file mode 100644 index 2ce6ec039852..000000000000 --- a/mail-mta/exim/files/exim-4.75-CVE-2011-1764.patch +++ /dev/null @@ -1,33 +0,0 @@ -http://bugs.gentoo.org/show_bug.cgi?id=366369 - -From: Tom Kistner <tom@tahini.csx.cam.ac.uk> -Date: Sat, 30 Apr 2011 12:20:17 +0000 (+0100) -Subject: Bugzilla #1106: Don't pass DKIM compound log line as format string -X-Git-Tag: exim-4_76_RC1~2 -X-Git-Url: http://git.exim.org/exim.git/commitdiff_plain/337e3505b0e6cd4309db6bf6062b33fa56e06cf8 - -Bugzilla #1106: Don't pass DKIM compound log line as format string ---- - -diff --git a/src/src/dkim.c b/src/src/dkim.c -index e25ff8c..2318cc3 100644 ---- a/src/src/dkim.c -+++ b/src/src/dkim.c -@@ -108,7 +108,7 @@ void dkim_exim_verify_finish(void) { - /* Log a line for each signature */ - uschar *logmsg = string_append(NULL, &size, &ptr, 5, - -- string_sprintf( "DKIM: d=%s s=%s c=%s/%s a=%s ", -+ string_sprintf( "d=%s s=%s c=%s/%s a=%s ", - sig->domain, - sig->selector, - (sig->canon_headers == PDKIM_CANON_SIMPLE)?"simple":"relaxed", -@@ -176,7 +176,7 @@ void dkim_exim_verify_finish(void) { - } - - logmsg[ptr] = '\0'; -- log_write(0, LOG_MAIN, (char *)logmsg); -+ log_write(0, LOG_MAIN, "DKIM: %s", logmsg); - - /* Build a colon-separated list of signing domains (and identities, if present) in dkim_signers */ - dkim_signers = string_append(dkim_signers, diff --git a/mail-mta/exim/files/exim-4.76-crosscompile.patch b/mail-mta/exim/files/exim-4.76-crosscompile.patch new file mode 100644 index 000000000000..cf47adee6265 --- /dev/null +++ b/mail-mta/exim/files/exim-4.76-crosscompile.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/show_bug.cgi?id=266591 + +--- OS/Makefile-Base ++++ OS/Makefile-Base +@@ -114,8 +114,8 @@ + + # Targets for special-purpose configuration header builders + buildconfig: buildconfig.c +- @echo "$(CC) buildconfig.c" +- $(FE)$(CC) $(CFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS) ++ @echo "$(HOSTCC) buildconfig.c" ++ $(FE)$(HOSTCC) $(HOSTCFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS) + + + # Target for the exicyclog utility script diff --git a/mail-mta/exim/files/exim.rc7 b/mail-mta/exim/files/exim.rc7 new file mode 100644 index 000000000000..e594c954a30d --- /dev/null +++ b/mail-mta/exim/files/exim.rc7 @@ -0,0 +1,30 @@ +#!/sbin/runscript +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-mta/exim/files/exim.rc7,v 1.1 2011/08/03 19:19:12 grobian Exp $ + +opts="${opts} reload" + +depend() { + need logger + use antivirus net + provide mta +} + +start() { + ebegin "Starting ${SVCNAME}" + start-stop-daemon --start --quiet --exec /usr/sbin/exim --pidfile /var/run/${SVCNAME}.pid -- -C /etc/exim/${SVCNAME}.conf ${EXIM_OPTS:--bd -q15m} + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid --name exim + eend $? +} + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile /var/run/${SVCNAME}.pid --name exim + eend $? +} |