These seem to be scoreboard files, which amount to live stats. I am really new to this territory, and trying to see what I can do to help, so be kind.

grepping the source:
ftpwho-update.h

# ifdef NON_ROOT_FTP
#  define SCOREBOARD_PATH CONFDIR "/pure-ftpd-ftpwho"
# else
#  define SCOREBOARD_PATH "/var/run/pure-ftpd"
# endif
#define SCOREBOARD_PREFIX "client-"

I am assuming # is not a comment in C, or has special treatment. That path is hard coded, I believe there would need to be a patch made for the portfile to change that to that of ${prefix} in front of it?

But this may just be the ftpwho command, and where it looks. I can not find solid reference to where the actual creation of the scoreboard directory happens at.

The man pages, make multiple references to non ${prefix} based locations. I suppose those need cleaning as well?

This is a strange one, as you can supply the path to the ftp.log and ftp.xfer.log as startup args, in which case I get to put them wherever I want. I chose to put them in ${prefix}.

However, each of the defaults is in fact hard coded into the source, and I am guessing needs to be patched.

Curious, is the correct procedure to have arbitrary paths that people may want to change be a configure option, Or is it unique to Mac Ports, and just reinplace the files carefully?

I will do my best on this one, but it may be out of my league. It is currently nomaintainer, so I could take it over, but will need a little handholding I suspect.
--
Scott * If you contact me off list replace talklists@ with scott@ *

On Oct 9, 2009, at 1:33 AM, Scott Haneda wrote:

$file /var/run/pure-ftpd/
/var/run/pure-ftpd/: directory

$ls -la /var/run/pure-ftpd | wc -l
     98

I can not determine from the docs, or google, what these 98 files are.
-rw-------  1 root  daemon  1448 Oct  9 00:59 client-00014270
-rw-------  1 root  daemon  1448 Oct  9 01:01 client-00014287
-rw-------  1 root  daemon  1448 Oct  9 01:02 client-00014290
-rw-------  1 root  daemon  1448 Oct  9 01:05 client-00014299
...

$file client-00014310
client-00014310: data

There should also be a pure-ftpd.pid file in ${prefix}/var/run which is missing from both locations. From what I understand, pureftpd starts on demand, and is not always running, so I made sure to login via ftp and look for a pid file, none to be found.

I am going to cross post parts of this sans the ${prefix} stuff to the pureftpd mailing list and will report back any findings.

_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to