aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-09-07 09:36:14 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-09-07 09:36:14 +0000
commit399b6a3682437d576dc4b7d77f66b5d88be4f7f3 (patch)
tree3f2623c404c7e2b937ff04ece4c283a46d115d9f /etc
parent610f147e2f7358eee94651e87994736a33be4633 (diff)
downloadwydawca-399b6a3682437d576dc4b7d77f66b5d88be4f7f3.tar.gz
wydawca-399b6a3682437d576dc4b7d77f66b5d88be4f7f3.tar.bz2
Update
git-svn-id: file:///svnroot/wydawca/trunk@319 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'etc')
-rw-r--r--etc/messages.rc73
-rw-r--r--etc/wydawca.rc62
2 files changed, 129 insertions, 6 deletions
diff --git a/etc/messages.rc b/etc/messages.rc
index 6589ea5..ee43499 100644
--- a/etc/messages.rc
+++ b/etc/messages.rc
@@ -1,3 +1,30 @@
+# Configurable email notifications 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/>.
+
+# An identifier following each `define-message' keyword is used to
+# refer to that message template from the main configuration file
+# (see `notify-event' and `mail-admin-stat' statements in wydawca.rc
+#
+# See `info wydawca templates', for more information.
+
+
+#############################################################################
+# A template for statistic reports
+#############################################################################
+
define-message admin-stat
Subject: Wydawca stats
@@ -22,6 +49,11 @@ Regards,
Wydawca
end
+
+#############################################################################
+# A template for user success notification
+#############################################################################
+
define-message user-success
Subject: Upload of %{project} successful
@@ -34,6 +66,11 @@ Wydawca
The Project Submission Robot
end
+
+#############################################################################
+# A template for project admin success notification.
+#############################################################################
+
define-message owner-success
Subject: Upload of %{project} successful
@@ -47,6 +84,13 @@ Wydawca
The Project Submission Robot
end
+
+#############################################################################
+# A template for bad-ownership notification. It is send to the project
+# admins, if someone non authorized attempted to upload some files for
+# the project they run.
+#############################################################################
+
define-message bad-ownership
Subject: Suspicious upload of %{project}
@@ -66,6 +110,13 @@ Wydawca
The Project Submission Robot
end
+
+#############################################################################
+# Notification about a bad directive signature. To be sent to the user.
+# It may be a good idea not to notify users about such events, just to
+# stay on a safe side. Notifying project admins will be quite enough.
+#############################################################################
+
define-message user-bad-directive-signature
Subject: Suspicious upload of %{project}
@@ -85,6 +136,13 @@ Wydawca
The Project Submission Robot
end
+
+#############################################################################
+# Notification about a bad directive signature. To be sent to the project
+# admins.
+# See the previous comment
+#############################################################################
+
define-message owner-bad-directive-signature
Subject: Suspicious upload of %{project}
@@ -101,6 +159,13 @@ Wydawca
The Project Submission Robot
end
+
+#############################################################################
+# Notification about a bad detached signature. To be sent to the user.
+# It may be a good idea not to notify users about such events, just to
+# stay on a safe side. Notifying project admins will be quite enough.
+#############################################################################
+
define-message user-bad-detached-signature
Subject: Suspicious upload of %{project}
@@ -120,6 +185,13 @@ Wydawca
The Project Submission Robot
end
+
+#############################################################################
+# Notification about a bad detached signature. To be sent to the project
+# admins.
+# See the previous comment
+#############################################################################
+
define-message owner-bad-detached-signature
Subject: Suspicious upload of %{project}
@@ -136,4 +208,5 @@ Wydawca
The Project Submission Robot
end
+# End of file
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

Return to:

Send suggestions and report system problems to the System administrator.