We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c2b5f commit 6eb3344Copy full SHA for 6eb3344
Formula/v/vsftpd.rb
@@ -28,6 +28,11 @@ class Vsftpd < Formula
28
29
uses_from_macos "perl" => :build
30
31
+ on_linux do
32
+ depends_on "libcap"
33
+ depends_on "linux-pam"
34
+ end
35
+
36
# Patch to remove UTMPX dependency, locate macOS's PAM library, and
37
# remove incompatible LDFLAGS. (reported to developer via email)
38
patch do
@@ -47,7 +52,9 @@ def install
47
52
inreplace "defs.h", "/etc/vsftpd.conf", "#{etc}/vsftpd.conf"
48
53
inreplace "tunables.c", "/etc", etc
49
54
inreplace "tunables.c", "/var", var
50
- system "make"
55
56
+ args = OS.linux? ? ["LIBS=-lcap -lpam"] : []
57
+ system "make", *args
51
58
59
# make install has all the paths hardcoded; this is easier:
60
sbin.install "vsftpd"
0 commit comments