Instruction pour 0.9

Faire la procédure de 0.9 avec

export ICEDOVEVER=2.0.0.16
export LIGHTNINGVER=0.9
# ...
apt-get install libssl0.9.8 unzip wget

Instruction pour 0.8

pbuilder login
export ICEDOVEVER=2.0.0.14
export LIGHTNINGVER=0.8
sed -i s/^#// /etc/apt/sources.list
apt-get update
apt-get install wget unzip
apt-get build-dep icedove
apt-get source icedove
cd icedove-$ICEDOVEVER; tar xjf icedove-$ICEDOVEVER-source.tar.bz2
wget http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/$LIGHTNINGVER/source/lightning-sunbird-$LIGHTNINGVER-source.tar.bz2
tar xjf lightning-sunbird-$LIGHTNINGVER-source.tar.bz2 mozilla/calendar
rm icedove-$ICEDOVEVER-source.tar.bz2
tar cjf icedove-$ICEDOVEVER.tar.bz2 mozilla/ # this is for debian building...
rm lightning-sunbird-$LIGHTNINGVER-source.tar.bz2
sed -i "s/--enable-extensions=default /--enable-extensions=default,lightning/" debian/rules

debian/rules binary

cd build-tree/mozilla/dist/xpi-stage/
wget http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/$LIGHTNINGVER/lightning-$LIGHTNINGVER.linux-i686.xpi
mkdir tmp; cd tmp;unzip ../lightning.xpi; unzip ../lightning-$LIGHTNINGVER.linux-i686.xpi 
# et accepter toutes les modifications dans chrome/ (et aussi chrome.manifest) 
# après le chrome.manifest c'est [N]one pour tous les autres.

zip -r ../lightning-$LIGHTNINGVER-icedove-i686.xpi .
# # Quand tout ceci est enfin fini, recopier (depuis l'extérieur du chroot créé par pbuilder) le fichier qui se 
# # trouve dans .../icedove-$ICEDOVEVER/build-tree/mozilla/dist/xpi-stage/lightning-$LIGHTNINGVER-icedove-i686.xpi. L'installer 
# # dans Icedove (Tools → Add-ons → Install ou Outils → Modules complémentaires → Installer). Servir frais.

# # Exemple: /var/cache/pbuilder/build/11540/icedove-$ICEDOVEVER/build-tree/mozilla/dist/xpi-stage/lightning-$LIGHTNINGVER-icedove-i686.xpi

Compilation de la version 0.7

# pbuilder create --distribution sid
# #create the file /var/cache/pbuilder/base.tgz

# pbuilder update

