diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/messages.rc | 139 | ||||
-rw-r--r-- | etc/wydawca.rc | 63 |
2 files changed, 202 insertions, 0 deletions
diff --git a/etc/messages.rc b/etc/messages.rc new file mode 100644 index 0000000..6589ea5 --- /dev/null +++ b/etc/messages.rc @@ -0,0 +1,139 @@ +define-message admin-stat +Subject: Wydawca stats + +This is to notify you that the run of wydawca on %{date} +caused the following results: + +errors ............................. %{stat:errors} +warning ............................ %{stat:warnings} +bad signatures ..................... %{stat:bad_signatures} +access violation attempts .......... %{stat:access_violations} +complete triplets .................. %{stat:complete_triplets} +incomplete triplets ................ %{stat:incomplete_triplets} +bad triplets ....................... %{stat:bad_triplets} +expired triplets ................... %{stat:expired_triplets} +triplet successes .................. %{stat:triplet_success} +files uploaded ..................... %{stat:uploads} +files archived ..................... %{stat:archives} +symlinks created ................... %{stat:symlinks} +symlinks removed ................... %{stat:rmsymlinks} + +Regards, +Wydawca +end + +define-message user-success +Subject: Upload of %{project} successful + +Upload of %{project} to %{dir} finished successfully. Files uploaded: + +%{triplet:upload} + +Regards, +Wydawca +The Project Submission Robot +end + +define-message owner-success +Subject: Upload of %{project} successful + +%{user:real-name} (%{user:email}) successfully uploaded files +for %{project} to %{dir}. Files uploaded: + +%{triplet:upload} + +Regards, +Wydawca +The Project Submission Robot +end + +define-message bad-ownership +Subject: Suspicious upload of %{project} + +Someone not authorized to make releases for %{project} +has attempted to upload the following files to %{dir}: + +%{triplet:full} + +This upload has been ignored and the files removed. The person who attempted +the upload was %{user:real-name}, user name %{user:name}, email %{user:email}. +If you think this is an error and wish this user to be authorized to make +releases for %{project}, please contact <puszcza-hackers@gnu.org.ua>. +Otherwise, let us know so we could undertake appropriate measures. + +Regards, +Wydawca +The Project Submission Robot +end + +define-message user-bad-directive-signature +Subject: Suspicious upload of %{project} + +Someone (apparently you), has tried to make a release for %{project}. +However, the signature of the directive file was wrong, which looks +suspicious. The person uploaded the following files: + +%{triplet:full} + +This upload has been ignored and the files removed. If it was you who +attempted this upload, please make sure you use the right PGP key and +try again. If not, please let us know as soon as possible, so we can +track down the person trying to make believe he is you. + +Regards, +Wydawca +The Project Submission Robot +end + +define-message owner-bad-directive-signature +Subject: Suspicious upload of %{project} + +%{user:real-name} (%{user:email}) has tried to make a release +for %{project}. However, the signature of the directive file was wrong, +which looks suspicious. The person uploaded the following files: + +%{triplet:full} + +This upload has been ignored and the files removed. + +Regards, +Wydawca +The Project Submission Robot +end + +define-message user-bad-detached-signature +Subject: Suspicious upload of %{project} + +Someone (apparently you), has tried to make a release for %{project}. +However, the detached signature signature was wrong, which looks +suspicious. The person uploaded the following files: + +%{triplet:full} + +This upload has been ignored and the files removed. If it was you who +attempted this upload, please make sure you use the right PGP key and +try again. If not, please let us know as soon as possible, so we can +track down the person trying to make believe he is you. + +Regards, +Wydawca +The Project Submission Robot +end + +define-message owner-bad-detached-signature +Subject: Suspicious upload of %{project} + +%{user:real-name} (%{user:email}) has tried to make a release +for %{project}. However, the detached signature file was wrong, +which looks suspicious. The person uploaded the following files: + +%{triplet:full} + +This upload has been ignored and the files removed. + +Regards, +Wydawca +The Project Submission Robot +end + + diff --git a/etc/wydawca.rc b/etc/wydawca.rc new file mode 100644 index 0000000..2996513 --- /dev/null +++ b/etc/wydawca.rc @@ -0,0 +1,63 @@ +syslog-facility local1 +syslog-tag wydawca +syslog-print-priority yes +statistics all + +file-sweep-time 1 hour + +sql default + host localhost:/tmp/mysql.sock + database savane + user savane + password guessme +end + +umask 022 +tar-program /bin/tar + +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}' + +directory + source /home/ftp/incoming/ftp + destination /home/ftp/gnu + 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' + archive directory .archive + #archive directory .archive numbered + #archive directory /var/spool/archive + #archive tar /var/spool/archive.tar +end + + +include messages.rc + +admin-address gray@localhost +from-address wydawca@localhost + +mail-admin-stat admin-stat all + +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 |