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
相关推荐
心灵宝贝20 小时前
Kite Compositor for Mac v2.1.2 安装教程|DMG文件安装步骤(Mac用户必看)
macos
他们都不看好你,偏偏你最不争气1 天前
【iOS】UIViewController
开发语言·macos·ios·objective-c·cocoa
李游Leo1 天前
Rust 开发环境安装与 crates.io 国内源配置(Windows / macOS / Linux 全流程)
windows·macos·rust
库奇噜啦呼1 天前
【iOS】UIViewController生命周期
macos·ios·cocoa
开开心心loky1 天前
[iOS] 属性关键字
macos·ios·objective-c·cocoa·xcode
帅得不敢出门2 天前
macOS苹果电脑运行向日葵远程控制软件闪退
windows·macos·远程控制·向日葵
夏小花花2 天前
Mac m系列芯片向日葵打不开 解决方案
macos·mac
刹_那2 天前
MAC 多个版本 JDK进行切换
macos
应凌云2 天前
Mac环境Neovim 与 LazyVim 安装指南
macos
开开心心loky2 天前
[iOS] ViewController 的生命周期
macos·ui·ios·objective-c·cocoa