aboutsummaryrefslogtreecommitdiffstats
path: root/net/csync2/Makefile
blob: fb17a848ab042c67e2e0d18653edc518f5628fd3 (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
46
47
48
# Created by: Aaron Dalton <aaron@FreeBSD.org>
# $FreeBSD$

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

MAINTAINER= ports@FreeBSD.org
COMMENT=    Cluster synchronization tool

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

BROKEN=     unfetchable

LIB_DEPENDS=    librsync.so.2:net/librsync2 \
        libgnutls.so:security/gnutls \
        libsqlite3.so:databases/sqlite3

OPTIONS_DEFINE= CSYNC2_COMPARE DOCS
OPTIONS_SUB=    yes
CSYNC2_COMPARE_DESC=        Install csync2-compare script
CSYNC2_COMPARE_RUN_DEPENDS= bash: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>