-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathcryptsetup.yaml
145 lines (131 loc) · 3.59 KB
/
cryptsetup.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Generated from https://git.alpinelinux.org/aports/plain/main/cryptsetup/APKBUILD
package:
name: cryptsetup
version: 2.7.5
epoch: 21
description: Userspace setup tool for transparent encryption of block devices using the Linux 2.6 cryptoapi
copyright:
- license: GPL-2.0-or-later WITH cryptsetup-OpenSSL-exception
dependencies:
runtime:
- merged-sbin
- wolfi-baselayout
var-transforms:
- from: ${{package.version}}
match: ^(\d+\.\d+)\.\d+$
replace: "$1"
to: major-minor-version
environment:
contents:
packages:
- argon2-dev
- asciidoctor
- autoconf
- automake
- bash
- build-base
- busybox
- ca-certificates-bundle
- coreutils
- json-c-dev
- libssh
- libssh-dev
- lvm2-dev
- openssl-dev
- popt-dev
- util-linux-dev
pipeline:
- uses: fetch
with:
expected-sha256: f2c6d22e53435de5d35dc9fdc86600d3e5e2227d27970b07a8e6a0f9f7bd42ac
uri: https://www.kernel.org/pub/linux/utils/cryptsetup/v${{vars.major-minor-version}}/cryptsetup-${{package.version}}.tar.gz
- uses: autoconf/configure
with:
opts: |
--build="$CBUILD" \
--host="$CHOST" \
--prefix=/usr \
--libdir=/usr/lib \
--sbindir=/usr/bin \
--disable-static \
--enable-libargon2 \
--with-crypto_backend=openssl
- uses: autoconf/make
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: cryptsetup-dev
pipeline:
- uses: split/dev
test:
pipeline:
- uses: test/pkgconf
- uses: test/tw/ldd-check
with:
packages: ${{subpkg.name}}
dependencies:
runtime:
- cryptsetup
- json-c-dev
- lvm2-dev
- merged-sbin
- openssl-dev
- util-linux-dev
- wolfi-baselayout
description: cryptsetup dev
- name: cryptsetup-doc
pipeline:
- uses: split/manpages
description: cryptsetup manpages
test:
pipeline:
- uses: test/docs
dependencies:
runtime:
- merged-sbin
- wolfi-baselayout
update:
enabled: true
release-monitor:
identifier: 13709
test:
environment:
contents:
packages:
- util-linux
pipeline:
- name: "Check cryptsetup version"
runs: |
cryptsetup --version
cryptsetup --help
cryptsetup-ssh --version
cryptsetup-ssh --help
integritysetup --version
integritysetup --help
veritysetup --version
veritysetup --help
- name: "Test creating a LUKS container"
runs: |
# Create a 50MB file to use as a container (increased size)
dd if=/dev/zero of=container bs=1M count=50
# Create a LUKS container
echo "testpassword" | cryptsetup luksFormat container
# Verify the LUKS header
cryptsetup luksDump container | grep -q "LUKS header information"
- name: "Test LUKS header dump"
runs: |
# Use the container created in the previous test
cryptsetup luksDump container
- name: "Test adding a LUKS key"
runs: |
# Add a new key to the existing container
echo -e "testpassword\nnewpassword" | cryptsetup luksAddKey container
# Verify the new key slot was added
cryptsetup luksDump container
- name: "Test cryptsetup benchmark"
runs: |
cryptsetup benchmark --cipher aes-xts
cryptsetup benchmark --pbkdf pbkdf2 --hash sha256
cryptsetup benchmark --pbkdf argon2i
cryptsetup benchmark --pbkdf argon2id
- uses: test/tw/ldd-check