From 2c0f9fef40009266aebf24d43ed23cb92165d698 Mon Sep 17 00:00:00 2001 From: Zou Guangxian Date: Tue, 3 Sep 2013 17:12:44 +0800 Subject: proftpd Closes #22281. Signed-off-by: Adam Vandenberg --- Library/Formula/proftpd.rb | 69 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Library/Formula/proftpd.rb (limited to 'Library/Formula') diff --git a/Library/Formula/proftpd.rb b/Library/Formula/proftpd.rb new file mode 100644 index 000000000..781eb5603 --- /dev/null +++ b/Library/Formula/proftpd.rb @@ -0,0 +1,69 @@ +require 'formula' + +class Proftpd < Formula + homepage 'http://www.proftpd.org/' + url 'ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.4d.tar.gz' + sha1 'a5b6c80a8ddeeeccc1c6448d797ccd62a3f63b65' + + # fixes unknown group 'nogroup' + def patches + DATA + end + + def install + system "./configure", "--prefix=#{prefix}", + "--sysconfdir=#{etc}", + "--localstatedir=#{var}" + ENV.j1 + system "make", "INSTALL_USER=`whoami`", "INSTALL_GROUP=admin", "install" + end + + def plist; <<-EOS.undent + + + + + Label + #{plist_name} + RunAtLoad + + KeepAlive + + ProgramArguments + + #{opt_prefix}/bin/proftpd + + UserName + root + WorkingDirectory + #{HOMEBREW_PREFIX} + StandardErrorPath + /dev/null + StandardOutPath + /dev/null + + + EOS + end + + def caveats; <<-EOS.undent + The config file is in: + #{HOMEBREW_PREFIX}/etc/proftpd.conf + + proftpd may need to be run as root, depending on configuration + EOS + end +end + +__END__ +--- a/sample-configurations/basic.conf ++++ b/sample-configurations/basic.conf +@@ -27,7 +27,7 @@ + + # Set the user and group under which the server will run. + User nobody +-Group nogroup ++Group nobody + + # To cause every FTP user to be "jailed" (chrooted) into their home + # directory, uncomment this line. -- cgit v1.2.3