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
113
114
115
|
# A sample configuration file for Wydawca
# Copyright (C) 2007 Sergey Poznyakoff
#
# Wydawca is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3 of the License, or (at your option)
# any later version.
#
# Wydawca is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with wydawca. If not, see <http://www.gnu.org/licenses/>.
# Configure logging via syslog.
# Fror more info, run `info wydawca syslog'.
syslog-facility local1
syslog-tag wydawca
syslog-print-priority yes
# Enable statistics output at the end of the run.
# Fror more info, run `info wydawca statistics'.
statistics all
# Remove any stray file that is more than an hour old.
file-sweep-time 1 hour
# Set default umask
umask 022
# Set the name of the tar binary. This is optional.
# See `info wydawca archivation', for more info.
tar-program /bin/tar
# Configure SQL databases.
# See `info wydawca sql'.
sql default
host localhost:/tmp/mysql.sock
database savane
user savane
password guessme
end
#############################################################################
# Configure access methods.
# Run `info wydawca access', for the detailed description of these.
# The provided ones use Savane database structure.
#############################################################################
project-owner sql default SELECT user.email, user.realname \
FROM user,user_group,groups \
WHERE user_group.user_id=user.user_id \
AND user_group.group_id=groups.group_id \
AND user_group.admin_flags = 'A' \
AND groups.unix_group_name='%p'
user-data sql default SELECT email, realname \
FROM user \
WHERE user_name='%{user}'
verify-user sql default SELECT user.user_name \
FROM user,user_group,groups \
WHERE user_group.user_id=user.user_id \
AND user_group.group_id=groups.group_id \
AND user_group.admin_flags = 'A' \
AND groups.unix_group_name='%p' \
AND user.user_name='%u'
gpg-key sql default SELECT gpg_key FROM user WHERE user_name='%u'
#############################################################################
# Configure your directory pairs.
# A directory pair defines where to look for input triplets, and where to
# copy uploaded files.
#
# See `info wydawca directory', for a detailed explanation.
#############################################################################
directory
source /home/ftp/incoming/ftp
destination /home/ftp/gnu
archive directory /var/spool/archive numbered
end
#############################################################################
# Configure email notifications
# See `info wydawca notification', for an explanation.
#############################################################################
# Include statement is described in `info wydawca include'.
include messages.rc
admin-address root@localhost
from-address wydawca@localhost
# See `info wydawca statreports'.
mail-admin-stat admin-stat all
# See `info wydawca event'.
notify-event success user user-success
notify-event success owner owner-success
notify-event bad-ownership owner bad-ownership
notify-event bad-directive-signature user user-bad-directive-signature
notify-event bad-directive-signature owner owner-bad-directive-signature
notify-event bad-detached-signature user user-bad-detached-signature
notify-event bad-detached-signature owner owner-bad-detached-signature
# End of configuration file
|