|
Lines 2-53
Link Here
|
| 2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= csync2 |
4 |
PORTNAME= csync2 |
| 5 |
PORTVERSION= 1.34 |
5 |
PORTVERSION= 2.0 |
| 6 |
PORTREVISION= 20 |
|
|
| 7 |
CATEGORIES= net |
6 |
CATEGORIES= net |
| 8 |
MASTER_SITES= http://oss.linbit.com/csync2/ \ |
7 |
MASTER_SITES= http://oss.linbit.com/csync2/ |
| 9 |
http://people.freebsd.org/~aaron/distfiles/ |
|
|
| 10 |
|
8 |
|
| 11 |
MAINTAINER= alexey@renatasystems.org |
9 |
MAINTAINER= alexey@renatasystems.org |
| 12 |
COMMENT= Cluster synchronization tool |
10 |
COMMENT= Cluster synchronization tool |
| 13 |
|
11 |
|
| 14 |
LIB_DEPENDS= librsync.so:${PORTSDIR}/net/librsync \ |
12 |
LICENSE= GPLv2 |
| 15 |
libtasn1.so:${PORTSDIR}/security/libtasn1 \ |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
|
|
14 |
|
| 15 |
LIB_DEPENDS= librsync.so.2:${PORTSDIR}/net/librsync1 \ |
| 16 |
libgnutls.so:${PORTSDIR}/security/gnutls \ |
16 |
libgnutls.so:${PORTSDIR}/security/gnutls \ |
| 17 |
libsqlite.so:${PORTSDIR}/databases/sqlite2 \ |
17 |
libsqlite3.so:${PORTSDIR}/databases/sqlite3 |
| 18 |
libgcrypt.so:${PORTSDIR}/security/libgcrypt \ |
|
|
| 19 |
libgpg-error.so:${PORTSDIR}/security/libgpg-error |
| 20 |
|
18 |
|
| 21 |
OPTIONS_DEFINE= CSYNC2_COMPARE |
19 |
OPTIONS_DEFINE= CSYNC2_COMPARE DOCS |
| 22 |
CSYNC2_COMPARE_DESC= Install csync2-compare script |
20 |
OPTIONS_SUB= yes |
|
|
21 |
CSYNC2_COMPARE_DESC= Install csync2-compare script |
| 22 |
CSYNC2_COMPARE_RUN_DEPENDS= bash:${PORTSDIR}/shells/bash |
| 23 |
|
23 |
|
| 24 |
USES= pkgconfig |
24 |
USES= pkgconfig shebangfix |
|
|
25 |
SHEBANG_FILES= csync2-compare |
| 25 |
|
26 |
|
| 26 |
GNU_CONFIGURE= yes |
27 |
GNU_CONFIGURE= yes |
| 27 |
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc |
28 |
CONFIGURE_ARGS= ac_cv_prog_PDFLATEX= |
| 28 |
CONFIGURE_ENV= LIBGNUTLS_CONFIG="${LOCALBASE}/bin/pkg-config gnutls" |
|
|
| 29 |
CPPFLAGS+= -I${LOCALBASE}/include |
29 |
CPPFLAGS+= -I${LOCALBASE}/include |
| 30 |
LDFLAGS+= -L${LOCALBASE}/lib |
30 |
LIBS+= -L${LOCALBASE}/lib |
| 31 |
|
31 |
|
| 32 |
USE_RC_SUBR= csync2 |
32 |
USE_RC_SUBR= csync2 |
| 33 |
|
33 |
|
| 34 |
PLIST_FILES= etc/csync2.cfg-dist \ |
|
|
| 35 |
sbin/csync2 \ |
| 36 |
man/man1/csync2.1.gz |
| 37 |
|
| 38 |
SUB_FILES= pkg-install |
34 |
SUB_FILES= pkg-install |
| 39 |
|
35 |
|
| 40 |
.include <bsd.port.options.mk> |
|
|
| 41 |
|
| 42 |
.if ${PORT_OPTIONS:MCSYNC2_COMPARE} |
| 43 |
RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash |
| 44 |
PLIST_FILES+= sbin/csync2-compare |
| 45 |
CSYNC2_COMPARE= csync2-compare |
| 46 |
.else |
| 47 |
CSYNC2_COMPARE= |
| 48 |
.endif |
| 49 |
|
| 50 |
post-patch: |
36 |
post-patch: |
| 51 |
${REINPLACE_CMD} -E "s#%%CSYNC2_COMPARE%%#${CSYNC2_COMPARE}#" ${WRKSRC}/Makefile.in |
37 |
@${REINPLACE_CMD} -e 's|(localstatedir)/lib|(localstatedir)/db|' \ |
|
|
38 |
-e 's/-ldl//' ${WRKSRC}/Makefile.in |
| 39 |
|
| 40 |
post-install: |
| 41 |
${MV} ${STAGEDIR}${PREFIX}/etc/csync2.cfg \ |
| 42 |
${STAGEDIR}${PREFIX}/etc/csync2.cfg.sample |
| 43 |
${MKDIR} ${STAGEDIR}/var/backups/csync2 |
| 52 |
|
44 |
|
| 53 |
.include <bsd.port.mk> |
45 |
.include <bsd.port.mk> |