diff --git a/Formula/n/netatalk.rb b/Formula/n/netatalk.rb index 4766579702251..7c7adc09aa0d9 100644 --- a/Formula/n/netatalk.rb +++ b/Formula/n/netatalk.rb @@ -23,20 +23,26 @@ class Netatalk < Formula depends_on "libevent" depends_on "libgcrypt" depends_on "mysql" - depends_on "openldap" # LDAP.Framework is not fork safe + depends_on "openldap" # macOS LDAP.Framework is not fork safe uses_from_macos "libxslt" => :build uses_from_macos "perl" + # on macOS we use native mDNS for Zeroconf; Avahi is required on Linux only on_linux do depends_on "avahi" depends_on "dbus" end + patch do + url "https://github.com/Netatalk/netatalk/commit/f6383624fcffac960bedda06a3e97fec5164e9c8.patch?full_index=1" + sha256 "9f5ef8e0ca925786db60b3cbb13b103e46fe1118804137bfa08a80857e955164" + end + def install args = [ "-Dwith-afpstats=false", - "-Dwith-appletalk=#{OS.linux?}", + "-Dwith-appletalk=#{OS.linux?}", # macOS doesn't have an AppleTalk stack "-Dwith-bdb-path=#{Formula["berkeley-db@5"].opt_prefix}", "-Dwith-docbook-path=#{Formula["docbook-xsl"].opt_prefix}/docbook-xsl", "-Dwith-init-style=none",