2012-04-28 06:52:08 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2012/04/28 10:52:08 ajacoutot 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-09-07 14:26:29 -04:00
|
|
|
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
|
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/
|
2010-06-18 18:20:03 -04:00
|
|
|
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
|
2007-11-21 13:48:39 -05:00
|
|
|
|
|
|
|
# GPL/LGPL
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-12-28 10:08:31 -05:00
|
|
|
WANTLIB= c m pcre pthread util xml2 z
|
2007-11-21 13:48:39 -05:00
|
|
|
|
|
|
|
MULTI_PACKAGES= -main -gui -snmp
|
|
|
|
|
|
|
|
MODULES= devel/gettext lang/python
|
|
|
|
MODPY_RUNDEP= No
|
2010-10-19 03:43:00 -04:00
|
|
|
USE_GROFF = Yes
|
2007-11-21 13:48:39 -05:00
|
|
|
|
|
|
|
BUILD_DEPENDS= ${MODGNU_AUTOCONF_DEPENDS} \
|
|
|
|
${MODGNU_AUTOMAKE_DEPENDS} \
|
2010-11-20 12:22:40 -05:00
|
|
|
devel/swig
|
2007-11-21 13:48:39 -05:00
|
|
|
|
2010-12-28 10:08:31 -05:00
|
|
|
LIB_DEPENDS+= textproc/libxml
|
|
|
|
|
2011-04-15 12:10:37 -04:00
|
|
|
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 \
|
2011-04-15 12:10:37 -04:00
|
|
|
xml2>=9 ltdl>=4 glib-2.0>=1400 curl>=7 \
|
|
|
|
gmp hogweed nettle
|
2007-11-21 13:48:39 -05:00
|
|
|
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
|
2007-11-21 13:48:39 -05:00
|
|
|
RUN_DEPENDS-main=${MODPY_RUN_DEPENDS} \
|
2010-11-20 12:22:40 -05:00
|
|
|
devel/p5-Time-TimeDate
|
2007-11-21 13:48:39 -05:00
|
|
|
|
2011-04-15 12:10:37 -04:00
|
|
|
WANTLIB-gui= ${MODGETTEXT_WANTLIB} m tasn1 util xml2 z \
|
|
|
|
bz2>=10 gnutls>=12 ltdl>=4 e2fs-uuid \
|
|
|
|
gmp hogweed nettle
|
2007-11-21 13:48:39 -05:00
|
|
|
LIB_DEPENDS-gui=${LIB_DEPENDS} \
|
2010-11-20 12:22:40 -05:00
|
|
|
archivers/bzip2 \
|
|
|
|
security/gnutls \
|
|
|
|
devel/libtool,-ltdl \
|
|
|
|
sysutils/e2fsprogs
|
2007-11-21 13:48:39 -05:00
|
|
|
RUN_DEPENDS-gui=${MODPY_RUN_DEPENDS} \
|
2010-11-20 12:22:40 -05:00
|
|
|
x11/py-gtk2
|
2007-11-21 13:48:39 -05:00
|
|
|
|
2011-04-15 12:10:37 -04:00
|
|
|
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 \
|
2010-12-28 10:08:31 -05:00
|
|
|
netsnmpmibs
|
2007-11-21 13:48:39 -05:00
|
|
|
LIB_DEPENDS-snmp=${LIB_DEPENDS} \
|
2010-11-20 12:22:40 -05:00
|
|
|
${BASE_PKGPATH} \
|
|
|
|
net/net-snmp
|
2007-11-21 13:48:39 -05:00
|
|
|
|
|
|
|
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
|
2007-11-21 13:48:39 -05:00
|
|
|
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} \
|
|
|
|
--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>
|