/* A sample configuration file for Wydawca Copyright (C) 2007, 2009-2011, 2017 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 dictionaries. * Run `info wydawca dictionaries', for the detailed description of these. * The provided ones use Savane database structure. */ dictionary 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='${project}'"; } /* Only project admins are allowed to make uploads. */ dictionary project-uploader { type sql; query "SELECT user.user_name,user.realname,user.email,user.gpg_key " "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='${project}' " "AND user.gpg_key is not NULL"; params (default); } /* Configure email notifications * See `info wydawca notification', for a description. */ 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 project admin, if submitted directive signature did not match * any of the submitter records. */ notify-event { event bad-directive-signature; message < Your upload of ${triplet:dist} has been rejected by the distribution verification procedure with the following diagnostics: ${check:diagn}$- Please fix the tarball and resubmit. Regards, Wydawca The Project Submission Robot EOT; } /* Make sure the distributed tarball does not contain security vulnerabilities * CVE-2012-3386 and CVE-2009-4029. Reject it, if it does. * See `info wydawca verification', for a description of check-script. * * Note: this script relies on GNU tar and grep. */ check-script <