aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/vsftpd.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-08-25 09:39:16 -0700
committerAdam Vandenberg2012-08-25 09:39:16 -0700
commit9f5dff208b9490b650ef5a40c97d0a6480857afb (patch)
tree78fa948d1a8ea5231744563fcc02885f38e12fba /Library/Formula/vsftpd.rb
parentf061f91a536ea6068e8f3488da6592e108175e3b (diff)
downloadhomebrew-9f5dff208b9490b650ef5a40c97d0a6480857afb.tar.bz2
vsftpd: use new dsl
Diffstat (limited to 'Library/Formula/vsftpd.rb')
-rw-r--r--Library/Formula/vsftpd.rb14
1 files changed, 5 insertions, 9 deletions
diff --git a/Library/Formula/vsftpd.rb b/Library/Formula/vsftpd.rb
index 29a92b566..d101f31ee 100644
--- a/Library/Formula/vsftpd.rb
+++ b/Library/Formula/vsftpd.rb
@@ -1,21 +1,17 @@
require 'formula'
class Vsftpd < Formula
- url 'https://security.appspot.com/downloads/vsftpd-2.3.4.tar.gz'
- md5 '2ea5d19978710527bb7444d93b67767a'
homepage 'https://security.appspot.com/vsftpd.html'
+ url 'https://security.appspot.com/downloads/vsftpd-2.3.4.tar.gz'
+ sha1 'b774cc6b4c50e20f4fe9ca7f6aa74169ce7fe5ea'
- def options
- [
- ["--openssl", "build with OpenSSL"],
- ]
- end
+ option "openssl", "Build with OpenSSL"
# 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"
+ if build.include? "openssl"
inreplace "builddefs.h", "#undef VSF_BUILD_SSL", "#define VSF_BUILD_SSL"
end
@@ -31,7 +27,7 @@ class Vsftpd < Formula
end
def caveats
- if ARGV.include? "--openssl"
+ if build.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.