Portfile
放 ~/Ports/net/roadrunner-server
下:
# -*- 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=4PortSystem 1.0name roadrunner-server
version 2024.3.4
categories net
maintainers nomaintainer
license MITdescription High-performance PHP application server
long_description High-performance PHP application server, \process manager written in Go and powered with plugins.homepage https://roadrunner.devmaster_sites https://github.com/roadrunner-server/roadrunner/releases/download/v${version}
distfiles roadrunner-${version}-darwin-amd64.zip
distname roadrunner-${version}checksums sha256 6e14f0a8afeb3912ebbf222e36e02240a7bf16aafc70b1408864d5db723f48c0use_zip yes
use_configure nobuild {}destroot {xinstall -d ${destroot}${prefix}/binxinstall ${workpath}/roadrunner-${version}-darwin-amd64/rr ${destroot}${prefix}/bin/roadrunnerln -sf ${prefix}/bin/roadrunner ${destroot}${prefix}/bin/rr
}
以上版本为 x86
处理器的二进制文件,arm64
需替换 amd64.zip
为 arm64.tar.gz
,然后更新 sha256
值和删掉 use_zip yes
行
升级版本时自行替换版本号和 sha256
值
最后执行
sudo portindex ~/Ports
sudo port install roadrunner-server
通过 port info roadrunner-server
可以查询到如下信息:
roadrunner-server @2024.3.4 (net)Description: High-performance PHP application server, process manager written in Go and powered with plugins.
Homepage: https://roadrunner.devExtract Dependencies: unzip
Platforms: darwin
License: MIT
Maintainers: none