Skip to content

Commit

Permalink
Merge pull request #17931 from wolfi-dev/libfido2
Browse files Browse the repository at this point in the history
feat(packages): Add libfido2 and libcbor
  • Loading branch information
dlorenc authored Apr 27, 2024
2 parents f93e45e + aaf3566 commit 736d090
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 0 deletions.
43 changes: 43 additions & 0 deletions libcbor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package:
name: libcbor
version: 0.11.0
epoch: 0
description: CBOR protocol implementation for C
copyright:
- license: MIT

environment:
contents:
packages:
- build-base
- busybox

pipeline:
- uses: git-checkout
with:
expected-commit: 170bee2b82cdb7b2ed25af301f62cb6efdd40ec1
repository: https://github.com/PJK/libcbor
tag: v${{package.version}}

- uses: cmake/configure

- uses: cmake/build

- uses: cmake/install

- uses: strip

subpackages:
- name: libcbor-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- libcbor
description: libcbor dev

update:
enabled: true
github:
identifier: PJK/libcbor
strip-prefix: v
68 changes: 68 additions & 0 deletions libfido2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
package:
name: libfido2
version: 1.14.0
epoch: 0
description: library for FIDO 2.0 functionality
copyright:
- license: BSD-2-Clause

environment:
contents:
packages:
- build-base
- busybox
- eudev-dev
- libcbor-dev
- linux-headers
- openssl-dev
- zlib-dev

pipeline:
- uses: git-checkout
with:
expected-commit: 1370bc4aeefc188a0797222ecc45458271906a73
repository: https://github.com/Yubico/libfido2
tag: ${{package.version}}

- uses: cmake/configure

- uses: cmake/build

- uses: cmake/install

- runs: |
install -Dm644 -t ${{targets.contextdir}}/lib/udev/rules.d/ ./udev/70-u2f.rules
- uses: strip

subpackages:
- name: libfido2-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- libfido2
description: libfido2 dev

- name: libfido2-doc
pipeline:
- uses: split/manpages
description: libfido2 manpages

- name: fido2
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/usr/bin
mv ${{targets.destdir}}/usr/bin/* ${{targets.contextdir}}/usr/bin/
test:
pipeline:
- runs: |
command -v fido2-assert
command -v fido2-cred
fido2-token -V
update:
enabled: true
github:
identifier: Yubico/libfido2
use-tag: true

0 comments on commit 736d090

Please sign in to comment.