diff options
Diffstat (limited to 'etc/wydawca.rc')
-rw-r--r-- | etc/wydawca.rc | 62 |
1 files changed, 56 insertions, 6 deletions
diff --git a/etc/wydawca.rc b/etc/wydawca.rc index bec8d12..a447c9c 100644 --- a/etc/wydawca.rc +++ b/etc/wydawca.rc @@ -1,10 +1,40 @@ +# 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 @@ -12,8 +42,12 @@ sql default password guessme end -umask 022 -tar-program /bin/tar + +############################################################################# +# 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 \ @@ -36,23 +70,37 @@ verify-user sql default SELECT user.user_name \ 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 .archive - #archive directory .archive numbered - #archive directory /var/spool/archive - #archive tar /var/spool/archive.tar + 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 gray@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 @@ -63,3 +111,5 @@ 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 |