diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2025-03-02 11:54:10 -0500 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2025-03-02 11:54:10 -0500 |
commit | fb85eae7889e1f780fea46ee19031a78fd6e38b8 (patch) | |
tree | dc6a0b08aa1f95bfe361ec236b4b6e81d1c41ef6 /net/netatalk4/files/patch-meson.build | |
parent | graphics/rigsofrods-pagedgeometry: Update 1.2.0 => 1.2.0.20240708 (latest sna... (diff) |
net/netatalk[34]: Add a new port, netatalk4
Netatalk4 is the latest release of the Netatalk Open Source macOS AFPD
file server suite.
For now, both netatalk3 and netatalk4 will remain, but it is becoming
clear, netatalk4 is The Way™, and netatalk3 should be considered
deprecated.
Netatalk4 has had several releases already, so the underlying afpd
server should be quite stable. Note that since FreeBSD removed
AppleTalk (ddp) support a while ago, that part of netatalk4 is not
enabled.
See https://github.com/Netatalk/netatalk/releases for a summary of all
changes since netatalk3.
Diffstat (limited to 'net/netatalk4/files/patch-meson.build')
-rw-r--r-- | net/netatalk4/files/patch-meson.build | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/net/netatalk4/files/patch-meson.build b/net/netatalk4/files/patch-meson.build new file mode 100644 index 000000000000..e37e854f53c3 --- /dev/null +++ b/net/netatalk4/files/patch-meson.build @@ -0,0 +1,79 @@ +--- meson.build.orig 2025-02-10 20:41:20 UTC ++++ meson.build +@@ -66,6 +66,7 @@ libdir = prefix / get_option('libdir') + datadir = prefix / get_option('datadir') + includedir = prefix / get_option('includedir') + libdir = prefix / get_option('libdir') ++libexecdir = prefix / get_option('libexecdir') + mandir = prefix / get_option('mandir') + sbindir = prefix / get_option('sbindir') + sysconfdir = prefix / get_option('sysconfdir') +@@ -138,7 +139,7 @@ statedir = '-D_PATH_STATEDIR="' + localstatedir + '/ne + dversion = '-DVERSION="' + netatalk_version + '"' + messagedir = '-DSERVERTEXT="' + localstatedir + '/netatalk/msg/"' + statedir = '-D_PATH_STATEDIR="' + localstatedir + '/netatalk/"' +-uamdir = '-D_PATH_AFPDUAMPATH="' + libdir + '/netatalk/"' ++uamdir = '-D_PATH_AFPDUAMPATH="' + libexecdir + '/netatalk-uams/"' + + ############ + # Includes # +@@ -464,6 +465,7 @@ bdb_subdirs = [ + endif + + bdb_subdirs = [ ++ '%%DB_NAME%%', + 'db62', + 'db6.2', + 'db61', +@@ -641,6 +643,11 @@ if crypt.found() + if crypt.found() + cdata.set('HAVE_CRYPT_H', 1) + cdata.set('HAVE_LIBCRYPT', 1) ++else ++ crypt = cc.find_library('crypt', has_headers: 'unistd.h', required: false) ++ if crypt.found() ++ cdata.set('HAVE_LIBCRYPT', 1) ++ endif + endif + + # +@@ -819,12 +826,12 @@ dns_sd_libs = [] + + dns_sd_libs = [] + +-dns_sd = cc.find_library('dns_sd', required: false) ++dns_sd = cc.find_library('dns_sd', dirs: libsearch_dirs, required: false) + if dns_sd.found() + dns_sd_libs += dns_sd + endif + +-system = cc.find_library('system', required: false) ++system = cc.find_library('system', dirs: libsearch_dirs, required: false) + if dns_sd.found() + dns_sd_libs += system + endif +@@ -838,6 +845,8 @@ have_dns = ( + ) + ) + ++threads = dependency('threads', required: true) ++ + if enable_zeroconf + if avahi.found() + have_zeroconf = true +@@ -854,6 +863,7 @@ if enable_zeroconf + cdata.set('HAVE_MDNS', 1) + cdata.set('freebsd_zeroconf', 'mdnsd') + zeroconf_provider += 'mDNS' ++ dns_sd_libs += threads + endif + endif + +@@ -1709,6 +1719,7 @@ if not enable_pam + + if not enable_pam + have_pam = false ++ pam = dependency('', required: false) + else + if host_os != 'sunos' + pam_paths = [ |