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
相关推荐
Genie cloud1 天前
在 Mac 上使用 Docker 安装宝塔并部署 LNMP 环境
macos·docker·容器·云计算
清蒸鳜鱼1 天前
【Mobile Agent——Droidrun】MacOS+Android配置、使用指南
android·macos·mobileagent
linweidong1 天前
屏幕尺寸的万花筒:如何在 iOS 碎片化生态中以不变应万变?
macos·ios·移动开发·objective-c·cocoa·ios面试·ios面经
TESmart碲视1 天前
如何用一套键盘鼠标切换多个输入设备?TESmart KVM热键工作原理深度解析.一份涵盖设计原理、使用方法与兼容性的完整技术指南
游戏·macos·计算机外设·kvm切换器·双屏kvm切换器
Roc.Chang1 天前
Cursor / VS Code 常用快捷键对比表(Windows / Linux / macOS)
linux·windows·vscode·macos
2601_949146531 天前
Objective-C短信验证码接口开发:封装一个基础的网络请求工具方法
macos·objective-c·cocoa
刘某某.1 天前
mac 上 WPS 公式字体不对
macos·wps
椰汁菠萝2 天前
apt命令安装docker
docker·容器·apt·安装
Feibo20112 天前
映射到本地mklink
python·macos
我是六月生2 天前
MacOS启动盘制作(可多合一),并实现MacOS降版本
macos