~ubuntu-branches/ubuntu/raring/lurker/raring

« back to all changes in this revision

Viewing changes to common/ConfigFile.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Meurer
  • Date: 2009-10-31 01:46:17 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20091031014617-a4c2ol1jpmxowq3r
Tags: 2.3-1
* new stable upstream release:
  - fixes compiliation with gcc-4.4 (closes: #504959)
  - moves default htdocs from /var/www/lurker to /usr/share/lurker/www.
    explain the migration in NEWS.Debian
  - rewritten markup regexps (linear-time and rfc-derived) (closes: #437858)
  - remove all patches, they where all incorporated upstream.
* drop apache from depends, it hasn't been supported in maintainer scripts
  since lurker 2.1-10
* bump standards-version to 3.8.3, no changes needed
* update debian/changelog to comply with proposed machine-readable format
  from http://wiki.debian.org/Proposals/CopyrightFormat
* add ${misc:Depends} to depends in debian/control
* set -e in postinst, preinst and prerm
* fix coding issues with POD documentation in debian/mailman2lurker
* add lintian-overrides for packages-contains-empty-directory. Install with
  dh_lintian, bump build-depends on debhelper to (>=6.0.7)
* bump debian/compat to 6
* add mindex.patch to docs and describe it's purpose in README.Debian.
* enhance the FAQ with a description how the activity chart is calculated.
* invoke ucf with --debconf-ok in postinst, build-depend on ucf (>= 0.28).
* fix postinst to configure the apache2 webserver only if it's selected.
  (closes: #550647)
* fix config maintainer script to not use absolute pathnames for binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  $Id: ConfigFile.h,v 1.13 2006/02/25 01:05:40 terpstra Exp $
 
1
/*  $Id: ConfigFile.h 1649 2009-10-19 14:35:01Z terpstra $
2
2
 *  
3
3
 *  ConfigFile.h - Knows how to load the config file
4
4
 *  
115
115
                string key;
116
116
        };
117
117
        
118
 
        vector<Entry> entries;
 
118
        vector<Entry>   entries;
 
119
        
 
120
        lstring         archive;
 
121
        lstring         admin_name;
 
122
        string          admin_address;
 
123
        bool            hide_email;
 
124
        bool            raw_email;
 
125
        bool            web_cache;
119
126
};
120
127
 
121
128
class Config
152
159
        
153
160
        // never localize paths, commands, or addresses
154
161
        string  dbdir;
 
162
        int     db_umask;
155
163
        string  xslt;
156
164
        string  delete_message;
157
165
        string  pgpv_mime;
189
197
        
190
198
        // Open the config from this file.
191
199
        int load(const string& file, bool toplevel = true);
192
 
        int process_command(const string& key, const string& val, const string& dir);
 
200
        int process_command(const string& file, int c, const string& key, const string& val, const string& dir);
193
201
        
194
202
        // Set the allowed flag on lists
195
203
        void set_permissions(const Frontend& f);