# New ports collection makefile for:	hearbeat
# Date created:		18 March 2005
# Added to HA Project from initial work by
# 	Scott Kleihege <scott-ports@tummy.com>
#
# License:      GNU General Public License (GPL)
#
# $FreeBSD$
#

PORTNAME=	heartbeat
PORTVERSION=	@VERSION@
CATEGORIES=	sysutils
MASTER_SITES=	http://linux-ha.org/download/

MAINTAINER=	sirgeek-ha@mrsucko.org
COMMENT=	Subsystem for High-Availability Clustering

BUILD_DEPENDS=	${LOCALBASE}/include/libnet.h:${PORTSDIR}/net/libnet-devel \
		${LOCALBASE}/include/glib12/glib.h:${PORTSDIR}/devel/glib12
RUN_DEPENDS=	${BUILD_DEPENDS}

USE_PERL5=	yes
GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	yes
CONFIGURE_ARGS=	 --prefix=/usr/local --sysconfdir=/usr/local/etc --localstatedir=/var --enable-all --with-group-id=90 --with-ccmuser-id=90

MAN1=		cl_status.1
MAN8=		apphbd.8 heartbeat.8 ldirectord.8 meatclient.8 \
		stonith.8 supervise-ldirectord-config.8

pre-install:
	PATH=${PATH}:${LOCALBASE}/bin

post-install:
	PKG_PREFIX=${LOCALBASE} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>
