Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2014 22:35:42 +0000 (UTC)
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340219 - in head/net/netatalk3: . files
Message-ID:  <201401182235.s0IMZgwT075419@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcus
Date: Sat Jan 18 22:35:41 2014
New Revision: 340219
URL: http://svnweb.freebsd.org/changeset/ports/340219
QAT: https://qat.redports.org/buildarchive/r340219/

Log:
  * Fix a segfault when Zeroconf is enabled with Timemachine [1]
  * Convert to new-style LIB_DEPENDS
  
  PR:		185862 [1]
  Submitted by:	jpaetzel [1]

Added:
  head/net/netatalk3/files/patch-etc_afpd_afp_mdns.c   (contents, props changed)
Modified:
  head/net/netatalk3/Makefile

Modified: head/net/netatalk3/Makefile
==============================================================================
--- head/net/netatalk3/Makefile	Sat Jan 18 22:21:51 2014	(r340218)
+++ head/net/netatalk3/Makefile	Sat Jan 18 22:35:41 2014	(r340219)
@@ -3,7 +3,7 @@
 
 PORTNAME=	netatalk
 PORTVERSION=	3.1.0
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	net
 MASTER_SITES=	SF
@@ -15,8 +15,8 @@ COMMENT=	File server for Mac OS X
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	gcrypt:${PORTSDIR}/security/libgcrypt \
-    		event-2:${PORTSDIR}/devel/libevent2
+LIB_DEPENDS=	libgcrypt.so:${PORTSDIR}/security/libgcrypt \
+    		libevent-2.so:${PORTSDIR}/devel/libevent2
 
 USE_AUTOTOOLS=	libtool
 USE_BDB=	46+

Added: head/net/netatalk3/files/patch-etc_afpd_afp_mdns.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/netatalk3/files/patch-etc_afpd_afp_mdns.c	Sat Jan 18 22:35:41 2014	(r340219)
@@ -0,0 +1,34 @@
+--- etc/afpd/afp_mdns.c.orig	2013-10-28 06:43:13.000000000 -0700
++++ etc/afpd/afp_mdns.c	2014-01-17 22:10:59.000000000 -0800
+@@ -37,17 +37,15 @@
+  * Its easier to use asprintf to set the TXT record values
+  */
+ #define TXTRecordPrintf(rec, key, args, ...) {           \
+-        char *str;                                      \
+-        asprintf(&str, args);                           \
++        char str[1024];                                      \
++        sprintf(str, args);                           \
+         TXTRecordSetValue(rec, key, strlen(str), str);  \
+-        free(str);                                      \
+     }
+ #define TXTRecordKeyPrintf(rec, k, var, args, ...) {     \
+-        char *key, *str;                                \
+-        asprintf(&key, k, var);                         \
+-        asprintf(&str, args);                           \
++        char key[1024], str[1024];                                \
++        sprintf(key, k, var);                         \
++        sprintf(str, args);                           \
+         TXTRecordSetValue(rec, key, strlen(str), str);  \
+-        free(str); free(key);                           \
+     }
+ 
+ static struct pollfd *fds;
+@@ -134,7 +132,7 @@
+ 
+     /* Register our service, prepare the TXT record */
+     TXTRecordCreate(&txt_adisk, 0, NULL);
+-    TXTRecordPrintf(&txt_adisk, "sys", "waMa=0,adVF=0x100");
++    TXTRecordPrintf(&txt_adisk, "sys", "waMa=0,adVF=0x100", NULL);
+ 
+     /* Build AFP volumes list */
+     int i = 0;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401182235.s0IMZgwT075419>