# -*- 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 github.setup lima-vm socket_vmnet 1.1.4 v categories net maintainers {sub-pop.net:link @subpop} \ openmaintainer license APL-2.0 platforms {darwin >= 19} description vmnet.framework support for rootless QEMU long_description Daemon to provide access to vmnet.framework for rootless QEMU homepage https://github.com/lima-vm/socket_vmnet checksums rmd160 71e08771484d80458c72dba91f987122d17b3a06 \ sha256 1e4152732b355b22cdba88cd28f35f25cce4aab499589d236a95ccb47a90d855 \ size 18851 post-extract { # Base doesn't set SOURCE_DATE_EPOCH so we have to. # https://trac.macports.org/ticket/59672 set latest 0 fs-traverse i [list ${worksrcpath}] { if {[file isfile ${i}]} { set t [file mtime ${i}] if {${t} > ${latest}} { set latest ${t} } } } set fp [open $env(TMPDIR)/SOURCE_DATE_EPOCH w] puts -nonewline ${fp} ${latest} close ${fp} } pre-build { set fp [open $env(TMPDIR)/SOURCE_DATE_EPOCH r] set latest [read ${fp}] close ${fp} build.args-append \ SOURCE_DATE_EPOCH=${latest} } use_configure no build.args VERSION=${version} \ CFLAGS="${configure.cflags}" \ LDFLAGS="${configure.ldflags}" \ PREFIX=${prefix} destroot.target install.bin install.doc destroot.args ${build.args} startupitem.create yes startupitem.logfile /var/log/${name}.log startupitem.user root startupitem.executable ${prefix}/bin/socket_vmnet --vmnet-gateway=192.168.105.1 /var/run/socket_vmnet