freebsd-ports/sysutils/ipmitool/Makefile
Philip M. Gollucci 7d074956bf sysutils/ipmitool: properly link against ports OpenSSL/LibreSSL
PR:                  199389
Submitted by:        franco@opnsense.org and brnrd
Approved by:         maintainer timeout (steve.polyack@intermedix.com ; 76 days)
2015-06-27 19:52:43 +00:00

65 lines
1.6 KiB
Makefile

# Created by: Dmitry Frolov <frol@nov.net>
# $FreeBSD$
PORTNAME= ipmitool
PORTVERSION= 1.8.14
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF
MAINTAINER= steve.polyack@intermedix.com
COMMENT= CLI to manage IPMI systems
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe tar:bzip2 gmake readline
CPE_VENDOR= sun
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--enable-intf-lan --enable-intf-lanplus \
--disable-intf-imb --disable-intf-lipmi --disable-intf-bmc
PLIST_FILES= bin/ipmitool man/man1/ipmitool.1.gz man/man8/ipmievd.8.gz \
sbin/ipmievd share/ipmitool/oem_ibm_sel_map \
${PERIODIC_DIR}/400.status-ipmi
SUB_FILES= status-ipmi.sh
PORTDOCS= AUTHORS COPYING ChangeLog README
PERIODIC_DIR= etc/periodic/daily
OPTIONS_DEFINE= FREEIPMI DOCS
FREEIPMI_DESC= Enable support for freeipmi
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
.if defined(WITH_DEBUG)
CFLAGS+= -ggdb -Wall
.endif
.if exists(/usr/include/sys/ipmi.h)
CONFIGURE_ARGS+= --enable-intf-open
.else
CONFIGURE_ARGS+= --disable-intf-open
.endif
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MDOCS)
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-Makefile.in
.endif
.if ${PORT_OPTIONS:MFREEIPMI}
LIB_DEPENDS+= libfreeipmi.so:${PORTSDIR}/sysutils/freeipmi
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --enable-intf-free
.else
CONFIGURE_ARGS+= --disable-intf-free
.endif
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${PERIODIC_DIR}
@${INSTALL_SCRIPT} ${WRKDIR}/status-ipmi.sh ${STAGEDIR}${PREFIX}/${PERIODIC_DIR}/400.status-ipmi
.include <bsd.port.mk>