1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
#
# Author: Bas van der Vlies <basvandervlies@surfsara.nl>
# Desc. : Simple configure script for email2trac package
# SVN INFO:
# $Id: configure.in 628 2013-06-18 10:05:30Z bas $
#
#
AC_INIT(email2trac.py.in)
AC_CONFIG_HEADER(config.h)
AC_SUBST(prefix)
AC_SUBST(exec_prefix)
AC_SUBST(pyexecdir)
AC_SUBST(trac_user)
AC_SUBST(mta_user)
AC_SUBST(install_user)
AC_SUBST(sysconfdir)
AC_SUBST(virtualenv)
#DEBUG=0
#AM_PATH_PYTHON
AM_PATH_PYTHON(2.4)
AC_PROG_GCC_TRADITIONAL
if test "x$DEBUG" = "x";then
DEBUG=0
fi
AC_SUBST(DEBUG)
# What user must be used for installation (default: root)
#
AC_ARG_WITH(install_user,
[
--with-install_user=USER Specify the name of the user that we must use for installation,
default=root],
[case "${withval}" in
*) install_user="${withval}" ;;
esac],
[install_user="root"]
)dnl
# Now a user can specify the TRAC user
#
AC_ARG_WITH(trac_user,
[
--with-trac_user=USER Specify the name of the user that trac use,
default=www-data],
[case "${withval}" in
*) trac_user="${withval}" ;;
esac],
[trac_user="www-data"]
)dnl
# Now a user can specify MTA TRAC user
#
AC_ARG_WITH(mta_user,
[
--with-mta_user=USER Specify the name of the user that your MTA use,
default=nobody],
[case "${withval}" in
*) mta_user="${withval}" ;;
esac],
[mta_user="nobody"]
)dnl
# We can specify a default virtual env path for trac
#
AC_ARG_WITH(virtualenv,
[
--with-virtualenv=path Specify the default virtualenv path to use for trac,
default=""],
[case "${withval}" in
*) virtualenv="${withval}" ;;
esac],
[virtualenv=""]
)dnl
dnl ##### Path to email2trac.conf
dnl This ugly kludge to get the sysconfdir path is needed because
dnl autoconf doesn't actually set the prefix variable until later.
if test "$sysconfdir" = '${prefix}/etc'; then
if test "x$prefix" = xNONE; then
email2trac_conf="$ac_default_prefix/etc/email2trac.conf"
else
email2trac_conf="$prefix/etc/email2trac.conf"
fi
else
email2trac_conf="$sysconfdir/email2trac.conf"
fi
AC_DEFINE_UNQUOTED(SYSTEM_EMAIL2TRAC_CONF, "$email2trac_conf",
[Full path for the system-wide email2trac.conf file.])
AC_SUBST(email2trac_conf)
AC_SUBST(SYSTEM_EMAIL2TRAC_CONF)
dnl ##### Check for presence of initgroups() function
AC_CHECK_FUNCS([initgroups])
AC_OUTPUT(
Makefile
email2trac.py
delete_spam.py
)
|