~ubuntu-branches/ubuntu/utopic/dovecot/utopic-proposed

« back to all changes in this revision

Viewing changes to src/imap-urlauth/imap-urlauth-worker-settings.c

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-08 09:35:49 UTC
  • mfrom: (4.1.35 sid)
  • Revision ID: package-import@ubuntu.com-20140108093549-i72o93pux8p0dlaf
Tags: 1:2.2.9-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + Use the autotools-dev dh addon to update config.guess/config.sub for
    arm64.
* Dropped changes, included in Debian:
  - Update Dovecot name to reflect distribution in login greeting.
  - Update Drac plugin for >= 2.0.0 support.
* d/control: Drop dovecot-postfix package as its no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (c) 2013 Dovecot authors, see the included COPYING file */
 
2
 
 
3
#include "lib.h"
 
4
#include "buffer.h"
 
5
#include "settings-parser.h"
 
6
#include "service-settings.h"
 
7
#include "mail-storage-settings.h"
 
8
#include "imap-urlauth-worker-settings.h"
 
9
 
 
10
#include <stddef.h>
 
11
#include <stdlib.h>
 
12
#include <unistd.h>
 
13
 
 
14
/* <settings checks> */
 
15
static struct file_listener_settings imap_urlauth_worker_unix_listeners_array[] = {
 
16
        { "imap-urlauth-worker", 0600, "$default_internal_user", "" }
 
17
};
 
18
static struct file_listener_settings *imap_urlauth_worker_unix_listeners[] = {
 
19
        &imap_urlauth_worker_unix_listeners_array[0]
 
20
};
 
21
static buffer_t imap_urlauth_worker_unix_listeners_buf = {
 
22
        imap_urlauth_worker_unix_listeners, sizeof(imap_urlauth_worker_unix_listeners), { 0, }
 
23
};
 
24
/* </settings checks> */
 
25
 
 
26
struct service_settings imap_urlauth_worker_service_settings = {
 
27
        .name = "imap-urlauth-worker",
 
28
        .protocol = "imap",
 
29
        .type = "",
 
30
        .executable = "imap-urlauth-worker",
 
31
        .user = "",
 
32
        .group = "",
 
33
        .privileged_group = "",
 
34
        .extra_groups = "",
 
35
        .chroot = "",
 
36
 
 
37
        .drop_priv_before_exec = FALSE,
 
38
 
 
39
        .process_min_avail = 0,
 
40
        .process_limit = 1024,
 
41
        .client_limit = 1,
 
42
        .service_count = 1,
 
43
        .idle_kill = 0,
 
44
        .vsz_limit = (uoff_t)-1,
 
45
 
 
46
        .unix_listeners = { { &imap_urlauth_worker_unix_listeners_buf,
 
47
                              sizeof(imap_urlauth_worker_unix_listeners[0]) } },
 
48
        .fifo_listeners = ARRAY_INIT,
 
49
        .inet_listeners = ARRAY_INIT
 
50
};
 
51
 
 
52
#undef DEF
 
53
#define DEF(type, name) \
 
54
        { type, #name, offsetof(struct imap_urlauth_worker_settings, name), NULL }
 
55
 
 
56
static const struct setting_define imap_urlauth_worker_setting_defines[] = {
 
57
        DEF(SET_BOOL, verbose_proctitle),
 
58
 
 
59
        DEF(SET_STR, imap_urlauth_host),
 
60
        DEF(SET_UINT, imap_urlauth_port),
 
61
 
 
62
        SETTING_DEFINE_LIST_END
 
63
};
 
64
 
 
65
const struct imap_urlauth_worker_settings imap_urlauth_worker_default_settings = {
 
66
        .verbose_proctitle = FALSE,
 
67
 
 
68
        .imap_urlauth_host = "",
 
69
        .imap_urlauth_port = 143
 
70
};
 
71
 
 
72
static const struct setting_parser_info *imap_urlauth_worker_setting_dependencies[] = {
 
73
        &mail_user_setting_parser_info,
 
74
        NULL
 
75
};
 
76
 
 
77
const struct setting_parser_info imap_urlauth_worker_setting_parser_info = {
 
78
        .module_name = "imap-urlauth-worker",
 
79
        .defines = imap_urlauth_worker_setting_defines,
 
80
        .defaults = &imap_urlauth_worker_default_settings,
 
81
 
 
82
        .type_offset = (size_t)-1,
 
83
        .struct_size = sizeof(struct imap_urlauth_worker_settings),
 
84
 
 
85
        .parent_offset = (size_t)-1,
 
86
 
 
87
        .dependencies = imap_urlauth_worker_setting_dependencies
 
88
};