starting pureftpd port

Scott Haneda talklists at newgeo.com
Fri Sep 18 16:12:56 PDT 2009


http://trac.macports.org/browser/trunk/dports/net/pureftpd/Portfile

I wonder if someone can lend me a hand in figuring out the correct way  
to start this ftpd on Leopard:

 From the current port file:
# Notify the user how to launch the ftpd
post-install {
     ui_msg "\nYou can now start PureFTPd in 3 ways,"
     ui_msg "either via xinetd, in standalone mode, or"
     ui_msg "if you're using Mac OS X 10.4 / Darwin 8.x"
     ui_msg "via launchd(8).\n"
     ui_msg "If you're under Mac OS X 10.3 or Mac OS X 10.4,"
     ui_msg "you have to copy ${prefix}/share/doc/${name}/pure-ftpd"
     ui_msg "to /etc/pam.d and use the '-lpam' flag when"
     ui_msg "launching pure-ftpd to have PAM working.\n"
}

I can start pureftpd and it works from the command line now.  Apple  
has /System/Library/LaunchDaemons/ftp.plist which seems to get the  
disabled key toggled around depending on how your system preferences  
are set.

If I want to maintain that feature, enable and disable by System  
preferences, I take it I would need to alter /System/Library/ 
LaunchDaemons/ftp.plist?

I am thinking in this case, there are so many ways to start this, the  
portfile needs to just install a plist and ui_msg where it is and how  
to enabled it.

I do not know the correct location to put it, and how to configure it  
so that it is on demand.  I believe the Apple ftp dies and only comes  
alive when a request comes in, which is nice, as you do not have a  
ftpd running 24/7, only when you need it.

Thanks
-- 
Scott * If you contact me off list replace talklists@ with scott@ *



More information about the macports-dev mailing list