netatalk_client: Submission

This commit is contained in:
Steven Thomas Smith
2026-05-02 22:11:50 -04:00
committed by Renee Otten
parent c13d8b2f57
commit 2a8e16f543
2 changed files with 80 additions and 0 deletions
+58
View File
@@ -0,0 +1,58 @@
# -*- 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 fuse 1.0
PortGroup github 1.0
PortGroup legacysupport 1.1
PortGroup meson 1.0
# strnlen
legacysupport.newest_darwin_requires_legacy 10
github.setup Netatalk netatalk_client 0.9.4
revision 0
categories-append net fuse
license GPL-2
maintainers nomaintainer
github.tarball_from archive
description AFP file sharing client
long_description Netatalk Client is a file sharing client written \
in C which can be used to access AFP shares exposed \
by multiple devices, notably personal file sharing \
on older Mac OS X and Classic Mac OS computers, \
Netatalk servers hosted on Linux/*BSD/Solaris/macOS, \
Apple AirPort and Time Capsule products as well as \
other AFP enabled NAS devices from various vendors. \
Netatalk Client is an improved fork of afpfs-ng.
homepage https://netatalk.io/
checksums rmd160 4d962510ba583889d5fe8e53500a41e9a25e5a24 \
sha256 9c50ee65f870cdd09b6989a546561476e082b72539631c07f34a26b9fbaea045 \
size 221117
meson.wrap_mode nodownload
if {${os.platform} eq "darwin" && ${os.major} < 10} {
patchfiles-append \
patch-10.5-compat.diff
configure.args-append \
-Dforce-fuse-v2=true
}
if {${os.platform} eq "darwin" && ${os.major} > 22} {
configure.cflags-append \
-Wno-error=incompatible-function-pointer-types
}
depends_lib-append port:libgcrypt \
port:libiconv \
port:readline
compiler.c_standard 2011
configure.args-append \
-Denable-fuse=true
@@ -0,0 +1,22 @@
--- lib/lowlevel.c 2026-02-09 04:09:54.000000000 +0800
+++ lib/lowlevel.c 2026-02-22 08:03:20.000000000 +0800
@@ -24,6 +24,10 @@
#include "midlevel.h"
#include "forklist.h"
+#ifdef __APPLE__
+#include <AvailabilityMacros.h>
+#endif
+
static void set_nonunix_perms(unsigned int * mode, struct afp_file_info *fp)
{
if (fp->isdir) {
@@ -721,7 +725,7 @@
stbuf->st_ctime = creation_date;
stbuf->st_mtime = modification_date;
#endif
-#ifdef __APPLE__
+#if defined(__APPLE__) && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1060)
/* On macOS, set birthtimespec for Finder display (handled by stat_to_darwin_attr) */
stbuf->st_birthtimespec.tv_sec = creation_date;
stbuf->st_birthtimespec.tv_nsec = 0;