Skip to content

cryfs: move to fuse, add fs_link variant #28428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 35 additions & 15 deletions net/cryfs/Portfile → fuse/cryfs/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ PortGroup cmake 1.1
PortGroup boost 1.0

github.setup cryfs cryfs 0.11.4
revision 1
revision 2
github.tarball_from releases

license LGPL-3

categories net fuse
categories fuse net
platforms darwin

maintainers {@jolan78 gmail.com:jolan78} openmaintainer
Expand All @@ -30,30 +30,50 @@ checksums rmd160 dc9eb50bad04492bb7b610066661492384665d76 \

extract.mkdir yes

# This has to match the version of libfmt used by spdlog.
# See https://trac.macports.org/ticket/68248
set libfmt_ver 10
set python_branch 3.13
set python_version [string map {. ""} ${python_branch}]
patchfiles gitversion_python3_fix.diff
post-patch {
reinplace "s|@@PYTHONBIN@@|${prefix}/bin/python3.12|g" ${worksrcpath}/src/gitversion/gitversion.cmake
reinplace "s|@@PYTHONBIN@@|${prefix}/bin/python${python_branch}|g" ${worksrcpath}/src/gitversion/gitversion.cmake
}

depends_build-append path:lib/libssl.dylib:openssl \
port:range-v3 \
port:spdlog \
port:python312
port:python${python_version}

depends_lib-append port:curl \
port:libomp
port:spdlog \
port:libomp \
port:libfmt${libfmt_ver}

# This has to match the version of libfmt used by spdlog.
# See https://trac.macports.org/ticket/68248
cmake.module_path-append ${prefix}/lib/libfmt10/cmake
cmake.module_path-append ${prefix}/lib/libfmt${libfmt_ver}/cmake

cmake.build_type Release
universal_variant no

compiler.cxx_standard 2014
compiler.thread_local_storage yes

configure.args-append -DBoost_USE_MULTITHREADED=on \
-DBoost_USE_STATIC_LIBS=off \
-DCRYFS_UPDATE_CHECKS=off \
-DDEPENDENCY_CONFIG=${worksrcpath}/cmake-utils/DependenciesFromLocalSystem.cmake
compiler.thread_local_storage \
yes

configure.args-append -DBoost_USE_MULTITHREADED=on \
-DBoost_USE_STATIC_LIBS=off \
-DCRYFS_UPDATE_CHECKS=off \
-DDEPENDENCY_CONFIG=${worksrcpath}/cmake-utils/DependenciesFromLocalSystem.cmake

variant fs_link description "Link ${name} to a .fs bundle in /Library/Filesystems" {
post-destroot {
set dir /Library/Filesystems/${name}.fs/Contents/Resources
xinstall -d ${destroot}${dir}
ln -s ${prefix}/bin/${name} ${destroot}${dir}/mount_${name}
}

destroot.violate_mtree \
yes

notes-append "
With +fs_link, you may use \'mount -t ${name}\' and use ${name} in /etc/fstab.
"
}
Loading