Commit 2d87b9a1 authored by Carlo Landmeter's avatar Carlo Landmeter

testing/alpine-ipxe: new aport

Alpine Linux ipxe setup for booting from boot.alpinelinux.org

todo: setup CA for image signing.
parent 2e8078b2
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=alpine-ipxe
pkgver=1.0_git20180220
_sha=47849be3a900c546cf92066849be0806f4e611d9
pkgrel=0
pkgdesc="iPXE build for Alpine Linux netboot"
url="https://boot.alpinelinux.org"
arch="x86 x86_64"
license="GPL-2.0-or-later"
depends=""
makedepends="xz-dev perl coreutils bash syslinux xorriso"
options="!strip !check" # has not tests
install=""
subpackages=""
source="ipxe-$pkgver.tar.gz::https://github.com/ipxe/ipxe/archive/$_sha.tar.gz
DST_Root_CA_X3.pem
alpine.ipxe
"
builddir="$srcdir/ipxe-$_sha/src"
prepare() {
cd "$builddir"
mkdir -p config/local
echo '#define NET_PROTO_IPV6' >> config/local/general.h
echo '#define DOWNLOAD_PROTO_HTTPS' >> config/local/general.h
echo '#define IMAGE_TRUST_CMD' >> config/local/general.h
echo '#define PING_CMD' >> config/local/general.h
}
build() {
cd "$builddir"
make \
EMBED="$srcdir/alpine.ipxe" \
CERT="$srcdir/DST_Root_CA_X3.pem" \
TRUST="$srcdir/DST_Root_CA_X3.pem" \
bin/ipxe.iso \
bin/ipxe.lkrn \
bin/ipxe.pxe \
bin-x86_64-efi/ipxe.efi
}
package() {
cd "$builddir"
install -Dm644 bin/ipxe.lkrn \
"$pkgdir"/usr/share/$pkgname/ipxe.lkrn
install -Dm644 bin/ipxe.pxe \
"$pkgdir"/usr/share/$pkgname/ipxe.pxe
install -Dm644 bin-x86_64-efi/ipxe.efi \
"$pkgdir"/usr/share/$pkgname/ipxe.efi
install -Dm644 bin/ipxe.iso \
"$pkgdir"/usr/share/$pkgname/ipxe.iso
}
sha512sums="abc070ed07970e5307f04f5da3da4916c98016bf0a4115ab04979ecc5e7c452ca5102799ddab926e0ae9867c37c311de785dc93a736bf8f0809d5ea8e3cd3732 ipxe-1.0_git20180220.tar.gz
1f52b62aa9e3ec0656ea3cb5c8e52eda924d58728e64bb03ca6c112858b91b13cf0a9328b105bb232973e240406b240ed14e72b5bd325e82e6fddf3126dbcc58 DST_Root_CA_X3.pem
5569ba14ed3a164e72edd43e6b9df63fcbc59025c6729f55cbbedf2d513a83075471276a760174432eb2c6da86127a4b68fe1a2cae54408ff53b958261d06f0b alpine.ipxe"
-----BEGIN CERTIFICATE-----
MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/
MSQwIgYDVQQKExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMT
DkRTVCBSb290IENBIFgzMB4XDTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVow
PzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QgQ28uMRcwFQYDVQQD
Ew5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AN+v6ZdQCINXtMxiZfaQguzH0yxrMMpb7NnDfcdAwRgUi+DoM3ZJKuM/IUmTrE4O
rz5Iy2Xu/NMhD2XSKtkyj4zl93ewEnu1lcCJo6m67XMuegwGMoOifooUMM0RoOEq
OLl5CjH9UL2AZd+3UWODyOKIYepLYYHsUmu5ouJLGiifSKOeDNoJjj4XLh7dIN9b
xiqKqy69cK3FCxolkHRyxXtqqzTWMIn/5WgTe1QLyNau7Fqckh49ZLOMxt+/yUFw
7BZy1SbsOFU5Q9D8/RhcQPGX69Wam40dutolucbY38EVAjqr2m7xPi71XAicPNaD
aeQQmxkqtilX4+U9m5/wAl0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNV
HQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMSnsaR7LHH62+FLkHX/xBVghYkQMA0GCSqG
SIb3DQEBBQUAA4IBAQCjGiybFwBcqR7uKGY3Or+Dxz9LwwmglSBd49lZRNI+DT69
ikugdB/OEIKcdBodfpga3csTS7MgROSR6cz8faXbauX+5v3gTt23ADq1cEmv8uXr
AvHRAosZy5Q6XkjEGB5YGV8eAlrwDPGxrancWYaLbumR9YbK+rlmM6pZW87ipxZz
R8srzJmwN0jP41ZL9c8PDHIyh8bwRLtTcm1D9SZImlJnt1ir/md2cXjbDaJWFBM5
JDGFoqgCWjBH4d1QB7wCCZAA62RjYJsWvIjJEubSfZGL+T0yjWW06XyxV3bqxbYo
Ob8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ
-----END CERTIFICATE-----
#!ipxe
ifconf
chain https://boot.alpinelinux.org/boot.ipxe || shell
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment