openbsd-ports/sysutils/heartbeat/Makefile

149 lines
4.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.25 2012/04/28 10:52:08 ajacoutot Exp $
SHARED_ONLY= Yes
COMMENT-main= Linux HA cluster suite
COMMENT-gui= GUI management tool for heartbeat
COMMENT-snmp= snmp agent for heartbeat
DISTNAME= obs-2.1.2-15
VERSION= 2.1.2.15
PKGNAME= heartbeat-${VERSION}
PKGNAME-main= heartbeat-${VERSION}
2011-09-16 07:41:38 -04:00
REVISION-main = 8
2010-08-30 17:52:53 -04:00
PKGNAME-gui= heartbeat-gui-${VERSION}
2011-09-16 07:41:38 -04:00
REVISION-gui = 6
2010-08-30 17:52:53 -04:00
PKGNAME-snmp= heartbeat-snmp-${VERSION}
2011-09-16 07:41:38 -04:00
REVISION-snmp = 6
EXTRACT_SUFX= .tar.bz2
CATEGORIES= sysutils
SO_VERSION= 0.0
.for _lib in apphb ccmclient cib clm crmcommon hbclient hbmgmtclient \
hbmgmtcommon hbmgmt hbmgmttls lrm pe_rules pe_status pengine \
pils plumb plumbgpl recoverymgr stonith stonithd transitioner
SHARED_LIBS+= ${_lib} ${SO_VERSION}
.endfor
HOMEPAGE= http://www.linux-ha.org
MASTER_SITES= http://openbsd.dead-parrot.de/distfiles/
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
# GPL/LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m pcre pthread util xml2 z
MULTI_PACKAGES= -main -gui -snmp
MODULES= devel/gettext lang/python
MODPY_RUNDEP= No
2010-10-19 03:43:00 -04:00
USE_GROFF = Yes
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS} \
2010-11-20 12:22:40 -05:00
devel/swig
LIB_DEPENDS+= textproc/libxml
WANTLIB-main= ${WANTLIB} crypto idn ncurses ssl tasn1 \
2010-11-20 12:22:40 -05:00
e2fs-uuid gnutls>=12 lib/libnet-1.0/net=0 bz2>=10 \
xml2>=9 ltdl>=4 glib-2.0>=1400 curl>=7 \
gmp hogweed nettle
LIB_DEPENDS-main=${LIB_DEPENDS} \
2010-11-20 12:22:40 -05:00
sysutils/e2fsprogs \
security/gnutls \
2010-11-26 09:56:14 -05:00
net/libnet/1.0 \
2010-11-20 12:22:40 -05:00
archivers/bzip2 \
devel/libtool,-ltdl \
devel/glib2 \
net/curl
RUN_DEPENDS-main=${MODPY_RUN_DEPENDS} \
2010-11-20 12:22:40 -05:00
devel/p5-Time-TimeDate
WANTLIB-gui= ${MODGETTEXT_WANTLIB} m tasn1 util xml2 z \
bz2>=10 gnutls>=12 ltdl>=4 e2fs-uuid \
gmp hogweed nettle
LIB_DEPENDS-gui=${LIB_DEPENDS} \
2010-11-20 12:22:40 -05:00
archivers/bzip2 \
security/gnutls \
devel/libtool,-ltdl \
sysutils/e2fsprogs
RUN_DEPENDS-gui=${MODPY_RUN_DEPENDS} \
2010-11-20 12:22:40 -05:00
x11/py-gtk2
WANTLIB-snmp= ${WANTLIB} bz2 crypto e2fs-uuid glib-2.0 \
kvm ltdl perl wrap xml2 ccmclient \
2010-11-20 12:22:40 -05:00
clm hbclient pils plumb netsnmp>=7 netsnmpagent \
netsnmpmibs
LIB_DEPENDS-snmp=${LIB_DEPENDS} \
2010-11-20 12:22:40 -05:00
${BASE_PKGPATH} \
net/net-snmp
USE_GMAKE= Yes
2010-09-25 16:45:24 -04:00
# depends on libltdl
2010-04-26 16:09:18 -04:00
USE_LIBTOOL= gnu
LIBTOOL_FLAGS= --tag=disable-static
AUTOCONF_VERSION=2.61
AUTOMAKE_VERSION=1.9
WRKDIST= ${WRKDIR}/Heartbeat-Dev-c492f19cb583
HBUSER= _heartbeat
HBUID= 596
HBGROUP= _heartbeat
HBGID= 596
SUBST_VARS= HBUSER HBGROUP HBUID HBGID
CONFIGURE_SCRIPT=ConfigureMe
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= LIBNETCONFIG=${LOCALBASE}/bin/libnet-config-1.0 \
LDFLAGS="-liconv -L${LOCALBASE}/lib/libnet-1.0" \
docdir=${PREFIX}/share/doc/heartbeat \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
AUTOCONF_VERSION=${AUTOCONF_VERSION}
CONFIGURE_ARGS= configure --prefix=${PREFIX} \
--sysconfdir=${SYSCONFDIR} \
--with-initdir=${SYSCONFDIR}/ha.d/init.d \
--with-group-id=${HBGID} \
--with-ccmuser-id=${HBUID} \
--with-group-name=${HBGROUP} \
--with-ccmuser-name=${HBUSER} \
--with-ocf-root=${PREFIX}/lib/ocf/ \
--disable-rpath \
--enable-quorumd \
--enable-mgmt \
--enable-snmp \
--enable-snmp-subagent \
--enable-fatal-warnings=no \
--enable-static=no
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/heartbeat \
initddir=${PREFIX}/share/examples/heartbeat/ha.d/init.d
pre-configure:
@perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g;' \
-e 's,!!SYSCONFDIR!!,${SYSCONFDIR},g' \
${WRKSRC}/configure.in \
${WRKSRC}/resources/OCF/pgsql \
${WRKSRC}/resources/OCF/mysql
@find ${WRKSRC} -name *.py* -exec \
perl -pi -e 's,/bin/env python,${MODPY_BIN},g' {} \;
post-install:
${INSTALL_SCRIPT} ${FILESDIR}/{Telephony,apache13,openvpn} \
${PREFIX}/lib/ocf/resource.d/heartbeat
${INSTALL_DATA} ${WRKSRC}/crm/cib-example-1.xml \
${PREFIX}/share/examples/heartbeat/cib.xml
@perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},g;' \
-e 's,!!SYSCONFDIR!!,${SYSCONFDIR},g' \
${PREFIX}/lib/ocf/resource.d/heartbeat/openvpn \
${PREFIX}/lib/ocf/resource.d/heartbeat/Telephony
.include <bsd.port.mk>