Hi

This is my second attempt. Hopfully i've the right patch format right now.

The following patch adds the possibility to add all files in projectroot
/etc/avahi/services to the target.

Best Regards
Tim

diff --git a/rules/avahi.in b/rules/avahi.in
index 3b0a51e..c8dd8ea 100644
--- a/rules/avahi.in
+++ b/rules/avahi.in
@@ -117,6 +117,12 @@ config AVAHI_SERVICES
        help
          install avahi service descriptions

+config AVAHI_SERVICES_PROJECTROOT
+       bool
+       depends on AVAHI_DAEMON
+       prompt "avahi services from projectroot"
+       help
+         install avahi services from 
${ptxdist_workspace}/projectroot/etc/avahi/services
 endif

 config AVAHI_DNSCONFD
diff --git a/rules/avahi.make b/rules/avahi.make
index 51d9513..d94994d 100644
--- a/rules/avahi.make
+++ b/rules/avahi.make
@@ -189,6 +189,15 @@ ifdef AVAHI_SERVICES
        @$(call install_copy, avahi, 0, 0, 0644, -, 
/etc/avahi/services/ssh.service)
 endif

+ifdef PTXCONF_AVAHI_SERVICES_PROJECTROOT
+       @cd $(PTXDIST_WORKSPACE)/projectroot/etc/avahi/services/; \
+       for file in *; do \
+               $(call install_copy, avahi, 0, 0, 0644, \
+               $(PTXDIST_WORKSPACE)/projectroot/etc/avahi/services/$$file, \
+               /etc/avahi/services/$$file, n); \
+       done
+endif
+
 ifdef AVAHI_DNSCONFD
 #      avahi dnsconfd (Unicast DNS server from mDNS/DNS-SD configuration 
daemon)
 #      depends on avahi-daemon

--
ptxdist mailing list
[email protected]

Reply via email to