Debian Codegraph @

doc/contrib/mod_readme.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>ProFTPD module mod_readme</title>
5 </head>
6
7 <body bgcolor=white>
8
9 <hr>
10 <center>
11 <h2><b>ProFTPD module <code>mod_readme</code></b></h2>
12 </center>
13 <hr><br>
14
15 <p>
16 This module is contained in the <code>mod_readme.c</code> file for
17 ProFTPD 1.3.<i>x</i>, and is not compiled by default. Installation
18 instructions are discussed <a href="#Installation">here</a>.
19
20 <p>
21 The most current version of <code>mod_readme</code> is distributed with the
22 ProFTPD source code.
23
24 <h2>Directives</h2>
25 <ul>
26 <li><a href="#DisplayReadme">DisplayReadme</a>
27 </ul>
28
29 <hr>
30 <h3><a name="DisplayReadme">DisplayReadme</a></h3>
31 <strong>Syntax:</strong> DisplayReadme <em>path|pattern</em><br>
32 <strong>Default:</strong> None<br>
33 <strong>Context:</strong> server config, <code>&lt;VirtualHost&gt;</code>, <code>&lt;Global&gt;</code>, <code>&lt;Anonymous&gt;</code><br>
34 <strong>Module:</strong> mod_readme<br>
35 <strong>Compatibility:</strong> 1.2.0pre8 and later
36
37 <p>
38 The <code>DisplayReadme</code> directive configures the server to notify
39 the client of the last modified date of the specified <em>path</em> or
40 <em>pattern</em>. These notifications happen whenever a client logs in,
41 or whenever the client changes directory.
42
43 <p>
44 For example:
45 <pre>
46 DisplayReadme README
47 </pre>
48 will result in the following being displayed to connecting client, assuming
49 there is a file called "README" in the current directory:
50 <blockquote>
51 Please read the file README
52 it was last modified on Sun Oct 17 10:36:14 2011 - 0 days ago
53 </blockquote>
54
55 <p>
56 As another example, assume there are two files named "README" and
57 "README.first" in the directory into which the client changed. Then using
58 <pre>
59 DisplayReadme README*
60 </pre>
61 might result in the following being sent to the client:
62 <blockquote>
63 Please read the file README
64 it was last modified on Tue Jan 25 04:47:48 2011 - 0 days ago
65 Please read the file README.first
66 it was last modified on Tue Jan 25 04:48:04 2011 - 0 days ago
67 </blockquote>
68
69 <p>
70 <hr>
71 <h2><a name="Installation">Installation</a></h2>
72 To install <code>mod_readme</code>, follow the usual steps for using
73 third-party modules in ProFTPD:
74 <pre>
75 $ ./configure --with-modules=mod_readme ...
76 </pre>
77 To build <code>mod_readme</code> as a DSO module:
78 <pre>
79 # ./configure --enable-dso --with-shared=mod_readme
80 </pre>
81 Then follow the usual steps:
82 <pre>
83 $ make
84 $ make install
85 </pre>
86
87 <p>
88 Alternatively, if your <code>proftpd</code> was compiled with DSO support,
89 you can use the <code>prxs</code> tool to build <code>mod_readme</code> as
90 a shared module:
91 <pre>
92 $ prxs -c -i -d mod_readme.c
93 </pre>
94
95 <p>
96 <hr>
97 <font size=2><b><i>
98 &copy; Copyright 2011-2013 TJ Saunders<br>
99 All Rights Reserved<br>
100 </i></b></font>
101 <hr>
102
103 </body>
104 </html>