Skip to content

Commit

Permalink
netatalk 4.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmark committed Dec 29, 2024
1 parent 1074ae9 commit 8bb667f
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions Formula/n/netatalk.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
class Netatalk < Formula
desc "File server for Macs, compliant with Apple Filing Protocol (AFP)"
homepage "https://netatalk.io"
url "https://github.com/Netatalk/netatalk/releases/download/netatalk-4-0-8/netatalk-4.0.8.tar.xz"
sha256 "d09d591521b27b91b1c2a6255a2e059af8c9fda43570f983f0a145706e5f7628"
license all_of: [
"GPL-2.0-only",
"GPL-2.0-or-later",
"LGPL-2.0-only",
"LGPL-2.1-or-later",
"BSD-2-Clause",
"BSD-3-Clause",
"MIT",
]
head "https://github.com/Netatalk/netatalk.git", branch: "main"

depends_on "docbook-xsl" => :build
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkgconf" => :build

depends_on "berkeley-db" # macOS bdb library is outdated
depends_on "libevent"
depends_on "libgcrypt"
depends_on "mysql"
depends_on "openldap" # macOS LDAP.Framework is deprecated

uses_from_macos "libxslt" => :build
uses_from_macos "perl"

def install

Check failure on line 31 in Formula/n/netatalk.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew install --verbose --formula --build-bottle netatalk` failed on Linux!

::error::netatalk 4.0.8 did not build
prefix_path = ENV["HOMEBREW_PREFIX"]

args = %w[
-Dwith-afpstats=false
-Dwith-init-style=none
-Dwith-spotlight=false
]

args << "-Dwith-bdb-path=#{prefix_path}/opt/berkeley-db"
args << "-Dwith-docbook-path=#{prefix_path}/opt/docbook-xsl/docbook-xsl"
args << "-Dwith-pam-config-path=#{prefix_path}/etc/pam.d"

args << "-Dwith-appletalk=true" if OS.linux?

system "meson", "setup", "build", *args, *std_meson_args
system "meson", "compile", "-C", "build", "--verbose"
system "meson", "install", "-C", "build"
end

test do
system sbin/"netatalk", "-V"
system sbin/"afpd", "-V"
end
end

0 comments on commit 8bb667f

Please sign in to comment.