aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ipmitool/Makefile
blob: 75b2bcc13ed0443f3bf8dae4799581b97fcdcc9b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for:    ipmitool
# Date created:             25/Oct/2004
# Whom:                 Dmitry Frolov <frol@nov.net>
#
# $FreeBSD$
#

PORTNAME=   ipmitool
PORTVERSION=    1.8.7
CATEGORIES= sysutils
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= frolov@riss-telecom.ru
COMMENT=    CLI to manage IPMI systems

USE_GMAKE=  yes
USE_OPENSSL=    yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS+=    --enable-intf-lan --enable-intf-lanplus \
        --disable-intf-imb --disable-intf-lipmi --disable-intf-bmc \
        ${OPENIPMI_OPT}
PLIST_FILES=    bin/ipmitool sbin/ipmievd
PLIST_DIRS= share/${PORTNAME}
PORTDOCS=   README AUTHORS ChangeLog COPYING
MAN1+=      ${PORTNAME}.1
MAN8+=      ipmievd.8

DATAFILES=  bmclanconf ipmi.init.basic ipmi.init.redhat README \
        collect_data.sh create_rrds.sh create_webpage_compact.sh \
        create_webpage.sh oem_ibm_sel_map ipmievd.init.redhat \
        ipmievd.init.suse ipmievd.init.debian
.for f in ${DATAFILES}
PLIST_FILES+=   share/${PORTNAME}/${f}
.endfor

.include <bsd.port.pre.mk>

.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

.include <bsd.port.post.mk>