MacPorts 创建自定义 Portfile 安装 RoadRunner

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=4

PortSystem      1.0

name            roadrunner-server
version         2024.3.4
categories      net
maintainers     nomaintainer
license         MIT

description         High-performance PHP application server
long_description    High-performance PHP application server, \
                    process manager written in Go and powered with plugins.

homepage        https://roadrunner.dev

master_sites    https://github.com/roadrunner-server/roadrunner/releases/download/v${version}
distfiles       roadrunner-${version}-darwin-amd64.zip
distname        roadrunner-${version}

checksums       sha256  6e14f0a8afeb3912ebbf222e36e02240a7bf16aafc70b1408864d5db723f48c0

use_zip         yes
use_configure   no

build {}

destroot {
    xinstall -d ${destroot}${prefix}/bin
    xinstall ${workpath}/roadrunner-${version}-darwin-amd64/rr ${destroot}${prefix}/bin/roadrunner
    ln -sf ${prefix}/bin/roadrunner ${destroot}${prefix}/bin/rr
}

以上版本为 x86 处理器的二进制文件,arm64 需替换 amd64.ziparm64.tar.gz,然后更新 sha256 值和删掉 use_zip yes

升级版本时自行替换版本号和 sha256

最后执行

bash 复制代码
sudo portindex ~/Ports
sudo port install roadrunner-server

通过 port info roadrunner-server 可以查询到如下信息:

bash 复制代码
roadrunner-server @2024.3.4 (net)

Description:          High-performance PHP application server, process manager written in Go and powered with plugins.
Homepage:             https://roadrunner.dev

Extract Dependencies: unzip
Platforms:            darwin
License:              MIT
Maintainers:          none
相关推荐
csdn_aspnet1 天前
在 MacOS 中安装 MySQL 8
mysql·macos
木兰不吃草1 天前
完美解决在最新系统 MacOS 26 无法使用 playCover 键盘映射的问题(下载安装教程,完美适配)
macos·键盘映射·playcover·mac26
乾坤瞬间2 天前
【Deepseek OCR】重磅测试,mac环境下的体验【本人已经本地实验成功】
macos·ocr
开发者驿站2 天前
2025年保姆级C++环境配置教程(Windows/macOS双平台)
c++·windows·macos
猫头虎2 天前
解决升级IDEA2025.2后,每次打开Maven项目爆红的问题:Windows和Mac解决方案
java·ide·macos·maven·intellij-idea·idea·intellij idea
白玉cfc2 天前
【iOS】KVC 与 KVO 的基本了解与使用
macos·ios·objective-c·cocoa
马拉萨的春天2 天前
谈谈你对iOS的runtime和runloop的了解
macos·ios·cocoa
xingxing_F2 天前
A Better Finder Rename for mac 文件批量重命名
macos
0wioiw02 天前
RealVNC Viewer(Windows控制Mac)
macos
xingxing_F2 天前
Beyond Compare 5 for Mac 好用的文件对比工具
macos