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 10
/
busybox.yaml
60 lines (58 loc) · 1.59 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
package:
name: busybox
version: 1.35.0
epoch: 2
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://packages.wolfi.dev/bootstrap/stage2
keyring:
- https://packages.wolfi.dev/bootstrap/stage2/wolfi-signing.rsa.pub
packages:
- busybox
- ca-certificates-bundle
- build-base
pipeline:
- uses: fetch
with:
uri: https://distfiles.alpinelinux.org/distfiles/edge/busybox-1.35.0.tar.bz2
expected-sha256: faeeb244c35a348a334f4a59e44626ee870fb07b6884d68c10ae8bc19f83a694
- name: Configure
runs: |
cp busyboxconfig .config
- runs: |
make CC="${{host.triplet.gnu}}-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