From 66886e27fdbdb858c0a6b113e4e367127b07d043 Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Thu, 16 Jan 2025 07:10:14 +0100 Subject: [PATCH] feat: add blackfire for 8.4 --- php-8.4-blackfire.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 php-8.4-blackfire.yaml diff --git a/php-8.4-blackfire.yaml b/php-8.4-blackfire.yaml new file mode 100644 index 0000000..7d4318f --- /dev/null +++ b/php-8.4-blackfire.yaml @@ -0,0 +1,55 @@ +package: + name: php-8.4-blackfire + version: 1.92.32 + epoch: 0 + description: "Blackfire PHP Probe" + copyright: + - license: PROPRIETARY + dependencies: + runtime: + - ${{package.name}}-config + - php-8.4 + +environment: + contents: + packages: + - busybox + +pipeline: + - uses: fetch + if: ${{build.arch}} == 'x86_64' + with: + uri: https://packages.blackfire.io/binaries/blackfire-php/${{package.version}}/blackfire-php-linux_amd64-php-84.so + expected-sha512: aa6755a30c2c7d27ed33c172662fa9a8932043309bb17854443f783af0756d8e89017e0776d86e7de033f98bbfb2a75ad2b737d6eb7bd4e4e3dbf6cf9acdea13 + extract: false + + - uses: fetch + if: ${{build.arch}} == 'aarch64' + with: + uri: https://packages.blackfire.io/binaries/blackfire-php/${{package.version}}/blackfire-php-linux_arm64-php-84.so + expected-sha512: 32d829a942db74e0ab72ead7c447359f749708317de3145d788a5e6a3150ea2157edbe23616e961a1417f59176c919abb23d5051e0545f578585aaad0e3d3533 + extract: false + + - name: Copy + if: ${{build.arch}} == 'x86_64' + runs: | + mkdir -p ${{targets.destdir}}/usr/lib/php/modules/ + cp blackfire-php-linux_amd64-php-84.so ${{targets.destdir}}/usr/lib/php/modules/blackfire.so + + - name: Copy + if: ${{build.arch}} == 'aarch64' + runs: | + mkdir -p ${{targets.destdir}}/usr/lib/php/modules/ + cp blackfire-php-linux_arm64-php-84.so ${{targets.destdir}}/usr/lib/php/modules/blackfire.so + +subpackages: + - name: ${{package.name}}-config + pipeline: + - runs: | + mkdir -p "${{targets.subpkgdir}}/etc/php/conf.d" + echo "extension=blackfire.so" > "${{targets.subpkgdir}}/etc/php/conf.d/blackfire.ini" + +update: + enabled: true + release-monitor: + identifier: 371867