diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-06-06 05:44:01 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-06-06 05:44:01 +0000 |
commit | bd14ea13fbf61606ba3338a1f10470631bdab12f (patch) | |
tree | 906661a0e2fd2fe62aff5918fcdcbce9fa414899 /net/gmdns | |
parent | Remove extra symlink to ${PREFIX}(/usr/local)/linux-mozilla/plugins. (diff) |
Add gmdns, a GNU implementation of the multicast DNS protocol used by Zeroconf.
Notes
Notes:
svn path=/head/; revision=110929
Diffstat (limited to 'net/gmdns')
-rw-r--r-- | net/gmdns/Makefile | 26 | ||||
-rw-r--r-- | net/gmdns/distinfo | 2 | ||||
-rw-r--r-- | net/gmdns/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | net/gmdns/files/patch-configure | 53 | ||||
-rw-r--r-- | net/gmdns/files/patch-src_Makefile.in | 13 | ||||
-rw-r--r-- | net/gmdns/files/patch-src_gmdns-query.h | 13 | ||||
-rw-r--r-- | net/gmdns/files/patch-src_gmdns-service-query.h | 13 | ||||
-rw-r--r-- | net/gmdns/files/patch-src_gmdns-service.c | 16 | ||||
-rw-r--r-- | net/gmdns/files/patch-src_gmdns-txt.c | 10 | ||||
-rw-r--r-- | net/gmdns/files/patch-src_gmdns.c | 11 | ||||
-rw-r--r-- | net/gmdns/pkg-descr | 2 | ||||
-rw-r--r-- | net/gmdns/pkg-plist | 10 |
12 files changed, 180 insertions, 0 deletions
diff --git a/net/gmdns/Makefile b/net/gmdns/Makefile new file mode 100644 index 000000000000..86380706ef27 --- /dev/null +++ b/net/gmdns/Makefile @@ -0,0 +1,26 @@ +# New ports collection makefile for: gmdns +# Date created: 05 June 2004 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gmdns +PORTVERSION= 0.1 +CATEGORIES= net gnome +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.1 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= A GNU implementation of multicast DNS, part of Zeroconf + +USE_BZIP2= yes +USE_GNOME= gnomeprefix gnomehack lthack glib20 +INSTALLS_SHLIB= yes +USE_LIBTOOL_VER=13 +USE_GMAKE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +.include <bsd.port.mk> diff --git a/net/gmdns/distinfo b/net/gmdns/distinfo new file mode 100644 index 000000000000..5b604e579fb8 --- /dev/null +++ b/net/gmdns/distinfo @@ -0,0 +1,2 @@ +MD5 (gnome2/gmdns-0.1.tar.bz2) = 8915a10de6236b2c4e18d2d8f40051d2 +SIZE (gnome2/gmdns-0.1.tar.bz2) = 224351 diff --git a/net/gmdns/files/patch-Makefile.in b/net/gmdns/files/patch-Makefile.in new file mode 100644 index 000000000000..9357ee41b568 --- /dev/null +++ b/net/gmdns/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Sun Jun 6 01:17:16 2004 ++++ Makefile.in Sun Jun 6 01:17:21 2004 +@@ -93,7 +93,7 @@ + STRIP = @STRIP@ + VERSION = @VERSION@ + +-SUBDIRS = src test ++SUBDIRS = src + + pkgconfigdir = $(prefix)/libdata/pkgconfig + pkgconfig_DATA = gmdns.pc diff --git a/net/gmdns/files/patch-configure b/net/gmdns/files/patch-configure new file mode 100644 index 000000000000..9a722e570448 --- /dev/null +++ b/net/gmdns/files/patch-configure @@ -0,0 +1,53 @@ +--- configure.orig Sun Jun 6 01:23:07 2004 ++++ configure Sun Jun 6 01:23:32 2004 +@@ -19108,50 +19108,18 @@ + echo "*** to the full path to pkg-config." + echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." + else +- PKG_CONFIG_MIN_VERSION=0.9.0 +- if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then +- echo "$as_me:$LINENO: checking for gtk+-2.0" >&5 +-echo $ECHO_N "checking for gtk+-2.0... $ECHO_C" >&6 +- +- if $PKG_CONFIG --exists "gtk+-2.0" ; then +- echo "$as_me:$LINENO: result: yes" >&5 +-echo "${ECHO_T}yes" >&6 + succeeded=yes +- +- echo "$as_me:$LINENO: checking GUITEST_CFLAGS" >&5 +-echo $ECHO_N "checking GUITEST_CFLAGS... $ECHO_C" >&6 +- GUITEST_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0"` +- echo "$as_me:$LINENO: result: $GUITEST_CFLAGS" >&5 +-echo "${ECHO_T}$GUITEST_CFLAGS" >&6 +- +- echo "$as_me:$LINENO: checking GUITEST_LIBS" >&5 +-echo $ECHO_N "checking GUITEST_LIBS... $ECHO_C" >&6 +- GUITEST_LIBS=`$PKG_CONFIG --libs "gtk+-2.0"` +- echo "$as_me:$LINENO: result: $GUITEST_LIBS" >&5 +-echo "${ECHO_T}$GUITEST_LIBS" >&6 +- else + GUITEST_CFLAGS="" + GUITEST_LIBS="" + ## If we have a custom action on failure, don't print errors, but + ## do set a variable so people can do so. +- GUITEST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"` +- echo $GUITEST_PKG_ERRORS +- fi + + + +- else +- echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." +- echo "*** See http://www.freedesktop.org/software/pkgconfig" +- fi + fi + + if test $succeeded = yes; then + : +- else +- { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5 +-echo "$as_me: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;} +- { (exit 1); exit 1; }; } + fi + + diff --git a/net/gmdns/files/patch-src_Makefile.in b/net/gmdns/files/patch-src_Makefile.in new file mode 100644 index 000000000000..991a5de2e49b --- /dev/null +++ b/net/gmdns/files/patch-src_Makefile.in @@ -0,0 +1,13 @@ +--- src/Makefile.in.orig Sun Jun 6 01:25:02 2004 ++++ src/Makefile.in Sun Jun 6 01:25:09 2004 +@@ -97,8 +97,8 @@ + + MDNSD_FILES = 1035.h mdnsd.h 1035.c mdnsd.c + +-CFLAGS = $(GOBJECT_CFLAGS) -Wall -Werror -g +-LDFLAGS = $(GOBJECT_LIBS) ++CFLAGS += $(GOBJECT_CFLAGS) -Wall -Werror -g ++LDFLAGS += $(GOBJECT_LIBS) + + lib_LTLIBRARIES = libgmdns.la + diff --git a/net/gmdns/files/patch-src_gmdns-query.h b/net/gmdns/files/patch-src_gmdns-query.h new file mode 100644 index 000000000000..51bb2d7743c4 --- /dev/null +++ b/net/gmdns/files/patch-src_gmdns-query.h @@ -0,0 +1,13 @@ +--- src/gmdns-query.h.orig Sat Jun 5 23:08:23 2004 ++++ src/gmdns-query.h Sat Jun 5 23:09:06 2004 +@@ -23,7 +23,10 @@ + + #include <glib-object.h> + #include <gmdns.h> ++#include <sys/types.h> ++#include <sys/socket.h> + #include <netinet/in.h> ++#include <arpa/inet.h> + + #define GMDNS_TYPE_QUERY (gmdns_query_get_type ()) + #define GMDNS_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMDNS_TYPE_QUERY, GmDNSQuery)) diff --git a/net/gmdns/files/patch-src_gmdns-service-query.h b/net/gmdns/files/patch-src_gmdns-service-query.h new file mode 100644 index 000000000000..6fb7f906b14d --- /dev/null +++ b/net/gmdns/files/patch-src_gmdns-service-query.h @@ -0,0 +1,13 @@ +--- src/gmdns-service-query.h.orig Sun Jun 6 01:16:02 2004 ++++ src/gmdns-service-query.h Sun Jun 6 01:16:25 2004 +@@ -23,7 +23,10 @@ + + #include <glib-object.h> + #include <gmdns.h> ++#include <sys/types.h> ++#include <sys/socket.h> + #include <netinet/in.h> ++#include <arpa/inet.h> + + #define GMDNS_TYPE_SERVICE_QUERY (gmdns_service_query_get_type ()) + #define GMDNS_SERVICE_QUERY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GMDNS_TYPE_SERVICE_QUERY, GmDNSServiceQuery)) diff --git a/net/gmdns/files/patch-src_gmdns-service.c b/net/gmdns/files/patch-src_gmdns-service.c new file mode 100644 index 000000000000..1be48437f989 --- /dev/null +++ b/net/gmdns/files/patch-src_gmdns-service.c @@ -0,0 +1,16 @@ +--- src/gmdns-service.c.orig Sun Jun 6 01:14:54 2004 ++++ src/gmdns-service.c Sun Jun 6 01:15:12 2004 +@@ -304,10 +304,12 @@ + gmdns_service_new (const char* name, const char* service_name, + const char* protocol, const char* domain) + { ++ GmDNSService *service; ++ + g_return_val_if_fail (name != NULL, NULL); + g_return_val_if_fail (service_name != NULL, NULL); + +- GmDNSService *service = ++ service = + (GmDNSService*) g_object_new (GMDNS_TYPE_SERVICE, NULL); + + if (protocol == NULL) { diff --git a/net/gmdns/files/patch-src_gmdns-txt.c b/net/gmdns/files/patch-src_gmdns-txt.c new file mode 100644 index 000000000000..947e171f7fd2 --- /dev/null +++ b/net/gmdns/files/patch-src_gmdns-txt.c @@ -0,0 +1,10 @@ +--- src/gmdns-txt.c.orig Sun Jun 6 01:27:19 2004 ++++ src/gmdns-txt.c Sun Jun 6 01:29:38 2004 +@@ -106,6 +106,7 @@ + return hash; + } + ++ name = g_strndup (work, namelen); + value = g_strndup (work + namelen + 1, valuelen); + + if (hash == NULL) { diff --git a/net/gmdns/files/patch-src_gmdns.c b/net/gmdns/files/patch-src_gmdns.c new file mode 100644 index 000000000000..4dee7cbd412a --- /dev/null +++ b/net/gmdns/files/patch-src_gmdns.c @@ -0,0 +1,11 @@ +--- src/gmdns.c.orig Sat Jun 5 23:06:29 2004 ++++ src/gmdns.c Sat Jun 5 23:07:20 2004 +@@ -439,7 +439,7 @@ + + /* if there are no more listeners */ + if (aq->listeners == NULL) { +- g_message ("mdnsd_query (%s, %d, %p, %p)\n", name, type, NULL, NULL); ++ g_message ("mdnsd_query (%s, %d, %p, %p)\n", name, type, (void*)NULL, (void*)NULL); + /* stop the query */ + mdnsd_query (GMDNS_MDNSD, (char*) name, type, NULL, NULL); + diff --git a/net/gmdns/pkg-descr b/net/gmdns/pkg-descr new file mode 100644 index 000000000000..3d8453b0705d --- /dev/null +++ b/net/gmdns/pkg-descr @@ -0,0 +1,2 @@ +Gmdns is a GNU implementation of the multicast DNS protocol, a component of +Zerconf (aka Rendezvous by Apple). diff --git a/net/gmdns/pkg-plist b/net/gmdns/pkg-plist new file mode 100644 index 000000000000..2230696532a3 --- /dev/null +++ b/net/gmdns/pkg-plist @@ -0,0 +1,10 @@ +include/gmdns/gmdns-query.h +include/gmdns/gmdns-record.h +include/gmdns/gmdns-service-query.h +include/gmdns/gmdns-service.h +include/gmdns/gmdns.h +lib/libgmdns.a +lib/libgmdns.so +lib/libgmdns.so.0 +libdata/pkgconfig/gmdns.pc +@dirrm include/gmdns |