2009-07-28 07:24:27 -04:00
|
|
|
# New ports collection makefile for: heartbeat
|
2005-04-06 03:36:41 -04:00
|
|
|
# Date created: 18 March 2005
|
|
|
|
# Whom: Scott Kleihege <scott-ports@tummy.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= heartbeat
|
2006-11-01 15:02:31 -05:00
|
|
|
PORTVERSION= 1.2.5
|
2009-01-27 05:52:18 -05:00
|
|
|
PORTREVISION= 6
|
2005-04-06 03:36:41 -04:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://linux-ha.org/download/
|
|
|
|
|
|
|
|
MAINTAINER= scott-ports@tummy.com
|
|
|
|
COMMENT= Subsystem for High-Availability Clustering
|
|
|
|
|
2007-01-31 09:09:55 -05:00
|
|
|
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
|
2009-01-23 10:43:14 -05:00
|
|
|
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl \
|
2006-04-18 17:53:58 -04:00
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
2005-04-06 03:36:41 -04:00
|
|
|
|
2007-01-31 21:42:05 -05:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-04-18 17:53:58 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-06 03:36:41 -04:00
|
|
|
USE_PERL5= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GNOME= glib12
|
2006-08-14 21:04:55 -04:00
|
|
|
USE_LDCONFIG= yes
|
2005-04-06 03:36:41 -04:00
|
|
|
|
2006-04-18 17:53:58 -04:00
|
|
|
CONFIGURE_ARGS+= --disable-fatal-warnings \
|
2006-11-01 15:02:31 -05:00
|
|
|
--with-initdir=${PREFIX}/etc/rc.d \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-group-id=275 --with-ccmuser-id=275
|
2008-09-15 17:30:35 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="`${LIBNET_CONFIG} --cflags`" \
|
|
|
|
LDFLAGS="`${LIBNET_CONFIG} --libs`"
|
2005-04-06 03:36:41 -04:00
|
|
|
|
2006-04-18 17:53:58 -04:00
|
|
|
SUB_FILES= pkg-install
|
2005-04-06 03:36:41 -04:00
|
|
|
PKGDEINSTALL= ${PKGINSTALL}
|
|
|
|
|
2006-04-18 17:53:58 -04:00
|
|
|
MAN1= cl_status.1 hb_standby.1 hb_takeover.1
|
2005-04-06 03:36:41 -04:00
|
|
|
MAN8= apphbd.8 heartbeat.8 ldirectord.8 meatclient.8 \
|
|
|
|
stonith.8 supervise-ldirectord-config.8
|
|
|
|
|
2007-01-31 09:09:55 -05:00
|
|
|
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
|
|
|
|
|
2005-04-06 03:36:41 -04:00
|
|
|
post-patch:
|
2006-04-18 17:53:58 -04:00
|
|
|
@${REINPLACE_CMD} -e "s|logrotate\.d||" \
|
|
|
|
${WRKSRC}/heartbeat/Makefile.in \
|
|
|
|
${WRKSRC}/ldirectord/Makefile.in
|
|
|
|
|
2007-01-31 09:09:55 -05:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|libnet-config|${LIBNET_CONFIG}|; \
|
|
|
|
s|-lnet|`${LIBNET_CONFIG} --libs`|' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
|
2006-04-18 17:53:58 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(docdir.*doc/\).*|\1${PORTNAME}|' \
|
|
|
|
${WRKSRC}/configure.in \
|
|
|
|
${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/doc/Makefile.am \
|
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(SUBDIRS.*\)doc\(.*\)|\1 \2|' \
|
|
|
|
${WRKSRC}/Makefile.am \
|
|
|
|
${WRKSRC}/Makefile.in \
|
|
|
|
${WRKSRC}/telecom/cms/Makefile.am \
|
|
|
|
${WRKSRC}/telecom/cms/Makefile.in
|
|
|
|
.endif
|
2005-04-06 03:36:41 -04:00
|
|
|
|
2006-11-01 15:02:31 -05:00
|
|
|
.if !defined(BATCH)
|
|
|
|
BATCH=no
|
|
|
|
.endif
|
|
|
|
|
2005-04-06 03:36:41 -04:00
|
|
|
post-deinstall:
|
2006-11-01 15:02:31 -05:00
|
|
|
@BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} DEINSTALL
|
2005-04-06 03:36:41 -04:00
|
|
|
|
2006-11-13 07:33:03 -05:00
|
|
|
pre-install:
|
|
|
|
@BATCH=${BATCH} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2005-04-06 03:36:41 -04:00
|
|
|
|
2006-04-18 17:53:58 -04:00
|
|
|
# some subdirs treat man as documentation, therefor we have to install
|
|
|
|
# those man pages manually if NOPORTDOCS is defined
|
|
|
|
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
.for f in ${MAN1}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${f} ${MANPREFIX}/man/man1
|
|
|
|
.endfor
|
|
|
|
.for f in apphbd.8 heartbeat.8
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${f} ${MANPREFIX}/man/man8
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2007-10-04 02:10:15 -04:00
|
|
|
.include <bsd.port.mk>
|