# pbuilder login
# sed -i s/^#// /etc/apt/sources.list
# apt-get update
# apt-get install wget unzip
# apt-get build-dep icedove
# # adduser autotools-dev bsdmainutils cdbs dbus debhelper defoma diffstat esound-common file fontconfig fontconfig-config gconf2 gconf2-common gettext
  gettext-base gnome-mime-data groff-base html2text intltool-debian libart-2.0-2 libart-2.0-dev libatk1.0-0 libatk1.0-dev libaudiofile-dev libaudiofile0
  libavahi-client-dev libavahi-client3 libavahi-common-data libavahi-common-dev libavahi-common3 libavahi-glib-dev libavahi-glib1 libbonobo2-0
  libbonobo2-common libbonobo2-dev libbonoboui2-0 libbonoboui2-common libbonoboui2-dev libcairo2 libcairo2-dev libcupsys2 libdatrie0 libdb4.5 libdbus-1-3
  libdbus-1-dev libdbus-glib-1-2 libesd0 libesd0-dev libexpat1 libexpat1-dev libfam0 libfontconfig1 libfontconfig1-dev libfreetype6 libfreetype6-dev
  libgail-common libgail-dev libgail18 libgconf2-4 libgconf2-dev libgcrypt11-dev libglade2-0 libglade2-dev libglib2.0-0 libglib2.0-dev
  libgnome-keyring-dev libgnome-keyring0 libgnome2-0 libgnome2-common libgnome2-dev libgnomecanvas2-0 libgnomecanvas2-common libgnomecanvas2-dev
  libgnomeui-0 libgnomeui-common libgnomeui-dev libgnomevfs2-0 libgnomevfs2-common libgnomevfs2-dev libgnutls-dev libgomp1 libgpg-error-dev libgtk2.0-0
  libgtk2.0-common libgtk2.0-dev libhal-dev libhal-storage-dev libhal-storage1 libhal1 libhunspell-1.1-0 libhunspell-dev libice-dev libice6 libidl-dev
  libidl0 libjpeg62 libjpeg62-dev libkeyutils1 libkrb53 libmagic1 libnewt0.52 libnspr4-0d libnspr4-dev libnss3-1d libnss3-dev libopencdk10-dev liborbit2
  liborbit2-dev libpango1.0-0 libpango1.0-common libpango1.0-dev libpcre3 libpng12-0 libpng12-dev libpopt-dev libpopt0 libselinux1-dev libsepol1-dev
  libsm-dev libsm6 libsqlite3-0 libtasn1-3-dev libthai-data libthai0 libtiff4 libx11-6 libx11-data libx11-dev libxau-dev libxau6 libxcomposite-dev
  libxcomposite1 libxcursor-dev libxcursor1 libxdamage-dev libxdamage1 libxdmcp-dev libxdmcp6 libxext-dev libxext6 libxfixes-dev libxfixes3 libxft-dev
  libxft2 libxi-dev libxi6 libxinerama-dev libxinerama1 libxml2 libxml2-dev libxrandr-dev libxrandr2 libxrender-dev libxrender1 libxt-dev libxt6 m4 man-db
  mime-support patchutils pkg-config po-debconf psmisc python python-minimal python2.4 python2.4-minimal quilt shared-mime-info sharutils ttf-dejavu
  ttf-dejavu-core ttf-dejavu-extra ucf whiptail x11-common x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev
  x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev xtrans-dev zip zlib1g-dev
# apt-get source icedove

# cd icedove-2.0.0.9; tar xjf icedove-source-2.0.0.9.tar.bz2

# # modifier le fichier qui bug avec icedove 2.0.0.9 en changeant la déclaration deux lignes plus hautes.
# cd mozilla/security/manager/ssl/src/
# vim nsKeygenHandler.cpp
# # Mettre le block DERTemplate SECAlgorithmIDTemplate[] = { } à la ligne 78, avant la variable CERTSubjectPublicKeyInfoTemplate.

# cd ../../../../../
# wget http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/0.7/source/lightning-sunbird-0.7-source.tar.bz2
# tar xjf lightning-sunbird-0.7-source.tar.bz2 mozilla/calendar
# rm icedove-2.0.0.9.tar.bz2;tar cjf icedove-2.0.0.9.tar.bz2 mozilla/;rm lightning-sunbird-0.7-source.tar.bz2

# sed -i "s/--enable-extensions=default /--enable-extensions=default,lightning/" debian/rules
# debian/rules binary

# cd build-tree/mozilla/dist/xpi-stage/
# wget http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/0.7/lightning-0.7.linux-i686.xpi
# mkdir tmp; cd tmp;unzip ../lightning.xpi; unzip ../lightning-0.7.linux-i686.xpi 
# # et accepter toutes les modifications dans chrome/ (et aussi chrome.manifest) 
# # après le chrome.manifest c'est [N]one pour tous les autres.

# zip -r ../lightning-0.7-icedove-i686.xpi .
# # Quand tout ceci est enfin fini, recopier (depuis l'extérieur du chroot créé par pbuilder) le fichier qui se 
# # trouve dans .../icedove-2.0.0.6/build-tree/mozilla/dist/xpi-stage/lightning-0.7-icedove-i686.xpi. L'installer 
# # dans Icedove (Tools → Add-ons → Install ou Outils → Modules complémentaires → Installer). Servir frais.

# # Exemple: /var/cache/pbuilder/build/11540/icedove-2.0.0.9/build-tree/mozilla/dist/xpi-stage/lightning-0.7-icedove-i686.xpi