42 cards
View
Posted 12 days ago. Visible to the public.

Build and install exim4-daemon-custom on Ubuntu 16.04

Unfortunately I couldn't find a complete and working documentation on how to do this. But this steps succeeded (at least once).

  1. Install build dependencies

    Copy
    $ apt-get install pbuilder devscripts dpatch grep-dctrl debhelper
  2. Add deb-src sources to apt sources list (if you don't have it yet)

    Copy
    deb-src http://security.ubuntu.com/ubuntu xenial-security main universe multiverse restricted
  3. Start the process:

    Copy
    $ mkdir exim $ apt-get source exim4 $ cd exim4-4.86.2 $ fakeroot debian/rules unpack-configs $ export my_pkg_name=custom $ cp EDITME.exim4-heavy EDITME.exim4-$my_pkg_name # edit the configuration and add/remove the features you want or don't want $ vi EDITME.exim4-$my_pkg_name # uncomment the two blocks which define the exim4-daemon-custom packages $ vi debian/control # in debian/rules after this line: # # cp EDITME.exim4-custom $(<D)/Local/Makefile # # which is line 229 when I did this, add this line to debian/rules # # cp EDITME.eximon $(<D)/Local/eximon.conf # $ vi debian/rules # Without this step, the following command doesn't work $ cp -a exim_monitor/EDITME EDITME.eximon $ fakeroot debian/rules pack-configs $ debuild -us -uc
  4. Now you should have the build packages:

    Copy
    $ ls -l ../ total 7968 drwxr-xr-x 16 root root 4096 Sep 9 22:08 exim4-4.86.2 -rw-r--r-- 1 root root 7914 Sep 9 22:09 exim4_4.86.2-2ubuntu2.5_all.deb -rw-r--r-- 1 root root 140620 Sep 9 22:09 exim4_4.86.2-2ubuntu2.5_amd64.build -rw-r--r-- 1 root root 5251 Sep 9 22:09 exim4_4.86.2-2ubuntu2.5_amd64.changes -rw-r--r-- 1 root root 452428 Sep 9 22:07 exim4_4.86.2-2ubuntu2.5.debian.tar.xz -rw-r--r-- 1 root root 2160 Sep 9 22:07 exim4_4.86.2-2ubuntu2.5.dsc -rw-r--r-- 1 root root 1799316 Mar 16 2016 exim4_4.86.2.orig.tar.bz2 -rw-r--r-- 1 root root 1061780 Sep 9 22:09 exim4-base_4.86.2-2ubuntu2.5_amd64.deb -rw-r--r-- 1 root root 372138 Sep 9 22:09 exim4-config_4.86.2-2ubuntu2.5_all.deb -rw-r--r-- 1 root root 585558 Sep 9 22:09 exim4-daemon-custom_4.86.2-2ubuntu2.5_amd64.deb -rw-r--r-- 1 root root 1370962 Sep 9 22:09 exim4-daemon-custom-dbg_4.86.2-2ubuntu2.5_amd64.deb -rw-r--r-- 1 root root 540776 Sep 9 22:09 exim4-daemon-light_4.86.2-2ubuntu2.5_amd64.deb -rw-r--r-- 1 root root 1214298 Sep 9 22:09 exim4-daemon-light-dbg_4.86.2-2ubuntu2.5_amd64.deb -rw-r--r-- 1 root root 358268 Sep 9 22:09 exim4-dbg_4.86.2-2ubuntu2.5_amd64.deb -rw-r--r-- 1 root root 89000 Sep 9 22:09 exim4-dev_4.86.2-2ubuntu2.5_amd64.deb -rw-r--r-- 1 root root 119946 Sep 9 22:09 eximon4_4.86.2-2ubuntu2.5_amd64.deb
  5. Install it:

    Copy
    $ dpkg -i ../exim4-daemon-custom_4.86.2-2ubuntu2.5_amd64.deb
  6. Remove the build-dependencies:

    Copy
    $ apt-get remove pbuilder devscripts dpatch grep-dctrl debhelper $ apt-get autoremove

Sources:

Owner of this card:

Avatar
Kim Jahn
Last edit:
12 days ago
by Kim Jahn
This website uses cookies to improve usability and analyze traffic.
Accept or learn more