Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489736 - mail-mta/exim - add support for redis lookup, TPDA and PRDR
Summary: mail-mta/exim - add support for redis lookup, TPDA and PRDR
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Fabian Groffen
URL:
Whiteboard:
Keywords: KEYWORDREQ, PATCH
Depends on:
Blocks:
 
Reported: 2013-10-29 10:06 UTC by Marcin Mirosław
Modified: 2014-05-29 17:50 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2013-10-29 10:06:47 UTC
Please add support for mentioned functions. Here is diff for ebuild I've prepared:

--- exim-4.82.ebuild    2013-10-28 18:49:40.000000000 +0100
+++ exim-4.82-r1.ebuild 2013-10-29 10:39:55.451853338 +0100
@@ -6,7 +6,7 @@
 
 inherit eutils toolchain-funcs multilib pam systemd
 
-IUSE="tcpd ssl postgres mysql ldap pam exiscan-acl lmtp ipv6 sasl dnsdb perl mbx X nis selinux syslog spf srs gnutls sqlite doc dovecot-sasl radius maildir +dkim dcc dsn dlfunc dmarc"
+IUSE="redis prdr tpda tcpd ssl postgres mysql ldap pam exiscan-acl lmtp ipv6 sasl dnsdb perl mbx X nis selinux syslog spf srs gnutls sqlite doc dovecot-sasl radius maildir +dkim dcc dsn dlfunc dmarc"
 REQUIRED_USE="spf? ( exiscan-acl ) srs? ( exiscan-acl ) dmarc? ( spf dkim )"
 
 DSN_EXIM_V=482  # local version patched by us
@@ -36,6 +36,7 @@
        ldap? ( >=net-nds/openldap-2.0.7 )
        mysql? ( virtual/mysql )
        postgres? ( dev-db/postgresql-base )
+       redis? ( dev-libs/hiredis )
        sasl? ( >=dev-libs/cyrus-sasl-2.1.26-r2 )
        selinux? ( sec-policy/selinux-exim )
        spf? ( >=mail-filter/libspf2-1.2.5-r1 )
@@ -243,6 +244,11 @@
                LOOKUP_LIBS="$LOOKUP_LIBS -L$(pg_config --libdir) -lpq"
        fi
 
+       if use redis; then
+               sed -i "s:# EXPERIMENTAL_REDIS=yes:EXPERIMENTAL_REDIS=yes:" Makefile
+               LOOKUP_LIBS="$LOOKUP_LIBS -lhiredis"
+       fi
+
        if use sqlite; then
                echo "LOOKUP_SQLITE=yes" >> Makefile
                echo "LOOKUP_SQLITE_PC=sqlite3" >> Makefile
@@ -285,6 +291,13 @@
        if use dlfunc; then
                sed -i -e "/^# EXPAND_DLFUNC=yes/s/^# //" Makefile
        fi
+       if use prdr; then
+               sed -i -e "s:# EXPERIMENTAL_PRDR=yes:EXPERIMENTAL_PRDR=yes:" Makefile
+       fi
+       if use tpda; then
+               sed -i -e "s:# EXPERIMENTAL_TPDA=yes:EXPERIMENTAL_TPDA=yes:" Makefile
+       fi
+
 
        # use the "native" interface to the DBM library
        echo "USE_DB=yes" >> Makefile
Comment 1 Marcin Mirosław 2013-12-04 13:51:44 UTC
Hi Fabian!
Is there estimated time to add or reject those features?
Comment 2 Fabian Groffen gentoo-dev 2013-12-04 14:42:27 UTC
No ETA, I forgot about this bug.  I see no problems with adding the support.
Comment 3 Marcin Mirosław 2014-03-02 17:47:22 UTC
It's a just friendly reminder about this bug;)
Comment 4 Fabian Groffen gentoo-dev 2014-03-03 19:37:36 UTC
Because of dev-libs/hiredis dependency, I had to drop ~hppa and ~x86-fbsd.

@hppa: your profile explicitly mentions not to touch package.use.mask, so please keyword or mask USE=redis accordingly at your earliest convenience.

@x86-fbsd: basically same applies although you don't have restrictions mentioned :)

Thanks
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-03-03 23:43:03 UTC
Marked ~hppa. CC'ing remaining arch teams.
Comment 6 Marcin Mirosław 2014-03-04 08:59:21 UTC
Thanks Fabian! What about TPDA and PRDR? Is it planned for next -rX?
Comment 7 Fabian Groffen gentoo-dev 2014-03-04 09:06:00 UTC
oh, I think I unintentionally forgot about those.
Comment 8 Naohiro Aota gentoo-dev 2014-03-04 21:22:22 UTC
Marked ~x86-fbsd.
Comment 9 Fabian Groffen gentoo-dev 2014-05-29 17:50:36 UTC
Something went wrong here, will request for keywords once 4.83 is stable.