Skip to content

Commit

Permalink
netatalk4: Add port
Browse files Browse the repository at this point in the history
New major version of netatalk is from a new upstream maintainer.
https://netatalk.io/

Tested on:
macOS 15.3 arm64 & x86_64
  • Loading branch information
trodemaster committed Mar 4, 2025
1 parent aded4a4 commit 40b3bf3
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions net/netatalk4/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0
PortGroup meson 1.0

name netatalk4
conflicts netatalk

github.setup Netatalk netatalk netatalk-4-1-2
github.tarball_from archive
revision 0

checksums rmd160 b6953e69144d6542c1b426015635d58f695cdba9 \
sha256 012f2a32c4904f4010c1b924e5c01cf16dfc628cb32965be54479721f30aa30d \
size 1327961

categories net
license GPL-2+
maintainers {openmaintainer github:trodemaster}

description Netatalk is a freely-available Open Source AFP fileserver.
long_description Netatalk is a freely-available Open Source AFP fileserver. \
It allows Unix-like operating systems to serve as file \
servers for Macintosh computers.

homepage https://netatalk.io

depends_lib port:db48 \
port:libevent \
port:pkgconfig \
port:libgcrypt

platform darwin {
if {${os.major} < 10} {
variant appletalk description {Build with AppleTalk support} {
configure.args-append -Dwith-appletalk=true
}
} else {
variant appletalk description {Build with AppleTalk support (removed)} {
error "AppleTalk support has been removed from macOS versions greater than 10.5.x ."
}
}
}

configure.args -Dwith-init-style=none \
-Dwith-pam-config-path=${prefix}/etc/pam.d \
-Dwith-lockfile-path=${prefix}/var/run

startupitem.create yes
startupitem.executable ${prefix}/sbin/netatalk -d -F ${prefix}/etc/afp.conf
startupitem.logfile ${prefix}/var/log/${name}.log
startupitem.logfile.stderr ${prefix}/var/log/${name}-stderr.log
startupitem.logevents yes
startupitem.debug yes

livecheck.type regex
livecheck.url https://github.com/Netatalk/netatalk/releases
livecheck.regex {Latest release.*?v?(\d+(?:\.\d+)+)}

notes "
Configuration files can be found in:
${prefix}/etc/
Log files can be found in:
${prefix}/var/log/
"

0 comments on commit 40b3bf3

Please sign in to comment.