This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbusybox.yaml
74 lines (72 loc) · 2.4 KB
/
busybox.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
package:
name: busybox
version: 1.36.1
epoch: 1
description: "swiss-army knife for embedded systems"
target-architecture:
- all
copyright:
- paths:
- "*"
attestation: TODO
license: MIT
dependencies:
runtime:
scriptlets:
trigger:
paths:
- /bin
- /sbin
- /usr/bin
- /usr/sbin
script: |
#!/bin/busybox sh
/bin/busybox --install -s
environment:
contents:
repositories:
- https://mirrors.edge.kernel.org/alpine/edge/main
- https://packages.wolfi.dev/bootstrap/stage1
keyring:
- /usr/share/apk/keys/x86_64/[email protected]
- /usr/share/apk/keys/x86_64/[email protected]
- /usr/share/apk/keys/x86_64/[email protected]
- /usr/share/apk/keys/aarch64/[email protected]
- /usr/share/apk/keys/aarch64/[email protected]
- /usr/share/apk/keys/armv7/[email protected]
- /usr/share/apk/keys/armv7/[email protected]
- https://packages.wolfi.dev/bootstrap/stage1/wolfi-signing.rsa.pub
packages:
- busybox
- ssl_client
- ca-certificates-bundle
- build-base
- perl
- cross-gcc-stage1
- cross-binutils-stage1
- cross-glibc-stage1
- cross-linux-headers
pipeline:
- uses: fetch
with:
uri: https://distfiles.alpinelinux.org/distfiles/edge/busybox-${{package.version}}.tar.bz2
expected-sha256: b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314
- name: Configure
runs: |
cp busyboxconfig .config
- runs: |
make CC="${{cross.triplet.gnu.glibc}}-gcc" V=1 -j$(nproc)
- name: Install
runs: |
mkdir -p "${{targets.destdir}}"/usr/sbin
mkdir -p "${{targets.destdir}}"/usr/bin
mkdir -p "${{targets.destdir}}"/tmp
mkdir -p "${{targets.destdir}}"/var/cache/misc
mkdir -p "${{targets.destdir}}"/bin
mkdir -p "${{targets.destdir}}"/sbin
mkdir -p "${{targets.destdir}}"/etc
mkdir -p "${{targets.destdir}}"/usr/share/man/man1
chmod 1777 "${{targets.destdir}}"/tmp
install -m755 busybox "${{targets.destdir}}"/bin/busybox
install -m644 securetty "${{targets.destdir}}"/etc/securetty
- uses: strip