# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       github 1.0
PortGroup       legacysupport 1.1

# strnlen, getline
legacysupport.newest_darwin_requires_legacy 10

github.setup    ipmitool ipmitool 1_8_19 IPMITOOL_
revision        0
checksums       rmd160  8990ac249bfda3812716601d909c10c938df64eb \
                sha256  48b010e7bcdf93e4e4b6e43c53c7f60aa6873d574cbd45a8d86fa7aaeebaff9c \
                size    641383

version         [string map [list _ .] ${github.version}]
categories      sysutils
license         BSD
maintainers     {dports @drkp} openmaintainer
description     Intelligent Platform Management Interface management utility
long_description \
  IPMItool is a utility for managing and configuring devices that \
  support the Intelligent Platform Management Interface (IPMI) version \
  1.5 and version 2.0 specifications. IPMI is an open standard for \
  monitoring, logging, recovery, inventory, and control of hardware that \
  is implemented independent of the main CPU, BIOS, and OS. The ipmitool \
  program provides a simple command-line interface to the Baseboard \
  Management Controller. It features the ability to read the sensor data \
  repository (SDR) and print sensor values, display the contents of the \
  System Event Log (SEL), print Field Replaceable Unit (FRU) inventory \
  information, read and set LAN configuration parameters, and perform \
  remote chassis power control.

# No configure script in tarball.
use_autoreconf  yes
autoreconf.cmd  ./bootstrap
autoreconf.args

depends_build   port:autoconf \
                port:automake \
                port:libtool \
                port:curl \
                path:libexec/coreutils/libstdbuf.so:coreutils \
                port:wget
depends_lib     path:lib/libssl.dylib:openssl \
                port:readline

github.tarball_from archive

patchfiles      arm64-delloem.patch \
                enterprise-numbers.patch

configure.args  --enable-intf-lanplus \
                --enable-ipmishell

configure.cppflags-append   -Ds6_addr16=__u6_addr.__u6_addr16

compiler.c_standard    2011
