Philip Unglert - 2015-12-09

Hi there,

please find attached a tutorial for installation of LibrePlan 1.4.0-1 in combination with tomcat7. We installed LibrePlan on a RaspberryPi with Debian Jessie. Our starting-point was a tutorial we found here.

We started with updating and upgrading our system:

sudo apt-get update
sudo apt-get upgrade

Next, we downloaded LibrePlan and unpacked it:

wget http://sourceforge.net/projects/libreplan/files/LibrePlan/libreplan_1.4.0-1_i386.deb
ar vx libreplan_1.4.0-1_i386.deb

As our RaspberryPi has a armhf-architecture (and not a i386), we created a new directory where we unpacked the control- and data-directory to:

mkdir -p libreplan_1.4.0-1_armhf/DEBIAN
tar -C libreplan_1.4.0-1_armhf/DEBIAN/ -xvf control.tar.gz
tar -C libreplan_1.4.0-1_armhf -xvf data.tar.gz

Afterwards, we changed the architecture from i386 to armhf with:

sed -i 's/Architecture: .*/Architecture: armhf/' libreplan1.4.0-1armhf/DEBIAN/control

We had a look to every file / folder which is related to tomcat6 and changed the corresponding entry from tomcat6 to tomcat7:

sed -i 's/tomcat6/tomcat7/' libreplan_1.4.0-1_armhf/DEBIAN/postinst
sed -i 's/tomcat6/tomcat7/' libreplan_1.4.0-1_armhf/DEBIAN/postrm
sed -i 's/tomcat6/tomcat7/' libreplan_1.4.0-1_armhf/DEBIAN/prerm
sed -i 's/tomcat6/tomcat7/' libreplan_1.4.0-1_armhf/DEBIAN/md5sums
sed -i 's/tomcat6/tomcat7/' libreplan_1.4.0-1_armhf/DEBIAN/conffiles
sed -i 's/tomcat6/tomcat7/' libreplan_1.4.0-1_armhf/DEBIAN/control

cd libreplan_1.4.0-1_armhf/etc/tomcat6/policy.d/
sed -i 's/tomcat6/tomcat7/' 51libreplan.policy
cd ../../../..

sudo mv libreplan_1.4.0-1_armhf/var/lib/tomcat6/ libreplan_1.4.0-1_armhf/var/lib/tomcat7/
sudo mv libreplan_1.4.0-1_armhf/etc/tomcat6/ libreplan_1.4.0-1_armhf/etc/tomcat7/

The last step was to pack the directory to a new deb-packe:

sudo dpkg-deb -b libreplan_1.4.0-1_armhf/

We installed the prerequisites and LibrePlan with:

udo dpkg-deb -b libreplan_1.4.0-1_armhf/
sudo apt-get install cutycapt postgresql postgresql-client xvfb dbconfig-common default-jre default-jre-headless libpg-java tomcat7
sudo apt-get install -f
sudo dpkg -i libreplan_1.4.0-1_armhf.deb

After these steps, we were able to launch LibrePlan.

Regards, Phil