2010-04-03 07:54:56 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.9 2010/04/03 11:54:56 kili Exp $
|
2007-11-21 13:48:39 -05:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
|
|
|
COMMENT-main= Linux HA cluster suite
|
|
|
|
COMMENT-gui= GUI management tool for heartbeat
|
|
|
|
COMMENT-snmp= snmp agent for heartbeat
|
|
|
|
|
2009-10-31 16:27:51 -04:00
|
|
|
DISTNAME= obs-2.1.2-15
|
|
|
|
VERSION= 2.1.2.15
|
2007-11-21 13:48:39 -05:00
|
|
|
PKGNAME= heartbeat-${VERSION}
|
2010-04-03 07:54:56 -04:00
|
|
|
PKGNAME-main= heartbeat-${VERSION}p0
|
|
|
|
PKGNAME-gui= heartbeat-gui-${VERSION}p0
|
|
|
|
PKGNAME-snmp= heartbeat-snmp-${VERSION}p0
|
2007-11-21 13:48:39 -05:00
|
|
|
|
|
|
|
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
|
2008-05-18 11:53:54 -04:00
|
|
|
MASTER_SITES= http://openbsd.dead-parrot.de/distfiles/
|
2007-11-21 13:48:39 -05:00
|
|
|
MAINTAINER= Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
|
|
|
|
|
|
|
|
# GPL/LGPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
WANTLIB= c m pcre util z
|
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -gui -snmp
|
|
|
|
|
|
|
|
MODULES= devel/gettext lang/python
|
|
|
|
MODPY_RUNDEP= No
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
|
|
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
|
|
|
::devel/swig
|
|
|
|
|
2009-03-09 18:42:07 -04:00
|
|
|
WANTLIB-main= ${WANTLIB} crypto gcrypt gpg-error idn ncurses ssl tasn1
|
2007-11-21 13:48:39 -05:00
|
|
|
LIB_DEPENDS-main=${LIB_DEPENDS} \
|
2010-04-03 07:54:56 -04:00
|
|
|
e2fs-uuid::sysutils/e2fsprogs \
|
2007-11-21 13:48:39 -05:00
|
|
|
gnutls.>=12::security/gnutls \
|
2009-03-13 07:34:17 -04:00
|
|
|
lib/libnet-1.0/net.=0:libnet->=1.0,<1.1:net/libnet/1.0 \
|
2007-11-21 13:48:39 -05:00
|
|
|
bz2.>=10::archivers/bzip2 \
|
|
|
|
xml2.>=9::textproc/libxml \
|
|
|
|
ltdl.>=4::devel/libtool,-ltdl \
|
|
|
|
glib-2.0.>=1400::devel/glib2 \
|
|
|
|
curl.>=7::net/curl
|
|
|
|
RUN_DEPENDS-main=${MODPY_RUN_DEPENDS} \
|
|
|
|
::devel/p5-Time-TimeDate
|
|
|
|
|
2009-03-09 18:42:07 -04:00
|
|
|
WANTLIB-gui= gcrypt gpg-error m tasn1 util xml2 z
|
2007-11-21 13:48:39 -05:00
|
|
|
LIB_DEPENDS-gui=${LIB_DEPENDS} \
|
|
|
|
bz2.>=10::archivers/bzip2 \
|
|
|
|
gnutls.>=12::security/gnutls \
|
|
|
|
ltdl.>=4::devel/libtool,-ltdl \
|
2010-04-03 07:54:56 -04:00
|
|
|
e2fs-uuid::sysutils/e2fsprogs
|
2007-11-21 13:48:39 -05:00
|
|
|
RUN_DEPENDS-gui=${MODPY_RUN_DEPENDS} \
|
|
|
|
::x11/py-gtk2
|
|
|
|
|
2010-04-03 07:54:56 -04:00
|
|
|
WANTLIB-snmp= ${WANTLIB} bz2 crypto e2fs-uuid gcrypt glib-2.0 gnutls \
|
|
|
|
gpg-error kvm ltdl perl tasn1 wrap xml2
|
2007-11-21 13:48:39 -05:00
|
|
|
LIB_DEPENDS-snmp=${LIB_DEPENDS} \
|
|
|
|
ccmclient,clm,hbclient,pils,plumb::${BASE_PKGPATH} \
|
|
|
|
netsnmp.>=7,netsnmpagent,netsnmphelpers,netsnmpmibs::net/net-snmp
|
|
|
|
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
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
|
2008-09-18 09:37:41 -04:00
|
|
|
SUBST_VARS= HBUSER HBGROUP HBUID HBGID
|
2007-11-21 13:48:39 -05:00
|
|
|
|
|
|
|
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} \
|
2009-04-26 07:01:04 -04:00
|
|
|
AUTOCONF_VERSION=${AUTOCONF_VERSION}
|
2007-11-21 13:48:39 -05:00
|
|
|
CONFIGURE_ARGS= configure --prefix=${PREFIX} \
|
|
|
|
--sysconfdir=${SYSCONFDIR} \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--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:
|
2007-11-21 18:36:41 -05:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/{Telephony,apache13,openvpn} \
|
|
|
|
${PREFIX}/lib/ocf/resource.d/heartbeat
|
2007-11-21 13:48:39 -05:00
|
|
|
${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>
|