aboutsummaryrefslogtreecommitdiffstats
path: root/net/csync2/Makefile
blob: 8d41d69b86a458afe6cfb4c046873fff815f0baf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Aaron Dalton <aaron@FreeBSD.org>
# $FreeBSD$

PORTNAME=   csync2
PORTVERSION=    2.0
CATEGORIES= net
MASTER_SITES=   http://oss.linbit.com/csync2/

MAINTAINER= alexey@renatasystems.org
COMMENT=    Cluster synchronization tool

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    librsync.so.2:${PORTSDIR}/net/librsync1 \
        libgnutls.so:${PORTSDIR}/security/gnutls \
        libsqlite3.so:${PORTSDIR}/databases/sqlite3

OPTIONS_DEFINE= CSYNC2_COMPARE DOCS
OPTIONS_SUB=    yes
CSYNC2_COMPARE_DESC=        Install csync2-compare script
CSYNC2_COMPARE_RUN_DEPENDS= bash:${PORTSDIR}/shells/bash

USES=       pkgconfig shebangfix
SHEBANG_FILES=  csync2-compare

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= ac_cv_prog_PDFLATEX=
CPPFLAGS+=  -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib

USE_RC_SUBR=    csync2

SUB_FILES=  pkg-install

post-patch:
    @${REINPLACE_CMD} -e 's|(localstatedir)/lib|(localstatedir)/db|' \
        -e 's/-ldl//' ${WRKSRC}/Makefile.in

post-install:
    ${MV} ${STAGEDIR}${PREFIX}/etc/csync2.cfg \
        ${STAGEDIR}${PREFIX}/etc/csync2.cfg.sample
    ${MKDIR} ${STAGEDIR}/var/backups/csync2

.include <bsd.port.mk>