/* A sample configuration file for Wydawca
Copyright (C) 2007, 2009 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 . */
# Configure logging via syslog.
# For more info, run `info wydawca syslog'.
syslog {
facility local1;
tag wydawca;
print-priority yes;
}
# Enable statistics output at the end of the run.
# For more info, run `info wydawca statistics'.
statistics all;
# Remove any stray files that are 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";
}
#############################################################################
# Configure access methods.
# Run `info wydawca access', for the detailed description of these.
# The provided ones use Savane database structure.
#############################################################################
access-method project-owner {
type sql;
params (default);
query "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'";
}
access-method user-data {
type sql;
params (default);
query "SELECT email, realname FROM user WHERE user_name='${user}'";
}
access-method verify-user {
type sql;
params (default);
query "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'";
}
access-method gpg-key {
type sql;
params (default);
query "SELECT gpg_key FROM user WHERE user_name='$u'";
}
#############################################################################
# Configure email notifications
# See `info wydawca notification', for an explanation.
#############################################################################
admin-address "root@localhost";
from-address "wydawca@localhost";
# See `info wydawca statreports'.
mail-statistics {
statistics all;
message <.
Otherwise, let us know so we could undertake appropriate measures.
Regards,
Wydawca
The Project Submission Robot
EOT;
}
# Notify the user (submitter), if the directive signature does not match
# his record.
# It may be a good idea not to notify users about such events, just to
# stay on a safe side. Notifying project admins (see below) should be quite
# enough.
notify-event {
event bad-directive-signature;
recipient user;
message <