Last change
on this file since 31 was
24,
checked in by bas, 17 years ago
|
EmailtoTracScript?:
email2trac:
- we can now set the default poth for the config file
with configure for email2trac.py
- Added svn keywords for all the files
- Updated the install doc
|
-
Property svn:keywords set to
Id
|
File size:
1.6 KB
|
Rev | Line | |
---|
[24] | 1 | # |
---|
| 2 | # Author: Bas van der Vlies <basv@sara.nl> |
---|
| 3 | # Desc. : Simple configure script for email2trac package |
---|
| 4 | # SVN INFO: |
---|
| 5 | # $Id: configure.in 24 2006-01-15 12:46:09Z bas $ |
---|
| 6 | # |
---|
| 7 | # |
---|
[23] | 8 | AC_INIT(email2trac.py.in) |
---|
[21] | 9 | AC_SUBST(prefix) |
---|
| 10 | AC_SUBST(exec_prefix) |
---|
| 11 | AC_SUBST(pyexecdir) |
---|
[22] | 12 | AC_SUBST(trac_user) |
---|
| 13 | AC_SUBST(mta_user) |
---|
[24] | 14 | AC_SUBST(sysconfdir) |
---|
[21] | 15 | |
---|
| 16 | AM_PATH_PYTHON |
---|
[22] | 17 | AC_PROG_GCC_TRADITIONAL |
---|
[21] | 18 | |
---|
[24] | 19 | # Now a user can specify the TRAC user |
---|
| 20 | # |
---|
[22] | 21 | AC_ARG_WITH(trac_user, |
---|
| 22 | [ |
---|
| 23 | --with-trac_user=USER Specify the name of the user that trac use, |
---|
| 24 | default=www-data], |
---|
| 25 | |
---|
| 26 | [case "${withval}" in |
---|
| 27 | *) trac_user="${withval}" ;; |
---|
| 28 | esac], |
---|
| 29 | |
---|
| 30 | [trac_user="www-data"] |
---|
| 31 | )dnl |
---|
| 32 | |
---|
[24] | 33 | # Now a user can specify MTA TRAC user |
---|
| 34 | # |
---|
[22] | 35 | AC_ARG_WITH(mta_user, |
---|
| 36 | [ |
---|
| 37 | --with-mta_user=USER Specify the name of the user that your MTA use, |
---|
| 38 | default=nobody], |
---|
| 39 | |
---|
| 40 | [case "${withval}" in |
---|
| 41 | *) mta_user="${withval}" ;; |
---|
| 42 | esac], |
---|
| 43 | |
---|
| 44 | [mta_user="nobody"] |
---|
| 45 | )dnl |
---|
[24] | 46 | |
---|
| 47 | dnl ##### Path to email2trac.conf |
---|
| 48 | dnl This ugly kludge to get the sysconfdir path is needed because |
---|
| 49 | dnl autoconf doesn't actually set the prefix variable until later. |
---|
| 50 | if test "$sysconfdir" = '${prefix}/etc'; then |
---|
| 51 | if test "x$prefix" = xNONE; then |
---|
| 52 | email2trac_conf="$ac_default_prefix/etc/email2trac.conf" |
---|
| 53 | else |
---|
| 54 | email2trac_conf="$prefix/etc/email2trac.conf" |
---|
| 55 | fi |
---|
| 56 | else |
---|
| 57 | email2trac_conf="$sysconfdir/email2trac.conf" |
---|
| 58 | fi |
---|
| 59 | AC_DEFINE_UNQUOTED(SYSTEM_EMAIL2TRAC_CONF, "$email2trac_conf", |
---|
| 60 | [Full path for the system-wide email2trac.conf file.]) |
---|
| 61 | |
---|
| 62 | AC_SUBST(email2trac_conf) |
---|
| 63 | AC_SUBST(SYSTEM_EMAIL2TRAC_CONF) |
---|
| 64 | |
---|
| 65 | |
---|
[21] | 66 | AC_OUTPUT( |
---|
| 67 | Makefile |
---|
[22] | 68 | email2trac.py |
---|
| 69 | delete_spam.py |
---|
[21] | 70 | ) |
---|
Note: See
TracBrowser
for help on using the repository browser.