~ubuntu-branches/ubuntu/utopic/lurker/utopic

« back to all changes in this revision

Viewing changes to debian/mailman2lurker

  • 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:
3
3
eval 'exec /usr/bin/perl -w -S $0 ${1+"$@"}'
4
4
  if 0; # not running under some shell
5
5
 
6
 
# to create a manpage for mailman2lurker, invoke the following command:
7
 
# pod2man --section=8 --center="Administrative commands" --release="" mailman2lurker mailman2lurker.8
8
 
 
9
 
=head1 NAME
10
 
 
11
 
mailman2lurker - Import mailman lists and their archives into a lurker database.
12
 
 
13
 
=head1 SYNOPSIS
14
 
 
15
 
Z<> B<mailman2lurker> B<-i>|B<-p> [I<options>]
16
 
 
17
 
=head1 DESCRIPTION
18
 
 
19
 
B<mailman2lurker> has mainly two functions. First, it parses mailman's lists
20
 
and creates a lurker configuration include out of them. Second, it imports
21
 
archives from mailman lists into a lurker database.
22
 
 
23
 
To build a new lurker database from mailmans archives, first run
24
 
'B<mailman2lurker -p>'. Next you need to add 'B<include =
25
 
/etc/lurker/lurker.conf.mailman>' into /etc/lurker/lurker.conf.local.
26
 
Finally import mailmans mboxes by running 'B<mailman2lurker -i>'.
27
 
 
28
 
If you want to add new lists to an already existing lurker configuration, run
29
 
'B<mailman2lurker -p -w newlists>' and afterwards 'B<mailman2lurker -i -f
30
 
newlists>'. This will import only the mbox files of mailman lists that have been
31
 
added to the lurker configuration because they were new to lurker.
32
 
 
33
 
=head1 COMMANDS
34
 
 
35
 
=over 4
36
 
 
37
 
=item B<-p>, B<--parse>
38
 
 
39
 
Parse mailman lists, and create a lurker configuration include file containing
40
 
all parsed lists. Lists that are already configured in lurker are ignored.
41
 
 
42
 
=item B<-i>, B<--import>
43
 
 
44
 
Import archives of all lists. This parses the lurker configuration and imports
45
 
the mailman mbox at /var/lib/mailman/archives/private/<list>.mbox/<list>.mbox
46
 
for every list.
47
 
 
48
 
=head1 OPTIONS
49
 
 
50
 
=over 4
51
 
 
52
 
=item B<-c>, B<--config> <I<config>>
53
 
 
54
 
Use <I<config>> as lurker configuration file. Default: /etc/lurker/lurker.conf
55
 
 
56
 
=item B<-o>, B<--outfile> <I<outfile>>
57
 
 
58
 
Write list configuration to <I<outfile>>. If this is not specified,
59
 
<lurker.conf>.mailman will be used.
60
 
This option is only useful in conjunction with B<-p>.
61
 
 
62
 
=item B<-g>, B<--group> <I<group>>
63
 
 
64
 
Use <I<group>> for new lists. Default is 'undef'.
65
 
This option is only useful in conjunction with B<-p>.
66
 
 
67
 
=item B<-a>, B<--listhost> <I<listhost>>
68
 
 
69
 
Use <I<listhost>> as host for new list addresses. If a new list is called
70
 
'mylist' and <I<listhost>> is lists.org, then the list address will be
71
 
mylist@lists.org. Default is 'example.org'.
72
 
This option is only useful in conjunction with B<-p>.
73
 
 
74
 
=item B<-l>, B<--link> <I<url link>>
75
 
 
76
 
Use <I<url link>> as base for links of new lists. If a list is called 'mylist',
77
 
and <I<url link>> is 'http://lists.org', then the link address will be
78
 
http://lists.org/mylist. Default is 'http://example.org'.
79
 
This option is only useful in conjunction with B<-p>.
80
 
 
81
 
