Blame SOURCES/quota-4.01-Add-warnquota.conf-5-manual-page.patch

370c56
From 91db972ea2f4065974811655847be4d52b7caee9 Mon Sep 17 00:00:00 2001
370c56
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
370c56
Date: Thu, 17 Oct 2013 17:01:07 +0200
370c56
Subject: [PATCH 3/4] Add warnquota.conf(5) manual page
370c56
MIME-Version: 1.0
370c56
Content-Type: text/plain; charset=UTF-8
370c56
Content-Transfer-Encoding: 8bit
370c56
370c56
Signed-off-by: Petr Písař <ppisar@redhat.com>
370c56
---
370c56
 warnquota.8      |   5 +-
370c56
 warnquota.conf.5 | 184 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
370c56
 2 files changed, 188 insertions(+), 1 deletion(-)
370c56
 create mode 100644 warnquota.conf.5
370c56
370c56
diff --git a/warnquota.8 b/warnquota.8
370c56
index b998f19..e675f4a 100644
370c56
--- a/warnquota.8
370c56
+++ b/warnquota.8
370c56
@@ -53,7 +53,9 @@ Use
370c56
 .I configfile
370c56
 instead of
370c56
 .I /etc/warnquota.conf
370c56
-as configuration file (see example file for syntax).
370c56
+as configuration file (see
370c56
+.BR warnquota.conf (5)
370c56
+for syntax).
370c56
 .TP
370c56
 .B -a, --admins-file=\f2adminsfile\f1
370c56
 Use
370c56
@@ -108,6 +110,7 @@ default set of users
370c56
 .BR quota (1),
370c56
 .BR quotatab (5),
370c56
 .BR quotagrpadmins (5),
370c56
+.BR warnquota.conf (5),
370c56
 .BR cron (8),
370c56
 .BR edquota (8).
370c56
 .SH AUTHORS
