Next Previous Contents

3.2 With debian

  1. Make sure to have all the needed tools to compile courier
    # apt-get install dpkg-dev
    # apt-get install gcc make patch g++
    
  2. Get the source for courier with
    # apt-get source courier
    
  3. Get the packages needed to build courier
    # apt-get build-dep courier
    
  4. Apply the patch
    # cd courier_0.x.x.orig
    # cat ../courier_patch/courier_0.x.x | patch -p1
    
    Remember to always apply the patch provided with debian before any other patch (in this case, apt-get source takes care of that).
  5. Build a brand new debian package
    # dpkg-buildpackage
    
  6. Install the needed packages
    # dpkg -i ./courier-imap_0.x.x.deb
    # dpkg -i ./courier-pop3_0.x.x.deb
    # dpkg -i ./courier-authdaemon_0.x.x.deb
    # dpkg -i ./courier-authmysql_0.x.x.deb
    
  7. Watch out! the next time you'll use apt-get update, this package will be overwritten! You may want to wait for the patch to be available as .deb on my own site or use the pin mechanism provided by apt-get (look at apt_preferences(5))... this is just a fast and easy method to compile courier without having to deal with configure scripts and stuff like that...


Next Previous Contents