Permalink
Browse files

bug-avahi: Add Bug avahi profile

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
  • Loading branch information...
1 parent 01fde55 commit 5302c0c767d515f3202890442834855dd64c6cc4 @Stefan-Schmidt Stefan-Schmidt committed Nov 29, 2011
Showing with 31 additions and 0 deletions.
  1. +15 −0 recipes-misc/bug-avahi.bb
  2. +16 −0 recipes-misc/bug-avahi/bugdevice.service
@@ -0,0 +1,15 @@
+DESCRIPTION = "BUG Avahi Profile"
+DEPENDS = "avahi"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
+
+PR = "r0"
+
+SRC_URI = "file://bugdevice.service"
+
+S = "${WORKDIR}"
+
+do_install() {
+ install -d ${D}${sysconfdir}/avahi/services
+ install -m 0644 ${WORKDIR}/bugdevice.service ${D}${sysconfdir}/avahi/services/
+}
@@ -0,0 +1,16 @@
+<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
+<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
+<!-- this is the bugdevice service for avahi which
+ allows BUGs to be found via mDNS-->
+<service-group>
+
+ <name replace-wildcards="yes">%h</name>
+
+ <service protocol="ipv4">
+ <type>_bugdevice._tcp</type>
+ <port>80</port>
+ </service>
+
+</service-group>
+
+

0 comments on commit 5302c0c

Please sign in to comment.