370c56
diff --git a/warnquota.conf.5 b/warnquota.conf.5
370c56
new file mode 100644
370c56
index 0000000..56e1439
370c56
--- /dev/null
370c56
+++ b/warnquota.conf.5
370c56
@@ -0,0 +1,184 @@
370c56
+.TH WARNQUOTA.CONF 5
370c56
+.SH NAME
370c56
+warnquota.conf \- configuration for warnquota
370c56
+.SH SYNOPSIS
370c56
+.B /etc/warnquota.conf
370c56
+.SH DESCRIPTION
370c56
+The
370c56
+.B warnquota.conf
370c56
+file stores a configuration for
370c56
+.BR warnquota (8)
370c56
+tool which is used to notify an user or a group who exceeds its disk quota
370c56
+limits.
370c56
+.P
370c56
+The syntax is an option name followed by a equal sign and the option value.
370c56
+White space characters surrounding the option names and values are allowed.
370c56
+.P
370c56
+Empty lines or lines starting with a hash sign or a semicolon are ignored.
370c56
+.P
370c56
+An option value can but does not have to be quoted. The value can span
370c56
+across multiple lines provided each previous line ends with a backslash.
370c56
+.P
370c56
+Some option values can contain formatting sequences which will be expanded to
370c56
+their respective values. Following sequences are recognizes:
370c56
+.P
370c56
+.PD 0
370c56
+.TP 20
370c56
+.B %d
370c56
+domain name
370c56
+.TP
370c56
+.B %h
370c56
+host name
370c56
+.TP
370c56
+.BR "%i" ", " "%s"
370c56
+user or group name
370c56
+.TP
370c56
+.B %%
370c56
+literal % character
370c56
+.TP
370c56
+.B |
370c56
+new-line character
370c56
+.PD
370c56
+.SH OPTIONS
370c56
+.PD 0
370c56
+.TP 20
370c56
+.B CC_BEFORE
370c56
+Send to copy-carbon address only when an user has less than specified grace time
370c56
+left. Value is a number followed by a time unit. Known units are
370c56
+.IR seconds ,
370c56
+.IR minutes ,
370c56
+.IR hours ", and"
370c56
+.IR days .
370c56
+Example:
370c56
+.I 5 days
370c56
+.TP
370c56
+.B CC_TO
370c56
+An e-mail address to put into copy-carbon (CC:) recipient header. Default
370c56
+value is
370c56
+.IR root .
370c56
+.TP
370c56
+.B CHARSET
370c56
+Defines character set for sent e-mails. Default value will be current locale
370c56
+character set used when executing warnquota command, if locale is not either
370c56
+.I C
370c56
+or
370c56
+.IR POSIX .
370c56
+Otherwise none character set will be specified in the e-mails.
370c56
+.TP
370c56
+.B FROM
370c56
+Defines From: e-email address. Default value is
370c56
+.IR "support@localhost" .
370c56
+.TP
370c56
+.B GROUP_MESSAGE
370c56
+A text sent as an e-mail body if a group exceeds its limits. This option
370c56
+recognizes formatting sequences.
370c56
+.TP
370c56
+.B GROUP_SIGNATURE
370c56
+A signature text appended to notification for a group. Default value is
370c56
+a general explanation utilizing
370c56
+.B SUPPORT
370c56
+and
370c56
+.B PHONE
370c56
+values. This option recognizes formatting sequences.
370c56
+.TP
370c56
+.B LDAP_BASEDN
370c56
+Base distinguished name for LDAP queries.
370c56
+.TP
370c56
+.B LDAP_BINDDN
370c56
+Bind distinguished name for LDAP queries.
370c56
+.TP
370c56
+.B LDAP_BINDPW
370c56
+Bind password for LDAP queries.
370c56
+.TP
370c56
+.B LDAP_DEFAULT_MAIL_DOMAIN
370c56
+Default e-mail address domain of searched user if given LDAP attribute does
370c56
+not specify any.
370c56
+.TP
370c56
+.B LDAP_HOST
370c56
+LDAP server name to connect to if
370c56
+.B LDAP_URI
370c56
+is not defined.
370c56
+.TP
370c56
+.B LDAP_MAIL
370c56
+A boolean controlling if LDAP has to be used to look up an user's e-mail
370c56
+address. Possible values are
370c56
+.I true
370c56
+and
370c56
+.IR false .
370c56
+Default value is
370c56
+.IR false .
370c56
+.TP
370c56
+.B LDAP_MAIL_ATTRIBUTE
370c56
+The LDAP attribute which holds user's e-mail address.
370c56
+.TP
370c56
+.B LDAP_PORT
370c56
+LDAP server port number to connect to if
370c56
+.B LDAP_URI
370c56
+is not defined.
370c56
+.TP
370c56
+.B LDAP_SEARCH_ATTRIBUTE
370c56
+The LDAP attribute which holds user's ID to look up.
370c56
+.TP
370c56
+.B LDAP_URI
370c56
+The URL of LDAP server to use to search user's e-mail addresses. This option
370c56
+takes preference over
370c56
+.B LDAP_HOST
370c56
+and
370c56
+.BR LDAP_PORT .
370c56
+Example:
370c56
+.I ldaps://example.com:389/
370c56
+.TP
370c56
+.B MESSAGE
370c56
+A beginning of text sent as an e-mail body if a user exceeds his limits. This
370c56
+option recognizes formatting sequences.
370c56
+.TP
370c56
+.B MAIL_CMD
370c56
+The command to execute to send an e-mail. The e-mail text including all
370c56
+headers is passed to the standard input of the command. Default value is
370c56
+.IR "/usr/lib/sendmail -t" .
370c56
+.TP
370c56
+.B MAILDEV
370c56
+The device with disk quotas to exclude from sending notifications if there are
370c56
+exceeded limits. This option should identify the device where mail boxes are
370c56
+stored to prevent from bouncing the warnquota notification by local MDA due to
370c56
+no space for storing new e-mails. Special value
370c56
+.I any
370c56
+denotes all devices.
370c56
+.TP
370c56
+.B PHONE
370c56
+The telephone contact to the user support. Default value is
370c56
+.IR "(xxx) xxx-xxxx or (yyy) yyy-yyyy" .
370c56
+.TP
370c56
+.B SIGNATURE
370c56
+The end of e-mail body if a user exceeds its limits. Default value is
370c56
+a general explanation utilizing
370c56
+.B SUPPORT
370c56
+and
370c56
+.B PHONE
370c56
+values. This option recognizes formatting sequences.
370c56
+.TP
370c56
+.B SUBJECT
370c56
+The text to put into Subject: header. Default value is
370c56
+.IR "Disk Quota usage on system" .
370c56
+.TP
370c56
+.B SUPPORT
370c56
+The contact to the user support. Default value is
370c56
+.IR "support@localhost" .
370c56
+.SH EXAMPLE
370c56
+.PP
370c56
+# comment
370c56
+.RS 0
370c56
+FROM = root@example.com
370c56
+.RS 0
370c56
+SUPPORT = support@example.com
370c56
+.RS 0
370c56
+PHONE = 1234
370c56
+.SH FILES
370c56
+.PD 0 
370c56
+.TP 20 
370c56
+.B /etc/warnquota.conf
370c56
+configuration for
370c56
+.BR warnquota (8)
370c56
+.PD 
370c56
+.SH SEE ALSO
370c56
+.BR warnquota (8).
370c56
-- 
370c56
1.8.3.1
370c56