aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/cluster-glue/Makefile
blob: 54c3ca99c6dbe4c8132dbf6eab2d9270d2df2f6a (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# $FreeBSD$

PORTNAME=   cluster-glue
PORTVERSION=    1.0.12
CATEGORIES= sysutils
MASTER_SITES=   http://hg.linux-ha.org/glue/archive/
DISTNAME=   0a7add1d9996
DIST_SUBDIR=    linux-ha

MAINTAINER= ports@FreeBSD.org
COMMENT=    High availability cluster libraries and utilities

LICENSE=    GPLv2+ LGPL21+
LICENSE_COMB=   multi
LICENSE_FILE_GPLv2+ =   ${WRKSRC}/COPYING
LICENSE_FILE_LGPL21+ =  ${WRKSRC}/COPYING.LIB

LIB_DEPENDS=    libltdl.so:${PORTSDIR}/devel/libltdl \
        libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \
        libnet.so:${PORTSDIR}/net/libnet

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-fatal-warnings \
        --with-initdir=${PREFIX}/etc/rc.d \
        --with-ocf-root=${PREFIX}/etc/ocf
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
USES=       autoreconf gettext gmake libtool perl5 pkgconfig python tar:bz2
USE_GNOME=  glib20 libxml2
USE_LDCONFIG=   yes
USE_OPENSSL=    yes
USE_RC_SUBR=    ha_logd
WRKSRC=     ${WRKDIR}/Reusable-Cluster-Components-glue--${DISTNAME}

USERS=      hacluster
GROUPS=     haclient

OPTIONS_DEFINE=     DOCS DRAC3 HPI IPMI MANPAGES SNMP
OPTIONS_DEFAULT=    DRAC3 HPI IPMI MANPAGES SNMP
OPTIONS_SUB=        yes

DRAC3_CONFIGURE_OFF=    ac_cv_header_curl_curl_h=no
DRAC3_DESC=     Dell DRAC III support
DRAC3_LIB_DEPENDS=  libcurl.so:${PORTSDIR}/ftp/curl

HPI_CONFIGURE_OFF=  ac_cv_header_openhpi_SaHpi_h=no
HPI_DESC=       SAF Hardware Platform Interface support
HPI_LIB_DEPENDS=    libopenhpi.so:${PORTSDIR}/sysutils/openhpi

IPMI_CONFIGURE_ENABLE=  ipmilan
IPMI_DESC=      Intelligent Platform Management Interface support
IPMI_LIB_DEPENDS=   libOpenIPMI.so:${PORTSDIR}/sysutils/openipmi

MANPAGES_BUILD_DEPENDS= asciidoc:${PORTSDIR}/textproc/asciidoc \
            help2man:${PORTSDIR}/misc/help2man \
            xsltproc:${PORTSDIR}/textproc/libxslt
MANPAGES_CONFIGURE_ENABLE=doc

SNMP_CONFIGURE_ENABLE=  snmp
SNMP_LIB_DEPENDS=   libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp

.include <bsd.port.options.mk>

.if exists(${LOCALBASE}/include/vacmclient_api.h)
PLIST_SUB+= VACM=""
.else
PLIST_SUB+= VACM="@comment "
.endif

post-install:
    ${INSTALL_DATA} ${WRKSRC}/logd/logd.cf \
        ${STAGEDIR}${PREFIX}/etc/ha_logd.cf.sample

.include <bsd.port.mk>