=item B<-s>, B<--lang> <I<language>>
82
 
 
83
 
Use <I<language>> as language for new lists. Needs to be a language token.
84
 
Default is 'en'. This option is only useful in conjunction with B<-p>.
85
 
 
86
 
=item B<-w>, B<--write-lists> <I<file>>
87
 
 
88
 
Write a list of all lists that have been added to the lurker configuration.
89
 
Safe that list in <I<file>>. Default is off.
90
 
This option is only useful in conjunction with B<-p>.
91
 
 
92
 
=item B<-x>, B<--list-cmd> <I<file>>
93
 
 
94
 
Use <I<command|file>> to get the list of mailman lists that should be parsed.
95
 
When <I<command|file>> is a command, it needs to end with ' |'.
96
 
Default is '/var/lib/mailman/bin/list_lists |'.
97
 
This option is only useful in conjunction with B<-p>.
98
 
 
99
 
=item B<-f>, B<--listfile> <I<file>>
100
 
 
101
 
Import only lists that are listed in <I<file>>.
102
 
This option is only useful in conjunction with B<-i>.
103
 
 
104
 
=item B<-d>, B<--lists> <I<one>[,I<two>,I<...>]>
105
 
 
106
 
Import only lists that are given as argument.
107
 
This option is only useful in conjunction with B<-i>.
108
 
 
109
 
=item B<-h>, B<--help>
110
 
 
111
 
Display a help message.
112
 
 
113
 
=item B<-v>, B<--version>
114
 
 
115
 
Display mailman2lurker's version number.
116
 
 
117
 
=head1 SEE ALSO
118
 
 
119
 
L<list_lists(8)>, L<lurker-index(8)>
120
 
 
121
 
=head1 AUTHOR
122
 
 
123
 
This program was written by Jonas Meurer <jonas@freesources.org>.
124
 
 
125
 
=head1 COPYRIGHT
126
 
 
127
 
mailman2lurker may be copied and modified under the terms of the GNU General
128
 
Public License.
129
 
 
130
 
=cut
131
 
 
132
6
our $Version="0.2";
133
7
 
134
8
use strict;
357
231
else {
358
232
  usage();
359
233
}
 
234
 
 
235
__END__
 
236
 
 
237
# to create a manpage for mailman2lurker, invoke the following command:
 
238
# pod2man --section=8 --center="Administrative commands" --release="" mailman2lurker mailman2lurker.8
 
239
 
 
240
=head1 NAME
 
241
 
 
242
mailman2lurker - Import mailman lists and their archives into a lurker database.
 
243
 
 
244
=head1 SYNOPSIS
 
245
 
 
246
Z<> B<mailman2lurker> B<-i>|B<-p> [I<options>]
 
247
 
 
248
=head1 DESCRIPTION
 
249
 
 
250
B<mailman2lurker> has mainly two functions. First, it parses mailman's lists
 
251
and creates a lurker configuration include out of them. Second, it imports
 
252
archives from mailman lists into a lurker database.
 
253
 
 
254
To build a new lurker database from mailmans archives, first run
 
255
'B<mailman2lurker -p>'. Next you need to add 'B<include =
 
256
/etc/lurker/lurker.conf.mailman>' into /etc/lurker/lurker.conf.local.
 
257
Finally import mailmans mboxes by running 'B<mailman2lurker -i>'.
 
258
 
 
259
If you want to add new lists to an already existing lurker configuration, run
 
260
'B<mailman2lurker -p -w newlists>' and afterwards 'B<mailman2lurker -i -f
 
261
newlists>'. This will import only the mbox files of mailman lists that have been
 
262
added to the lurker configuration because they were new to lurker.
 
263
 
 
264
=head1 COMMANDS
 
265
 
 
266
=over 4
 
267
 
 
268
=item B<-p>, B<--parse>
 
269
 
 
270
Parse mailman lists, and create a lurker configuration include file containing
 
271
all parsed lists. Lists that are already configured in lurker are ignored.
 
