Skip to contentSkip to conversation

svn commit: trunk/buildroot/package: avahi libdaemon

Buildroot andersen at uclibc.org 1 participant 1 message Dec 12, 2006

lore
Share & tools
lore
#0 lore raw

Author: andersen
Date: 2006-12-12 14:26:51 -0800 (Tue, 12 Dec 2006) New Revision: 16861

Log:
Add avahi package and add libdaemon, which is needed by avahi

Added:
trunk/buildroot/package/avahi/ trunk/buildroot/package/avahi/Config.in trunk/buildroot/package/avahi/S05avahi-setup.sh trunk/buildroot/package/avahi/autoipd-perms.patch trunk/buildroot/package/avahi/avahi.mk trunk/buildroot/package/avahi/busybox-udhcpc-default.script trunk/buildroot/package/avahi/uclibc.patch trunk/buildroot/package/libdaemon/ trunk/buildroot/package/libdaemon/Config.in trunk/buildroot/package/libdaemon/libdaemon.mk trunk/buildroot/package/libdaemon/xcompile-setpgrp.patch

Modified:
trunk/buildroot/package/Config.in

Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================

buildroot/package/Config.in +1 -0
@@ -29,6 +29,7 @@
 source "package/at/Config.in"
 source "package/autoconf/Config.in"
 source "package/automake/Config.in"
+source "package/avahi/Config.in"
 source "package/berkeleydb/Config.in"
 source "package/bind/Config.in"
 source "package/bison/Config.in"

Added: trunk/buildroot/package/avahi/Config.in
===================================================================

buildroot/package/avahi/Config.in +8 -0
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_AVAHI
+	bool "avahi"
+	default n
+	help
+	  Avahi is a system which facilitates service 
+	  discovery on a local network. 
+
+	  http://www.avahi.org/

Added: trunk/buildroot/package/avahi/S05avahi-setup.sh
===================================================================

buildroot/package/avahi/S05avahi-setup.sh +16 -0
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+case "$1" in
+    start|"")
+	if [ ! -d /tmp/avahi-autopid ]; then
+	    rm -rf /tmp/avahi-autoipd
+	    mkdir /tmp/avahi-autoipd
+	    chown default.default /tmp/avahi-autoipd
+	fi
+	;;
+    stop) ;;
+    *)
+	echo "Usage: S05avahi-setup.sh {start|stop}" >&2
+	exit 1
+	;;
+esac

Property changes on: trunk/buildroot/package/avahi/S05avahi-setup.sh
___________________________________________________________________
Name: svn:executable
+ *

Added: trunk/buildroot/package/avahi/autoipd-perms.patch
===================================================================

buildroot/package/avahi/autoipd-perms.patch +11 -0
@@ -0,0 +1,11 @@
+--- avahi-0.6.14/avahi-autoipd/main.c.cls	2006-09-13 12:49:45.000000000 -0700
++++ avahi-0.6.14/avahi-autoipd/main.c	2006-09-25 20:34:10.000000000 -0700
+@@ -239,7 +239,7 @@
+ 
+     fprintf(f, "%s\n", inet_ntop(AF_INET, &addr, buf, sizeof (buf)));
+     fclose(f);
+-
++    chmod(fn, S_IRUSR|S_IWUSR);
+     return 0;
+     
+ fail:

Added: trunk/buildroot/package/avahi/avahi.mk
===================================================================

buildroot/package/avahi/avahi.mk +173 -0

173 lines not on this page · raw message

Added: trunk/buildroot/package/avahi/busybox-udhcpc-default.script
===================================================================

buildroot/package/avahi/busybox-udhcpc-default.script +52 -0

52 lines not on this page · raw message

Property changes on: trunk/buildroot/package/avahi/busybox-udhcpc-default.script
___________________________________________________________________
Name: svn:executable
+ *

Added: trunk/buildroot/package/avahi/uclibc.patch
===================================================================

buildroot/package/avahi/uclibc.patch +19 -0
@@ -0,0 +1,19 @@
+diff -urN avahi-0.6.14-orig/avahi-core/socket.c avahi-0.6.14/avahi-core/socket.c
+--- avahi-0.6.14-orig/avahi-core/socket.c	2006-08-31 10:18:03.000000000 -0700
++++ avahi-0.6.14/avahi-core/socket.c	2006-09-21 19:01:31.000000000 -0700
+@@ -394,13 +394,13 @@
+         avahi_log_warn("IPV6_UNICAST_HOPS failed: %s", strerror(errno));
+         goto fail;
+     }
+-    
++#ifdef IPV6_V6ONLY
+     yes = 1;
+     if (setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &yes, sizeof(yes)) < 0) {
+         avahi_log_warn("IPV6_V6ONLY failed: %s", strerror(errno));
+         goto fail;
+     }
+-
++#endif
+     yes = 1;
+     if (setsockopt(fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, &yes, sizeof(yes)) < 0) {
+         avahi_log_warn("IPV6_MULTICAST_LOOP failed: %s", strerror(errno));

Added: trunk/buildroot/package/libdaemon/Config.in
===================================================================

buildroot/package/libdaemon/Config.in +8 -0
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBDAEMON
+	bool "libdaemon"
+	default n
+	help
+	  libdaemon is a lightweight C library that eases the 
+	  writing of UNIX daemons.
+
+	  http://0pointer.de/lennart/projects/libdaemon/

Added: trunk/buildroot/package/libdaemon/libdaemon.mk
===================================================================

buildroot/package/libdaemon/libdaemon.mk +90 -0

90 lines not on this page · raw message

Added: trunk/buildroot/package/libdaemon/xcompile-setpgrp.patch
===================================================================

buildroot/package/libdaemon/xcompile-setpgrp.patch +11 -0
@@ -0,0 +1,11 @@
+--- libdaemon-0.10/configure.ac.cls	2005-11-24 05:38:53.000000000 -0800
++++ libdaemon-0.10/configure.ac	2006-09-25 08:16:33.000000000 -0700
+@@ -85,7 +85,7 @@
+ AC_FUNC_VPRINTF
+ AC_CHECK_FUNCS([select strerror dup2 memset strrchr])
+ AC_TYPE_MODE_T
+-AC_FUNC_SETPGRP
++dnl AC_FUNC_SETPGRP
+ AC_TYPE_SIGNAL
+ AC_TYPE_SIZE_T
+