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
相关推荐
pop_xiaoli1 天前
【iOS】通知传值实现
macos·ios·xcode
起个破名想半天了1 天前
VMWare安装macOS虚拟机教程
macos
科技侃谈1 天前
Windows和Mac日常使用推荐?联想小新 Air 15 给出大屏新答案
macos
PersistJiao1 天前
针对 Intel Mac 的硬件限制提升faster-whisper字幕识别的方法
macos·whisper
起个破名想半天了1 天前
Vmware安装MacOS虚拟机方法
macos·vmware·unlocker
新手村领路人2 天前
在macos python中安装dlib
开发语言·python·macos
万粉变现经纪人2 天前
2026最新Windows11系统CMD安装Claude Code 快速接入DeepSeek V4 Pro在VSCode编程工具中使用保姆级入门教程指南
linux·运维·ide·windows·vscode·macos·编辑器
少威shaowei2 天前
在 Mac 上搭建 DNS 服务器
运维·服务器·macos
m0_535817552 天前
Mac下Claude Code完整配置指南:API中转+环境变量设置一步到位
gpt·macos·node.js·api·claude·claudecode·88api
鸠摩智首席音效师2 天前
如何在 macOS 上安装 .NET Core ?
macos·.netcore