Skip to content

Commit

Permalink
feat: add ipmitool
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
  • Loading branch information
andrewrynhard committed Feb 18, 2020
1 parent f2a8e95 commit ffdacf0
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
49 changes: 49 additions & 0 deletions ipmitool/pkg.yaml
Original file line number Diff line number Diff line change
@@ -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: /

0 comments on commit ffdacf0

Please sign in to comment.