Comment 2 for bug 1022175

Revision history for this message
Vario Fox (variofox) wrote :

I followed the instructions on
https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracInstallation#Debianpackage
which are:
---
 wget ftp://ftp.sara.nl/pub/outgoing/email2trac.tar.gz
 tar -xzvf email2trac.tar.gz
 cd email2trac-1.6.0/
 #Now we need to install required packages to build the .deb file
 aptitude install build-essential cdbs chrpath
 dpkg-buildpackage -B

#Read the output and if everything went ok the folder should have .deb file.
 cd ../
 dpkg -i email2trac_X.XX.XX-XX_amd64.deb
---

The resulting run_email2trac executable in the debian package was configured with the incorrect defaults:
prefix=/usr/local --- has to be /usr/
exec_prefix=$prefix/bin
sysconfdir=$prefix/etc --- has to be /etc
MTA_USER=nobody --- has to be fetchmail
TRAC_USER=www-data

Of course, on ubuntu these values are different, so I hat to execute
 ./configure --with-mta_user=fetchmail --with-trac_user=www-data --prefix=/usr --sysconfdir=/etc

buildpackage executes a make clean (resetting the above config change), so it is not directly possible to build a correct debian package.

After executing configure as above, I compiled using "make" and copied the newly compiled run_email2trac to /usr/bin/run_email2trac
 cp run_email2trac /usr/bin/

This now works.

For more info, see also my attempts to use email2trac with an older version of ubuntu
https://subtrac.sara.nl/oss/email2trac/ticket/263