diff --git a/Makefile b/Makefile index 8fb700b4a..8dcf0ab84 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ COMMON_ARGS := --file=Pkgfile COMMON_ARGS += --progress=$(PROGRESS) COMMON_ARGS += --platform=$(PLATFORM) -TARGETS = ca-certificates cni containerd dosfstools eudev fhs iptables kernel kmod libressl libseccomp musl runc socat syslinux util-linux xfsprogs +TARGETS = ca-certificates cni containerd dosfstools eudev fhs ipmitool iptables kernel kmod libressl libseccomp musl runc socat syslinux util-linux xfsprogs all: $(TARGETS) ## Builds all known pkgs. diff --git a/ipmitool/pkg.yaml b/ipmitool/pkg.yaml new file mode 100644 index 000000000..43ff81f5f --- /dev/null +++ b/ipmitool/pkg.yaml @@ -0,0 +1,49 @@ +name: ipmitool +variant: scratch +shell: /toolchain/bin/bash +dependencies: + - stage: base + - stage: libressl +steps: + - sources: + - url: https://github.com/ipmitool/ipmitool/releases/download/IPMITOOL_1_8_18/ipmitool-1.8.18.tar.gz + destination: ipmitool.tar.gz + sha256: e93fe5966d59e16bb4317c9c588cdf35d6100753a0ba957c493b064bcad52493 + sha512: 970a3ea69a2a06bf4bb49b07ddea2d575d79afe163f742a53dd29331889d74411d412e7a2117f1964c416b147ad4dc4212dec1fc653521ce710ed1eb45a185a3 + prepare: + - | + tar -xzf ipmitool.tar.gz --strip-components=1 + + mkdir build + cd build + + ../configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --bindir=/usr/sbin \ + --enable-ipmishell \ + --enable-intf-lan \ + --enable-intf-lanplus \ + --enable-intf-open \ + --disable-intf-free \ + --disable-intf-imb \ + --disable-intf-lipmi \ + --disable-intf-bmc \ + --disable-internal-md5 \ + --disable-intf-serial \ + --disable-ipmishell \ + --with-kerneldir=/usr + build: + - | + cd build + make -j $(nproc) + install: + - | + cd build + make install DESTDIR=/rootfs +finalize: + - from: /rootfs + to: /