Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ jobs:
- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: build-base

- uses: chainguard-dev/actions/inky-build-pkg@main
with:
package-name: build-base
empty-workspace: false
source-dir: ${{ github.workspace }}/busybox

- uses: chainguard-dev/actions/inky-build-pkg@main
with:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ REPO ?= $(shell pwd)/packages

GLIBC_VERSION ?= 2.36-r0
BUILD_BASE_VERSION ?= 1-r3
BUSYBOX_VERSION ?= 1.35.0-r2
OPENSSL_VERSION ?= 3.0.5-r3
BINUTILS_VERSION ?= 2.39-r1
FLEX_VERSION ?= 2.6.4-r0
Expand All @@ -32,7 +33,7 @@ PACKAGES = \
packages/${ARCH}/bison-${BISON_VERSION}.apk \
packages/${ARCH}/texinfo-${TEXINFO_VERSION}.apk \
packages/${ARCH}/pax-utils-${PAXUTILS_VERSION}.apk \
packages/${ARCH}/scanelf-utils-${PAXUTILS_VERSION}.apk \ # This is provided by pax-utils as a subpackage so the version is the same
packages/${ARCH}/busybox-${BUSYBOX_VERSION}.apk \

all: ${KEY} ${PACKAGES}

Expand Down
61 changes: 61 additions & 0 deletions busybox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
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/stage3
keyring:
- https://packages.wolfi.dev/bootstrap/stage3/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="$(uname -m)-pc-linux-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

Loading