avahi: install custom avahi-daemon.conf
authorAndreas Oberritter <obi@opendreambox.org>
Thu, 23 Oct 2008 01:20:44 +0000 (03:20 +0200)
committerAndreas Oberritter <obi@opendreambox.org>
Thu, 23 Oct 2008 01:20:44 +0000 (03:20 +0200)
packages/avahi/avahi.inc
packages/avahi/files/avahi-daemon.conf [new file with mode: 0644]

index 7fb543c..56eaa78 100644 (file)
@@ -4,7 +4,7 @@ HOMEPAGE = "http://avahi.org"
 SECTION = "network"
 PRIORITY = "optional"
 LICENSE = "GPL"
-PR = "r5"
+PR = "r6"
 
 DEPENDS = "expat libdaemon dbus glib-2.0"
 
@@ -14,7 +14,8 @@ RDEPENDS_avahi-daemon = "sysvinit-pidof update-rc.d"
 RDEPENDS_avahi-autoipd = "update-rc.d"
 
 SRC_URI = "http://avahi.org/download/avahi-${PV}.tar.gz \
-          file://00avahi-autoipd file://99avahi-autoipd"
+          file://00avahi-autoipd file://99avahi-autoipd \
+          file://avahi-daemon.conf"
 
 inherit autotools pkgconfig update-rc.d
 # handle update-rc.d RDEPENDS manually, we don't need it on
@@ -104,6 +105,8 @@ do_install() {
        install -d ${D}${sysconfdir}/udhcpc.d
        install ${WORKDIR}/00avahi-autoipd ${D}${sysconfdir}/udhcpc.d
        install ${WORKDIR}/99avahi-autoipd ${D}${sysconfdir}/udhcpc.d
+       install -d ${D}${sysconfdir}/avahi
+       install ${WORKDIR}/avahi-daemon.conf ${D}${sysconfdir}/avahi/avahi-daemon.conf
 }
 
 do_stage() {
diff --git a/packages/avahi/files/avahi-daemon.conf b/packages/avahi/files/avahi-daemon.conf
new file mode 100644 (file)
index 0000000..5c1c273
--- /dev/null
@@ -0,0 +1,18 @@
+[server]
+use-ipv4=yes
+use-ipv6=no
+
+[wide-area]
+enable-wide-area=yes
+
+[publish]
+
+[reflector]
+
+[rlimits]
+rlimit-core=0
+rlimit-data=4194304
+rlimit-fsize=0
+rlimit-nofile=30
+rlimit-stack=4194304
+rlimit-nproc=3