~ubuntu-dev/ubuntu/lucid/dovecot/lucid-201002101901

« back to all changes in this revision

Viewing changes to managesieve/configure.in

  • Committer: Chuck Short
  • Date: 2010-01-21 20:21:25 UTC
  • mfrom: (4.1.11 squeeze)
  • Revision ID: zulcss@ubuntu.com-20100121202125-pme73o491kfwj5nc
* Merge from debian testing, remaining changes:
  + Add new binary pkg dovecot-postfix that integrates postfix and dovecot
    automatically: (LP: #164837)
  + debian/control:
    - add new binary with short description
    - set Architecture all for dovecot-postfix (LP: #329878)
  + debian/dovecot-postfix.postinst:
    - create initial certificate symlinks to snakeoil.
    - set up postfix with postconf to:
      - use Maildir/ as the default mailbox.
      - use dovecot as the sasl authentication server.
      - use dovecot LDA (deliver).
      - use tls for smtp{d} services.
    - fix certificates paths in postfix' main.cf
    - add reject_unauth_destination to postfix' recipient restrictions
    - add reject_unknown_sender_domain to postfix' sender restriction
    - rename configuration name on remove, delete on purge
    - restart dovecot after linking certificates
    - handle use case when postfix is unconfigurated
  + debian/dovecot-postfix.dirs: create backup directory for postfix's config
    configuration
  + restart postfix and dovecot.
  + debian/dovecot-postfix.postrm:
    - remove all dovecot related configuration from postfix.
    - restart postfix and dovecot.
  + debian/dovecot-common.init:
    - check if /etc/dovecot/dovecot-postfix.conf exists and use it
      as the configuration file if so.
  + debian/patches/warning-ubuntu-postfix.dpatch
    - add warning about dovecot-postfix.conf in dovecot default
      configuration file
  + debian/patches/dovecot-postfix.conf.diff:
    - Ubuntu server custom changes to the default dovecot configuration for
      better interfation with postfix.
    - enable sieve plugin.
    - Ubuntu server custom changes to the default dovecot configuration for
      better integration with postfix:
      - enable imap, pop3, imaps, pop3s and managesieve by default.
      - enable dovecot LDA (deliver).
      - enable SASL auth socket in postfix private directory
   + debian/rules:
     - copy, patch and install dovecot-postfix.conf in /etc/dovecot/.
     - build architecure independent packages too
   + Use Snakeoil SSL certificates by default.
     - debian/control: Depend on ssl-cert.
     - debian/patches/ssl-cert-snakeoil.dpatch: Change default SSL cert
       paths to snakeoil.
     - debian/dovecot-common.postinst: Relax grep for SSL_* a bit.
   + Add autopkgtest to debian/tests/*.
   + Fast TearDown: Update the lsb init header to not stop in level 6.
   + Add ufw integration:
     - Created debian/dovecot-common.ufw.profile.
     - debian/rules: install profile.
     - debian/control: suggest ufw.
   + debian/{control,rules}: enable PIE hardening.
   + dovecot-imapd, dovecot-pop3: Replaces dovecot-common (<< 1:1.1). (LP: #254721)
   + debian/control: Update Vcs-* headers.
   + Add SMTP-AUTH support for Outlook (login auth mechanism)
* New upstream release.
* debian/patches/gold-fix.patch: Removed. Fixed upstream.
* Moved libexec to lib corrections in dovecot-managesieve.patch and
  dovecot-managesieve-dist.patch to dovecot-example.patch
* debian/patches/dovecot-mboxlocking.patch: Regenerated to avoid FTBFS
  when quilt isn't installed.
* debian/patches/quota-mountpoint.patch: Removed. Not needed anymore.
* debian/patches/dovecot-quota.patch: Removed. Quotas aren't properly
  enabled unless mail_plugins = quota imap_quota.
* debian/patches/gold-fix.patch: Fixed configure script to build even
  with binutils-gold or --no-add-needed linker flag (Closes: #554306)
* debian/dovecot-common.init: fixed LSB headers. Thanks to Pascal Volk.
  (Closes: #558040)
* debian/changelog: added CVE references to previous changelog entry.
* debian/rules: checked up the build system. It's not fragile anymore.
  (Closes: 493803)
* debian/dovecot-common.postinst: Now invoking dpkg-reconfigure
  on dovecot-common is enough to generate new certificates
  if the previous ones were removed. (Closes: #545582)
* debian/rules: No longer install convert-tool in /usr/bin.
  It isn't an user utility and it should stay in /usr/lib/dovecot
  like all other similar tool.
* New upstream release. (Closes: #557601)
* [SECURITY] Fixes local information disclosure and denial of service.
  (see: http://www.dovecot.org/list/dovecot-news/2009-November/000143.html
  and CVE-2009-3897)
* Added myself to uploaders.
* Switched to the new source format "3.0 (quilt)":
  - removed dpatch from build-depends
  - removed debian/README.source because now we use only standard
    dpkg features
  - regenerated all patches
* Prepared to switch to multi-origin source:
  - recreated dovecot-libsieve.patch and dovecot-managesieve-dist.patch
    starting from the upstream tarball
  - removed all autotools related build-depends and build-conflict
  - renamed dovecot-libsieve and dovecot-managesieve directories
    to libsieve and managesieve.
* debian/rules: Moved the configuration of libsieve and managesieve from
  the build phase to the configuration phase
* Added dovecot-dbg package  with debugging symbols.  Thanks Stephan Bosch.
  (Closes: #554710)
* Fixed some stray libexec'isms in the default configuration.
* New upstream release.
* debian/dovecot-common.init:
  - use $CONF when starting the daemon. (Closes: #549944)
  - always output start/stop messages. (Closes: #523810)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
AC_INIT([Dovecot ManageSieve], [0.11.9], [dovecot@dovecot.org], [dovecot-1.2-managesieve])
 
2
AC_CONFIG_SRCDIR([src])
 
3
 
 
4
AC_CONFIG_HEADERS([dummy-config.h dmanagesieve-config.h])
 
5
 
 
6
AC_DEFINE_UNQUOTED(MANAGESIEVE_NAME, "$PACKAGE_NAME",
 
7
    [Define to the full name of this Sieve implementation.])
 
8
AC_DEFINE_UNQUOTED(MANAGESIEVE_VERSION, "$PACKAGE_VERSION",
 
9
    [Define to the version of this Sieve implementation.])
 
10
 
 
11
AM_INIT_AUTOMAKE([no-define foreign])
 
12
 
 
13
AM_MAINTAINER_MODE
 
14
 
 
15
AC_PROG_CC
 
16
AC_PROG_CPP
 
17
AM_PROG_LIBTOOL
 
18
 
 
19
AC_ARG_WITH(dovecot,
 
20
[  --with-dovecot[=DIR]    Dovecot base directory (../)],
 
21
        dovecotdir="$withval",
 
22
        dovecotdir=../dovecot
 
23
)
 
24
 
 
25
AC_ARG_WITH(dovecot-sieve,
 
26
[  --with-dovecot-sieve[=DIR]    Dovecot-sieve plugin base directory (../)],
 
27
    dovecot_sievedir="$withval",
 
28
    dovecot_sievedir=../dovecot-sieve-1.1
 
29
)
 
30
 
 
31
top=`pwd`
 
32
cd $dovecotdir
 
33
dovecotdir=`pwd`
 
34
cd $top
 
35
cd $dovecot_sievedir
 
36
dovecot_sievedir=`pwd`
 
37
cd $top
 
38
AC_SUBST(dovecotdir)
 
39
AC_SUBST(dovecot_sievedir)
 
40
 
 
41
if ! test -f "$dovecotdir/dovecot-config"; then
 
42
  echo
 
43
  echo "dovecot-config not found from $dovecotdir, use --with-dovecot=PATH"
 
44
  echo "to give path to compiled Dovecot sources or to a directory with the"
 
45
  echo "installed dovecot-config file."
 
46
  AC_MSG_ERROR([dovecot-config not found])
 
47
fi
 
48
 
 
49
if test -d "$dovecotdir/src"; then
 
50
  # compiling against sources
 
51
  have_dovecot_libs=yes
 
52
else
 
53
  # compiling against installed headers
 
54
  have_dovecot_libs=no
 
55
fi
 
56
AM_CONDITIONAL(HAVE_DOVECOT_LIBS, test "$have_dovecot_libs" = "yes")
 
57
 
 
58
if test -f "$dovecot_sievedir/src/sieve-cmu.c"; then
 
59
  # compiling against old cmu sieve plugin
 
60
  echo "compiling against old dovecot-sieve plugin."
 
61
  SIEVE_PLUGIN_TOP=$dovecot_sievedir
 
62
  SIEVE_PLUGIN_INCLUDE=$top/src/lib-cmusieve
 
63
  SIEVE_PLUGIN_LIB=$top/src/lib-cmusieve/libsieve_cmu.la
 
64
  have_old_sieve_plugin=yes
 
65
else
 
66
  if test -f "$dovecot_sievedir/src/lib-sieve/sieve.c"; then
 
67
    # compiling against native dovecot sieve plugin
 
68
    echo "compiling against new dovecot-sieve plugin."
 
69
        SIEVE_PLUGIN_TOP=$dovecot_sievedir
 
70
    SIEVE_PLUGIN_INCLUDE=$dovecot_sievedir/src/lib-sieve
 
71
    SIEVE_PLUGIN_LIB=$dovecot_sievedir/src/lib-sieve/libsieve.la
 
72
    have_old_sieve_plugin=no
 
73
  else
 
74
    echo
 
75
    echo "Dovecot Sieve implementation not found from $dovecot_sievedir, "
 
76
    echo "use --with-dovecot-sieve=PATH to give path to compiled Dovecot Sieve sources."
 
77
    AC_MSG_ERROR([dovecot-sieve not found])
 
78
  fi
 
79
fi
 
80
AM_CONDITIONAL(HAVE_OLD_SIEVE_PLUGIN, test "$have_old_sieve_plugin" = "yes")
 
81
 
 
82
dnl replace relative ../ paths in the file with full paths
 
83
eval `cat $dovecotdir/dovecot-config|sed 's,\$(top_builddir)/,$dovecotdir/,g'`
 
84
 
 
85
if test $have_dovecot_libs = yes; then
 
86
  dovecot_incdir="$dovecotdir"
 
87
fi
 
88
 
 
89
AC_SUBST(STORAGE_LIBS)
 
90
AC_SUBST(LIBICONV)
 
91
AC_SUBST(RAND_LIBS)
 
92
AC_SUBST(MODULE_LIBS)
 
93
AC_SUBST(SSL_LIBS)
 
94
AC_SUBST(dovecot_incdir)
 
95
AC_SUBST(moduledir)
 
96
 
 
97
AC_SUBST(SIEVE_PLUGIN_TOP)
 
98
AC_SUBST(SIEVE_PLUGIN_INCLUDE)
 
99
AC_SUBST(SIEVE_PLUGIN_LIB)
 
100
 
 
101
AC_CONFIG_FILES([
 
102
Makefile
 
103
src/Makefile
 
104
src/lib-sievestorage/Makefile
 
105
src/lib-managesieve/Makefile
 
106
src/managesieve/Makefile
 
107
src/managesieve-login/Makefile
 
108
src/lib-cmusieve/Makefile
 
109
stamp.h])
 
110
 
 
111
AC_OUTPUT