| 1 |
ProFTPD third parties module and packages development |
| 2 |
----------------------------------------------------- |
| 3 |
|
| 4 |
Upstream provides `prxs' as a useful tool to build your own proftpd DSO modules. |
| 5 |
The resulting shared library can be loaded in the /usr/lib/proftpd directory to |
| 6 |
allow proftpd finding the additional module. |
| 7 |
This could be done with a command like |
| 8 |
|
| 9 |
prxs -c -i -d mod_foo.c |
| 10 |
|
| 11 |
The resulting module mod_foo.so is strictly binary-dependent on the specific |
| 12 |
version of proftpd you used to build it by prxs. If you prefer creating |
| 13 |
a deb source package Debian proftpd-dev package provides |
| 14 |
|
| 15 |
/usr/share/proftpd/proftpd-substvars |
| 16 |
|
| 17 |
which can be used to introduce a dependency on ${proftpd:Depends} in |
| 18 |
your debian/control for foo binary package. You have to add its contents |
| 19 |
to a debian/<foo>.substvars or debian/substvars with a command like |
| 20 |
|
| 21 |
cat /usr/share/proftpd/proftpd-substvars >>debian/<foo>.substvars |
| 22 |
|
| 23 |
just before calling dh_gencontrol or dpkg-gencontrol. |