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
相关推荐
Everbrilliant898 小时前
Xcode上编译调试ffmpeg
macos·ffmpeg·xcode·ffmpeg源码编译工具·xcode调试ffmpeg源码·ffmpeg工具环境变量配置
感谢地心引力8 小时前
iOS26 打开开发者模式
windows·macos·ios·iphone·ios26
追光天使21 小时前
Mac 安装Neo4j教程
macos·neo4j
一勺菠萝丶1 天前
macOS 终端配置全攻略:zsh、bash_profile、zprofile、zshrc 到 nvm 配置的完整科普
macos·bash·策略模式
2501_915909062 天前
iOS 应用上架全流程解析,苹果应用发布步骤、ipa 上传工具、TestFlight 测试与 App Store 审核经验
android·macos·ios·小程序·uni-app·cocoa·iphone
Jouzzy2 天前
【iOS安全】iPhone X iOS 16.7.11 (20H360) Palera1n MacOS版 越狱教程
macos·ios·iphone
@@神农2 天前
maven的概述以及在mac安装配置
java·macos·maven
不老刘2 天前
macOS/Linux ClaudeCode 安装指南及 Claude Sonnet 4.5 介绍
linux·macos·ai编程·claude·vibecoding
醉、倾城3 天前
面向开发人员的macOS入门教程
macos·策略模式
2501_916013743 天前
iOS 26 系统流畅度检测 从视觉特效到帧率稳定的实战策略
android·macos·ios·小程序·uni-app·cocoa·iphone