wiki:Email2tracInstallation

Version 21 (modified by Tolan Blundell, 14 years ago) (diff)

--

Installation

First get the latest stable source of the package from:

Contains

The email2trac package contains the following utilities:

email2trac::

Converts an email to ticket. Reads a config file email2trac.conf

run_email2trac::

Suid program that changes the MTA-user to the TRAC-user so that we can save attachments

delete_spam::

A small program that deletes the SPAM tickets from the database

email2trac.conf::

Configuration file to set the behavior for email2trac.

Build process

Warning Icon Image Pay attention to the MTA_USER and TRAC_USER, they are not something you can ignore!

Unpack the tarball. There are 3 methods to build the package:

  • No package manager, builds default for /usr/local
    ./configure (see --help)
        default values for:
           prefix=/usr/local        --> --prefix=<path>
           exec_prefix=$prefix/bin  --> --exec_prefix=<path>
           sysconfdir=$prefix/etc   --> --sysconfdir=<path>
           MTA_USER=nobody          --> --with-mta_user=<name>
           TRAC_USER=www-data       --> --with-trac_user=<name>
    make
    make install
    
  • Debian package:
    debian/rules binary
    dpkg -i ../email2trac_<version>.deb
    NOTE:  It uses the defaults settings for MTA_USER and TRAC_USERS as mentioned above
    
  • RPM package
    cp email2trac.tar.gz /usr/src/redhat/SOURCES
    rpmbuild -ba email2trac.spec
    
  • RPM package instructions incomplete. The above didn't work for me, I had to do the following (as root or using sudo). You can set the TRAC_USER and MTA_USER values by editing lines 37 and 51 of configure.in and re-tarring the tar file before copying it to the SOURCES directory. There may be a better way but I can't find it. - Tolan Blundell slight_ at hotmail dot com.
    tar zxvf email2trac.tar.gz
    // Edit email2trac-0.13/email2trac.spec and change the 3rd line from "Version: 0.13.0" to "Version: 0.13"
    cp -R email2trac-0.13/ /usr/src/redhat/SOURCES
    cp -R email2trac.tar.gz /usr/src/redhat/SOURCES
    cd /usr/src/redhat/SOURCES
    rpmbuild -ba email2trac-0.13/email2trac.spec
    

Attachments (1)

Download all attachments as: .zip