2007-05-30 18:48:50 +00:00
|
|
|
# New ports collection makefile for: net/csync2
|
|
|
|
# Date created: 16 May 2007
|
|
|
|
# Whom: Aaron Dalton <aaron@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= csync2
|
2008-02-24 00:07:41 +00:00
|
|
|
PORTVERSION= 1.34
|
2011-07-03 11:40:49 +00:00
|
|
|
PORTREVISION= 11
|
2007-05-30 18:48:50 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://oss.linbit.com/csync2/ \
|
|
|
|
http://people.freebsd.org/~aaron/distfiles/
|
|
|
|
|
2010-06-27 12:26:55 +00:00
|
|
|
MAINTAINER= alexey@renatasystems.org
|
2007-05-30 18:48:50 +00:00
|
|
|
COMMENT= A cluster synchronization tool
|
|
|
|
|
|
|
|
LIB_DEPENDS= rsync.1:${PORTSDIR}/net/librsync \
|
2009-01-18 17:04:08 +00:00
|
|
|
tasn1.4:${PORTSDIR}/security/libtasn1 \
|
2011-06-05 18:43:16 +00:00
|
|
|
gnutls.47:${PORTSDIR}/security/gnutls \
|
2007-06-01 23:39:08 +00:00
|
|
|
sqlite.2:${PORTSDIR}/databases/sqlite2 \
|
2011-07-03 11:40:49 +00:00
|
|
|
gcrypt.18:${PORTSDIR}/security/libgcrypt \
|
2007-06-01 23:39:08 +00:00
|
|
|
gpg-error.0:${PORTSDIR}/security/libgpg-error
|
2007-05-30 18:48:50 +00:00
|
|
|
|
2010-06-27 12:26:55 +00:00
|
|
|
OPTIONS= CSYNC2_COMPARE "Install csync2-compare script" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
MAN1= csync2.1
|
2007-05-30 18:48:50 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
2008-02-24 00:07:41 +00:00
|
|
|
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc
|
2010-06-27 12:26:55 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
LIBGNUTLS_CONFIG="${LOCALBASE}/bin/pkg-config gnutls"
|
2007-05-30 18:48:50 +00:00
|
|
|
|
2010-05-14 13:29:55 +00:00
|
|
|
USE_RC_SUBR= csync2
|
|
|
|
|
2008-02-24 00:07:41 +00:00
|
|
|
PLIST_FILES= etc/csync2.cfg-dist \
|
2010-06-27 12:26:55 +00:00
|
|
|
sbin/csync2
|
|
|
|
|
|
|
|
.if defined(WITH_CSYNC2_COMPARE)
|
|
|
|
RUN_DEPENDS+= bash>=0:${PORTSDIR}/shells/bash
|
|
|
|
PLIST_FILES+= sbin/csync2-compare
|
|
|
|
CSYNC2_COMPARE= csync2-compare
|
|
|
|
.else
|
|
|
|
CSYNC2_COMPARE=
|
|
|
|
.endif
|
|
|
|
|
|
|
|
SUB_FILES= pkg-install
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -E "s#%%CSYNC2_COMPARE%%#${CSYNC2_COMPARE}#" ${WRKSRC}/Makefile.in
|
2007-05-30 18:48:50 +00:00
|
|
|
|
|
|
|
post-install:
|
2010-06-27 12:26:55 +00:00
|
|
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2007-05-30 18:48:50 +00:00
|
|
|
|
2010-06-27 12:26:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|