272
 
 
273
=item B<-i>, B<--import>
 
274
 
 
275
Import archives of all lists. This parses the lurker configuration and imports
 
276
the mailman mbox at /var/lib/mailman/archives/private/<list>.mbox/<list>.mbox
 
277
for every list.
 
278
 
 
279
=back
 
280
 
 
281
=head1 OPTIONS
 
282
 
 
283
=over 4
 
284
 
 
285
=item B<-c>, B<--config> <I<config>>
 
286
 
 
287
Use <I<config>> as lurker configuration file. Default: /etc/lurker/lurker.conf
 
288
 
 
289
=item B<-o>, B<--outfile> <I<outfile>>
 
290
 
 
291
Write list configuration to <I<outfile>>. If this is not specified,
 
292
<lurker.conf>.mailman will be used.
 
293
This option is only useful in conjunction with B<-p>.
 
294
 
 
295
=item B<-g>, B<--group> <I<group>>
 
296
 
 
297
Use <I<group>> for new lists. Default is 'undef'.
 
298
This option is only useful in conjunction with B<-p>.
 
299
 
 
300
=item B<-a>, B<--listhost> <I<listhost>>
 
301
 
 
302
Use <I<listhost>> as host for new list addresses. If a new list is called
 
303
'mylist' and <I<listhost>> is lists.org, then the list address will be
 
304
mylist@lists.org. Default is 'example.org'.
 
305
This option is only useful in conjunction with B<-p>.
 
306
 
 
307
=item B<-l>, B<--link> <I<url link>>
 
308
 
 
309
Use <I<url link>> as base for links of new lists. If a list is called 'mylist',
 
310
and <I<url link>> is 'http://lists.org', then the link address will be
 
311
http://lists.org/mylist. Default is 'http://example.org'.
 
312
This option is only useful in conjunction with B<-p>.
 
313
 
 
314
=item B<-s>, B<--lang> <I<language>>
 
315
 
 
316
Use <I<language>> as language for new lists. Needs to be a language token.
 
317
Default is 'en'. This option is only useful in conjunction with B<-p>.
 
318
 
 
319
=item B<-w>, B<--write-lists> <I<file>>
 
320
 
 
321
Write a list of all lists that have been added to the lurker configuration.
 
322
Safe that list in <I<file>>. Default is off.
 
323
This option is only useful in conjunction with B<-p>.
 
324
 
 
325
=item B<-x>, B<--list-cmd> <I<file>>
 
326
 
 
327
Use <I<command|file>> to get the list of mailman lists that should be parsed.
 
328
When <I<command|file>> is a command, it needs to end with ' |'.
 
329
Default is '/var/lib/mailman/bin/list_lists |'.
 
330
This option is only useful in conjunction with B<-p>.
 
331
 
 
332
=item B<-f>, B<--listfile> <I<file>>
 
333
 
 
334
Import only lists that are listed in <I<file>>.
 
335
This option is only useful in conjunction with B<-i>.
 
336
 
 
337
=item B<-d>, B<--lists> <I<one>[,I<two>,I<...>]>
 
338
 
 
339
Import only lists that are given as argument.
 
340
This option is only useful in conjunction with B<-i>.
 
341
 
 
342
=item B<-h>, B<--help>
 
343
 
 
344
Display a help message.
 
345
 
 
346
=item B<-v>, B<--version>
 
347
 
 
348
Display mailman2lurker's version number.
 
349
 
 
350
=back
 
351
 
 
352
=head1 SEE ALSO
 
353
 
 
354
L<list_lists(8)>, L<lurker-index(8)>
 
355
 
 
356
=head1 AUTHOR
 
357
 
 
358
This program was written by Jonas Meurer <jonas@freesources.org>.
 
359
 
 
360
=head1 COPYRIGHT
 
361
 
 
362
mailman2lurker may be copied and modified under the terms of the GNU General
 
363
Public License.