-
Notifications
You must be signed in to change notification settings - Fork 315
/
Copy pathapk-tools.yaml
122 lines (109 loc) · 3.1 KB
/
apk-tools.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
package:
name: apk-tools
version: "2.14.10"
epoch: 2
description: "apk-tools (Wolfi package manager)"
copyright:
- license: GPL-2.0-only
dependencies:
runtime:
- ca-certificates-bundle
- merged-sbin
- wolfi-baselayout
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- lua5.3
- lua5.3-dev
- lua5.3-lzlib
- openssl-dev
- scdoc
- zlib-dev
pipeline:
- uses: git-checkout
with:
repository: https://gitlab.alpinelinux.org/alpine/apk-tools.git
tag: v${{package.version}}
expected-commit: 9d074efdc12bc41b5d24190595a5269a770e852a
- runs: |
git am 292.patch
- runs: |
sed -i -e 's:-Werror::' Make.rules
echo "FULL_VERSION=${{package.version}}-r${{package.epoch}}" > config.mk
- runs: |
make LUA="lua5.3" V=1
- runs: |
make LUA="lua5.3" V=1 DESTDIR="${{targets.destdir}}" install SBINDIR=/usr/bin LIBDIR=/usr/lib
install -d "${{targets.destdir}}"/var/lib/apk
install -d "${{targets.destdir}}"/var/cache/misc
install -d "${{targets.destdir}}"/etc/apk/keys
install -d "${{targets.destdir}}"/etc/apk/protected_paths.d
- uses: strip
subpackages:
- name: "apk-tools-dev"
description: "headers for libapk"
pipeline:
- uses: split/dev
dependencies:
runtime:
- apk-tools
- merged-sbin
- wolfi-baselayout
test:
pipeline:
- uses: test/pkgconf
- uses: test/tw/ldd-check
with:
packages: apk-tools-dev
- name: apk-tools-doc
description: apk-tools docs
pipeline:
- uses: split/manpages
test:
pipeline:
- uses: test/docs
dependencies:
runtime:
- merged-sbin
- wolfi-baselayout
- name: "lua5.3-apk"
description: "Lua module for libapk"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/lib
mv "${{targets.destdir}}"/usr/lib/lua "${{targets.subpkgdir}}"/usr/lib
test:
pipeline:
- uses: test/ldd-check
with:
packages: $(basename ${{targets.contextdir}})
dependencies:
runtime:
- merged-sbin
- wolfi-baselayout
test:
environment:
contents:
packages:
- wget
pipeline:
- name: Verify apk-tools can work with RSA256 signed repositories
runs: |
wget https://raw.githubusercontent.com/chainguard-dev/apko/71f1961fde53a10c5bd40b80dd4c00a9250dd9f7/pkg/apk/apk/testdata/rsa256-signed/test-rsa256.rsa.pub -O /etc/apk/keys/test-rsa256.rsa.pub
mkdir -p packages/aarch64/
wget https://raw.githubusercontent.com/chainguard-dev/apko/71f1961fde53a10c5bd40b80dd4c00a9250dd9f7/pkg/apk/apk/testdata/rsa256-signed/APKINDEX.tar.gz -O packages/aarch64/APKINDEX.tar.gz
apk --arch aarch64 --repository ./packages/ info --all alpine-baselayout
apk update
apk --version
apk info apk-tools
- uses: test/ldd-check
with:
packages: ${{package.name}}
update:
enabled: true
git:
strip-prefix: v
tag-filter-prefix: v2.