Index: head/net/csync2/Makefile =================================================================== --- head/net/csync2/Makefile (revision 414129) +++ head/net/csync2/Makefile (revision 414130) @@ -1,46 +1,46 @@ # Created by: Aaron Dalton # $FreeBSD$ PORTNAME= csync2 PORTVERSION= 2.0 -PORTREVISION= 1 +PORTREVISION= 2 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:net/librsync1 \ 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 Index: head/net/csync2/files/patch-csync2.c =================================================================== --- head/net/csync2/files/patch-csync2.c (nonexistent) +++ head/net/csync2/files/patch-csync2.c (revision 414130) @@ -0,0 +1,21 @@ +--- csync2.c.orig 2013-05-02 12:58:04 UTC ++++ csync2.c +@@ -256,7 +256,7 @@ static int csync_server_bind(void) + struct addrinfo hints; + struct addrinfo *result, *rp; + int save_errno; +- int sfd = -1, s, on = 1; ++ int sfd = -1, s, off = 0, on = 1; + memset(&hints, 0, sizeof(struct addrinfo)); + hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ + hints.ai_socktype = SOCK_STREAM; +@@ -284,6 +284,9 @@ static int csync_server_bind(void) + goto error; + if (setsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, &on, (socklen_t) sizeof(on)) < 0) + goto error; ++ if (rp->ai_family == AF_INET6) ++ if (setsockopt(sfd, IPPROTO_IPV6, IPV6_V6ONLY, &off, (socklen_t) sizeof(off)) < 0) ++ goto error; + + if (bind(sfd, rp->ai_addr, rp->ai_addrlen) == 0) + break; /* Success */ Property changes on: head/net/csync2/files/patch-csync2.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property