diff options
author | lawrance <lawrance@FreeBSD.org> | 2006-05-14 21:31:58 +0800 |
---|---|---|
committer | lawrance <lawrance@FreeBSD.org> | 2006-05-14 21:31:58 +0800 |
commit | 343e956a38e8da62de9028b8a1ebbb7a36374dc7 (patch) | |
tree | e31955ceb50a88878105b47c69860e8288e2c363 | |
parent | b1d8fd14a6203f2305cf959c1c4641b5e6492aa6 (diff) | |
download | freebsd-ports-gnome-343e956a38e8da62de9028b8a1ebbb7a36374dc7.tar.gz freebsd-ports-gnome-343e956a38e8da62de9028b8a1ebbb7a36374dc7.tar.zst freebsd-ports-gnome-343e956a38e8da62de9028b8a1ebbb7a36374dc7.zip |
Add option WITH_IPMI_KMOD, allowing ipmitool to work with
the ipmi-kmod port (for FreeBSD 6.x systems).
PR: ports/96333
Submitted by: Nick Barkas <snb@threerings.net>
Approved by: frolov@riss-telecom.ru (maintainer)
-rw-r--r-- | sysutils/ipmitool/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sysutils/ipmitool/Makefile b/sysutils/ipmitool/Makefile index 5ce43e4a0d30..75b2bcc13ed0 100644 --- a/sysutils/ipmitool/Makefile +++ b/sysutils/ipmitool/Makefile @@ -37,11 +37,13 @@ PLIST_FILES+= share/${PORTNAME}/${f} .include <bsd.port.pre.mk> -# FreeBSD has OpenIPMI-compatible driver, ipmi(4), -# in 7-current after 2006-02-12. On older systems -# only lan and lanplus interfaces are supported. .if exists(/usr/include/sys/ipmi.h) OPENIPMI_OPT= --enable-intf-open +.elif defined(WITH_IPMI_KMOD) || \ + exists(${LOCALBASE}/include/sys/ipmi.h) +BUILD_DEPENDS+= ${LOCALBASE}/include/sys/ipmi.h:${PORTSDIR}/sysutils/ipmi-kmod +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" +OPENIPMI_OPT= --enable-intf-open .else OPENIPMI_OPT= --disable-intf-open .endif |