diff options
| author | Pete Yandell | 2010-09-09 15:56:24 +1000 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-06 18:52:59 -0700 |
| commit | 5f7cb1150343c299d91936766b02256f37d84793 (patch) | |
| tree | 62dc5deef52a3372fbbb05ec392705ec44ec325a /Library/Formula | |
| parent | 45517ffc196c616747763703fc238906e0daaab7 (diff) | |
| download | homebrew-5f7cb1150343c299d91936766b02256f37d84793.tar.bz2 | |
Added formula for vsftpd.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/vsftpd.rb | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Library/Formula/vsftpd.rb b/Library/Formula/vsftpd.rb new file mode 100644 index 000000000..ea8de17dc --- /dev/null +++ b/Library/Formula/vsftpd.rb @@ -0,0 +1,54 @@ +require 'formula' + +class Vsftpd <Formula + url 'ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.3.2.tar.gz' + md5 'bad7b117d737a738738836041edc00db' + homepage 'http://vsftpd.beasts.org/' + + def patches + # Patch so vsftpd doesn't depend on UTMPX, and can't find OS X's PAM library. + DATA + end + + def install + inreplace "defs.h", "/etc/vsftpd.conf", "#{etc}/vsftpd.conf" + inreplace "tunables.c", "/etc", etc + inreplace "tunables.c", "/var", var + system "make" + + # make install has all the paths hardcoded, so it's simpler to do this by hand: + sbin.install "vsftpd" + man5.install "vsftpd.conf.5" + man8.install "vsftpd.8" + end +end + +__END__ +diff --git a/sysdeputil.c b/sysdeputil.c +index 9dc8a5e..66dbe30 100644 +--- a/sysdeputil.c ++++ b/sysdeputil.c +@@ -64,6 +64,10 @@ + #include <utmpx.h> + + /* BEGIN config */ ++#if defined(__APPLE__) ++ #undef VSF_SYSDEP_HAVE_UTMPX ++#endif ++ + #if defined(__linux__) + #include <errno.h> + #include <syscall.h> +diff --git a/vsf_findlibs.sh b/vsf_findlibs.sh +index b988be6..68d4a34 100755 +--- a/vsf_findlibs.sh ++++ b/vsf_findlibs.sh +@@ -20,6 +20,8 @@ if find_func pam_start sysdeputil.o; then + locate_library /usr/lib/libpam.sl && echo "-lpam"; + # AIX ends shared libraries with .a + locate_library /usr/lib/libpam.a && echo "-lpam"; ++ # Mac OS X / Darwin shared libraries with .dylib ++ locate_library /usr/lib/libpam.dylib && echo "-lpam"; + else + locate_library /lib/libcrypt.so && echo "-lcrypt"; + locate_library /usr/lib/libcrypt.so && echo "-lcrypt"; |
