Exim bauen

Aus MvOWiki
Zur Navigation springen Zur Suche springen

Exim4 unter Debian Squeeze / Lenny / Sarge / Etch bzw. Backports bauen

Zusätzliche Pakete müssen installiert werden. Dazu kann man beispielsweise /usr/lib/pbuilder/pbuilder-satisfydepends verwenden. *Vorsicht!* Das installiert in diesem Falle ungewollterweise X11 Komponenten.

# apt-get source exim4
# cd exim4-4.72
# fakeroot debian/rules unpack-configs
# cp EDITME.exim4-light EDITME.exim4-custom
# vi EDITME.exim4-custom
# fakeroot debian/rules pack-configs
# debuild

Änderungen

--- EDITME.exim4-light	2009-02-19 00:54:49.000000000 +0100
+++ EDITME.exim4-custom	2009-02-19 00:54:49.000000000 +0100
@@ -267,7 +267,7 @@
 LOOKUP_DSEARCH=yes
 # LOOKUP_IBASE=yes
 # LOOKUP_LDAP=yes
-# LOOKUP_MYSQL=yes
+LOOKUP_MYSQL=yes
 LOOKUP_NIS=yes
 # LOOKUP_NISPLUS=yes
 # LOOKUP_ORACLE=yes
@@ -310,7 +310,9 @@
 # PostgreSQL, -lgds is for Interbase, -lsqlite3 is for SQLite.
  
 # LOOKUP_INCLUDE=-I /usr/local/ldap/include -I /usr/local/mysql/include -I /usr/local/pgsql/include
+LOOKUP_INCLUDE=-I /usr/include/mysql
 # LOOKUP_LIBS=-L/usr/local/lib -lldap -llber -lmysqlclient -lpq -lgds -lsqlite3
+LOOKUP_LIBS=-L/usr/lib -lmysqlclient
   
   
 #------------------------------------------------------------------------------
@@ -476,7 +478,7 @@
   
 AUTH_CRAM_MD5=yes
 # AUTH_CYRUS_SASL=yes
-# AUTH_DOVECOT=yes
+AUTH_DOVECOT=yes
 AUTH_PLAINTEXT=yes
 # AUTH_SPA=yes

Building Custom packages broken in Jessie, Stretch for Exim 4.89

In Jessie, Stretch building custom Exim4 packages is broken (See Debian error #783813).

The following steps have to be taken in addtion to the steps above:

  • Edit debian/control file and uncomment the exim4-daemon-custom packages.
  • Add a line in debian/rules to create the missing Local/eximon.conf. This is not completely necessary. There is an error message during debian/rules pack-configs but the nevetheless the package builds successfully.
diff -Nur exim4-4.89/debian/rules exim4-4.89.custom/debian/rules
--- exim4-4.89/debian/rules     2017-02-18 18:20:49.000000000 +0100
+++ exim4-4.89.custom/debian/rules      2017-09-07 10:10:09.987007448 +0200
@@ -219,6 +219,7 @@
        rm -rf $(@D)
        mkdir -p $(<D)/Local
        cp EDITME.exim4-custom $(<D)/Local/Makefile
+       cp EDITME.eximon $(<D)/Local/eximon.conf
        cd $(<D) && $(MAKE) FULLECHO=''