diff options
| author | Andrew J. Erickson | 2011-11-06 14:59:08 -0800 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-11-10 11:21:23 -0800 |
| commit | 290c81f5f468672281aafa7db3f08395d92a716e (patch) | |
| tree | c867a0b6ca44ede50e16c85e73d2c64b5a114666 /Library/Formula/vsftpd.rb | |
| parent | d9a8b8d6969393309bb955f35827d0829106001d (diff) | |
| download | homebrew-290c81f5f468672281aafa7db3f08395d92a716e.tar.bz2 | |
vsftpd: allow building with openssl via option
Closes #8476.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula/vsftpd.rb')
| -rw-r--r-- | Library/Formula/vsftpd.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/vsftpd.rb b/Library/Formula/vsftpd.rb index c85fd8f2e..29a92b566 100644 --- a/Library/Formula/vsftpd.rb +++ b/Library/Formula/vsftpd.rb @@ -5,10 +5,20 @@ class Vsftpd < Formula md5 '2ea5d19978710527bb7444d93b67767a' homepage 'https://security.appspot.com/vsftpd.html' + def options + [ + ["--openssl", "build with OpenSSL"], + ] + end + # Patch so vsftpd doesn't depend on UTMPX, and can't find OS X's PAM library. def patches; DATA; end def install + if ARGV.include? "--openssl" + inreplace "builddefs.h", "#undef VSF_BUILD_SSL", "#define VSF_BUILD_SSL" + end + inreplace "defs.h", "/etc/vsftpd.conf", "#{etc}/vsftpd.conf" inreplace "tunables.c", "/etc", etc inreplace "tunables.c", "/var", var @@ -19,6 +29,15 @@ class Vsftpd < Formula man5.install "vsftpd.conf.5" man8.install "vsftpd.8" end + + def caveats + if ARGV.include? "--openssl" + return <<-EOD.undent + vsftpd was compiled with SSL support. To use it you must generate a SSL + certificate and set 'enable_ssl=YES' in your config file. + EOD + end + end end __END__ |
