aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/ipmitool/Makefile
blob: 5463b0929da82c5f5d27640d3f23973c385aca17 (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
52
53
54
55
56
57
58
59
60
# Created by: Dmitry Frolov <frol@nov.net>
# $FreeBSD$

PORTNAME=   ipmitool
PORTVERSION=    1.8.18
PORTREVISION=   1
CATEGORIES= sysutils
MASTER_SITES=   SF

MAINTAINER= zi@FreeBSD.org
COMMENT=    CLI to manage IPMI systems

LICENSE=    BSD3CLAUSE
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       cpe tar:bzip2 gmake readline ssl
CPE_VENDOR= sun
GNU_CONFIGURE=  yes
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

DOCS_EXTRA_PATCHES_OFF= ${PATCHDIR}/extra-patch-Makefile.in

FREEIPMI_LIB_DEPENDS=   libfreeipmi.so:sysutils/freeipmi
FREEIPMI_CPPFLAGS=  -I${LOCALBASE}/include
FREEIPMI_LDFLAGS=   -L${LOCALBASE}/lib
FREEIPMI_CONFIGURE_ENABLE=  intf-free

post-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/${PERIODIC_DIR}
    ${INSTALL_SCRIPT} ${WRKDIR}/status-ipmi.sh ${STAGEDIR}${PREFIX}/${PERIODIC_DIR}/400.status-ipmi

.include <bsd.port.pre.mk>

.if ${SSL_DEFAULT:Mopenssl-devel}
BROKEN=     Does not build with openssl-devel
.endif

.include <bsd.port.post.mk>