| 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>prxs: PRoftpd eXtenSion tool</title> |
| 5 | </head> |
| 6 | |
| 7 | <body bgcolor=white> |
| 8 | |
| 9 | <hr><br> |
| 10 | <center> |
| 11 | <h2><b><code>prxs</code>: PRoftpd eXtenSion tool</b></h2> |
| 12 | </center> |
| 13 | <hr><br> |
| 14 | |
| 15 | This <code>prxs</code> program is used to build |
| 16 | <a href="../howto/DSO.html">DSO</a> modules (also known as "shared" modules). |
| 17 | |
| 18 | <p> |
| 19 | The most current version of <code>prxs</code> is distributed with the |
| 20 | ProFTPD source code. |
| 21 | |
| 22 | <h2>Author</h2> |
| 23 | <p> |
| 24 | Please contact TJ Saunders <tj <i>at</i> castaglia.org> with any |
| 25 | questions, concerns, or suggestions regarding this program. |
| 26 | |
| 27 | <p> |
| 28 | <hr><br> |
| 29 | <h2><a name="Usage">Usage</a></h2> |
| 30 | <code>prxs</code> is a tool for building and installing extension modules for |
| 31 | the ProFTPD FTP server. This is achieved by building a dynamic shared object |
| 32 | (<a href="../howto/DSO.html">DSO</a>) from one or more source or object |
| 33 | <em>files</em> which then can be loaded into the ProFTPD server at runtime via |
| 34 | the <a href="../modules/mod_dso.html#LoadModule"><code>LoadModule</code></a> |
| 35 | directive from the <a href="../modules/mod_dso.html"><code>mod_dso</code></a> |
| 36 | module. |
| 37 | |
| 38 | <p> |
| 39 | To use this extension mechanism your platform has to support the DSO feature |
| 40 | <b>and</b> your <code>proftpd</code> executable has to be built with the |
| 41 | <a href="../modules/mod_dso.html"><code>mod_dso</code></a> module. The |
| 42 | <code>prxs</code> tool automatically complains if this is not the case. You |
| 43 | can check this yourself by manually running the command: |
| 44 | <pre> |
| 45 | $ proftpd -l |
| 46 | </pre> |
| 47 | The module <a href="../modules/mod_dso.html"><code>mod_dso</code></a> should |
| 48 | be part of the displayed list. If these requirements are fulfilled you can |
| 49 | easily extend your ProFTPD server's functionality by installing your own |
| 50 | modules with the DSO mechanism by the help of this <code>prxs</code> tool. |
| 51 | |
| 52 | <p> |
| 53 | The <a href="../howto/DSO.html#prxs"><code>DSO</code></a> documentation also |
| 54 | describes how <code>prxs</code> works in more details. |
| 55 | |
| 56 | <p> |
| 57 | <hr><br> |
| 58 | <h2><a name="Options">Options</a></h2> |
| 59 | The following is the output from running <code>prxs --help</code>: |
| 60 | <pre> |
| 61 | usage: prxs <action> <opts> <source files> |
| 62 | |
| 63 | Actions: |
| 64 | |
| 65 | -c, --compile Compiles the listed .c source files into a proftpd |
| 66 | DSO module. |
| 67 | |
| 68 | -i, --install Installs a compiled proftpd DSO module into the |
| 69 | directory where proftpd expects to find loadable |
| 70 | DSO modules. |
| 71 | |
| 72 | -d, --clean Removes any generated files, returning the build |
| 73 | directory to a clean state. |
| 74 | |
| 75 | Options: |
| 76 | |
| 77 | -h, --help Displays this message. |
| 78 | |
| 79 | -n, --name Tells prxs the name of the module being compiled. |
| 80 | By default, prxs determines the module name from |
| 81 | the list of .c files listed, expecting to see a |
| 82 | "mod_$name.c" file. |
| 83 | |
| 84 | -D key Passes these macros through to the compilation step. |
| 85 | -D key=value Note that the space before the key is important. |
| 86 | |
| 87 | -I includedir Specify additional include file search directories. |
| 88 | Note that the space before the directory is important. |
| 89 | |
| 90 | -L libdir Specify additional library file search directories. |
| 91 | Note that the space before the directory is important. |
| 92 | |
| 93 | -l library Specify additional libraries for linking. |
| 94 | Note that the space before the library name is |
| 95 | important. |
| 96 | |
| 97 | At least one of the above actions must be specified when using prxs. More |
| 98 | than one action can be specified at the same time. |
| 99 | |
| 100 | To use prxs all in one step, you could do: |
| 101 | |
| 102 | prxs -c -i -d mod_custom.c |
| 103 | |
| 104 | </pre> |
| 105 | |
| 106 | <p> |
| 107 | <hr> |
| 108 | <font size=2><b><i> |
| 109 | © Copyright 2000-2016 TJ Saunders<br> |
| 110 | All Rights Reserved<br> |
| 111 | </i></b></font> |
| 112 | <hr> |
| 113 | |
| 114 | </body> |
| 115 | </html> |